| org.apache.lenya.cms.task.Task
All known Subclasses: org.apache.lenya.cms.task.AbstractTask,
Task | public interface Task extends Parameterizable(Code) | | A Task is a command that can be executed.
When a Task is executed from a TaskAction or initialized from a TaskJob, the default
parameters are provided. This is not a contract!
|
DEFAULT_PREFIX | final public static String DEFAULT_PREFIX(Code) | | DEFAULT_PREFIX The task namespace prefix
|
FAILURE | final public static int FAILURE(Code) | | FAILURE Failure
|
NAMESPACE | final public static String NAMESPACE(Code) | | NAMESPACE The task namespace
|
PARAMETER_CONTEXT_PREFIX | String PARAMETER_CONTEXT_PREFIX(Code) | | The part of the URI that precedes the publication
ID:
http://www.yourhost.com:8080/lenya/publication/index.html
|
PARAMETER_PUBLICATION_ID | String PARAMETER_PUBLICATION_ID(Code) | | The publication
ID:
http://www.yourhost.com:8080/lenya/publication/index.html
|
PARAMETER_SERVER_PORT | String PARAMETER_SERVER_PORT(Code) | | The server
port:
http://www.yourhost.com:8080/lenya/publication/index.html
|
PARAMETER_SERVER_URI | String PARAMETER_SERVER_URI(Code) | | The server
URI:
http://www.yourhost.com:8080/lenya/publication/index.html
|
PARAMETER_SERVLET_CONTEXT | String PARAMETER_SERVLET_CONTEXT(Code) | | The path of the servlet
context:
/home/user_id/build/jakarta-tomcat/webapps/lenyacms
|
SUCCESS | final public static int SUCCESS(Code) | | SUCCESS Success
|
execute | void execute(String servletContextPath) throws ExecutionException(Code) | | Execute the task. All parameters must have been set with parameterize().
Parameters: servletContextPath - the servlet-context throws: ExecutionException - if the execution fails |
service | void service(ServiceManager manager)(Code) | | Passes the service manager to the task.
Parameters: manager - The service manager. |
setLabel | void setLabel(String label)(Code) | | Set the label that is used to identify the task.
Parameters: label - the label |
|
|