|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A writer provides write-acces to a task queue belonging to a specific namespace. In addition, it acts as a validating factory for tasks.
| Method Summary | |
ITask |
add(ITask task)
Adds an entry to the end of the queue. |
ITask |
createTask()
Factory method to create task objects. |
ITask |
createTask(java.util.Properties properties)
Factory method to create task objects. |
ITask |
createTask(java.util.Properties properties,
java.lang.String description)
Factory method to create task objects. |
ITask |
createTask(java.util.Properties properties,
java.lang.String description,
int priority)
Factory method to create task objects. |
java.lang.String |
getNamespace()
Returns the namespace of this writer. |
java.lang.String |
getUser()
Returns the user of this writer. |
void |
setState(ITask task,
TaskState state)
Sets the task's state to a new state . |
| Method Detail |
public ITask add(ITask task)
throws WcmException
The task' state is set NEW during this operation.
According to the persistence layer a correct task id will be created.
task - The task to addWcmException - raised in failure situation
public void setState(ITask task,
TaskState state)
throws WcmException
state . The task must belong to
the writer's namespace. The new state must be a legal transition of the old
state (see ITask.getState()) for details.state - The state to set.task - The task to set the state.WcmException - Exception raised in failure situation
public ITask createTask()
throws WcmException
normal.WcmException - Exception raised in failure situation
public ITask createTask(java.util.Properties properties)
throws WcmException
properties - Adds a set of properties to the task.WcmException - Exception raised in failure situationcreateTask()
public ITask createTask(java.util.Properties properties,
java.lang.String description)
throws WcmException
description to the task. The description string may be null
.properties - Adds a set of properties to the task.description - Adds a short descritption description to
the task.WcmException - Exception raised in failure situationcreateTask(Properties)
public ITask createTask(java.util.Properties properties,
java.lang.String description,
int priority)
throws WcmException
priority
value to the task. The priory value must lie between 0 and 100.properties - Adds a set of properties to the task.description - Adds a short descritption description to
the task.priority - The priority value that affect the processing order of
tasks.WcmException - Exception raised in failure situationcreateTask(Properties,String)public java.lang.String getUser()
public java.lang.String getNamespace()
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||