| java.lang.Object org.apache.lenya.cms.task.DefaultTaskWrapper
All known Subclasses: org.apache.lenya.cms.cocoon.task.CocoonTaskWrapper,
DefaultTaskWrapper | public class DefaultTaskWrapper implements TaskWrapper(Code) | | The default task wrapper
|
ATTRIBUTE_NAME | final protected static String ATTRIBUTE_NAME(Code) | | |
ATTRIBUTE_VALUE | final protected static String ATTRIBUTE_VALUE(Code) | | |
ELEMENT_PARAMETER | final protected static String ELEMENT_PARAMETER(Code) | | |
ELEMENT_TASK | final protected static String ELEMENT_TASK(Code) | | |
DefaultTaskWrapper | protected DefaultTaskWrapper(ServiceManager manager)(Code) | | Default ctor for subclasses.
Parameters: manager - The service manager to use. |
DefaultTaskWrapper | public DefaultTaskWrapper(Map _parameters, ServiceManager manager)(Code) | | Ctor to be called when all task wrapper parameters are known. All keys and values must be
strings or string arrays.
Parameters: _parameters - The prefixed parameters. Parameters: manager - The service manager to use. |
DefaultTaskWrapper | public DefaultTaskWrapper(NamespaceHelper helper, Element parent)(Code) | | Ctor. Restores the wrapper parameters from an XML element.
Parameters: parent - The parent of the task wrapper element. Parameters: helper - The namespace helper of the document. |
extractTaskParameters | protected Parameters extractTaskParameters(Parameters _parameters, Publication publication, Request request)(Code) | | Extracts the task parameters from the given objects.
Parameters: _parameters - A parameters object. Parameters: publication - A publication. Parameters: request - A request. A parameters object. |
getParameterObject | protected Map getParameterObject()(Code) | | Returns all prefixed parameters.
A map. |
getParameters | public Map getParameters()(Code) | | Returns all prefixed parameters.
A map. |
getTaskParameters | public TaskParameters getTaskParameters()(Code) | | Returns the task parameters.
A task parameters object. |
getWrapperParameters | public TaskWrapperParameters getWrapperParameters()(Code) | | Returns the task wrapper parameters.
A task wrapper parameters object. |
initialize | protected void initialize(String taskId, Publication publication, String webappUrl, Parameters _parameters) throws ExecutionException(Code) | | Initializes the task wrapper.
Parameters: taskId - The task ID. Parameters: publication - The publication. Parameters: webappUrl - The webapp URL. Parameters: _parameters - The task parameters. throws: ExecutionException - when the task ID is null. |
restore | public void restore(NamespaceHelper helper, Element parent)(Code) | | Restores the wrapper parameters from an XML element.
Parameters: parent - The parent of the task wrapper element. Parameters: helper - The namespace helper of the document. |
save | public Element save(NamespaceHelper helper)(Code) | | Saves the wrapper parameters to an XML element.
Parameters: helper - The namespace helper of the document. An XML element. |
setNotifying | protected void setNotifying(NamespaceMap notificationParameters)(Code) | | Sets the notification parameters.
Parameters: notificationParameters - The notification parameters. |
setWorkflowAware | public void setWorkflowAware(String eventName, Identity identity, Role[] roles)(Code) | | Enables workflow transition invocation.
Parameters: eventName - The event name. Parameters: identity - The identity that executes the task. Parameters: roles - The roles of the identity. |
|
|