org.apache.lenya.cms.task
Class TaskSequence

java.lang.Object
  extended by org.apache.lenya.cms.task.AbstractTask
      extended by org.apache.lenya.cms.task.TaskSequence
All Implemented Interfaces:
org.apache.avalon.framework.parameters.Parameterizable, Task

public class TaskSequence
extends AbstractTask

A TaskSequence contains of multiple tasks that are executed successively.


Field Summary
 
Fields inherited from interface org.apache.lenya.cms.task.Task
DEFAULT_PREFIX, FAILURE, NAMESPACE, PARAMETER_CONTEXT_PREFIX, PARAMETER_PUBLICATION_ID, PARAMETER_SERVER_PORT, PARAMETER_SERVER_URI, PARAMETER_SERVLET_CONTEXT, SUCCESS
 
Constructor Summary
TaskSequence()
           
 
Method Summary
 void execute(java.lang.String path)
          Executes the tasks.
 java.lang.String getTaskId(Task task)
          Returns the ID of a specific Task.
protected  TaskManager getTaskManager()
          Returns the TaskManager that is used to manage the tasks of this TaskSequence.
 Task[] getTasks()
          Returns the tasks in this sequence.
 void init(org.apache.avalon.framework.configuration.Configuration configuration)
          DOCUMENT ME!
 
Methods inherited from class org.apache.lenya.cms.task.AbstractTask
getParameters, getResult, parameterize, setLabel, setResult
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskSequence

public TaskSequence()
Method Detail

init

public void init(org.apache.avalon.framework.configuration.Configuration configuration)
          throws org.apache.avalon.framework.configuration.ConfigurationException
DOCUMENT ME!

Parameters:
configuration - DOCUMENT ME!
Throws:
org.apache.avalon.framework.configuration.ConfigurationException - DOCUMENT ME!

getTasks

public Task[] getTasks()
Returns the tasks in this sequence.

Returns:
DOCUMENT ME!

getTaskManager

protected TaskManager getTaskManager()
Returns the TaskManager that is used to manage the tasks of this TaskSequence.

Returns:
DOCUMENT ME!

getTaskId

public java.lang.String getTaskId(Task task)
                           throws ExecutionException
Returns the ID of a specific Task.

Parameters:
task - the specific task for which the task id is requested.
Returns:
the task id of the given task
Throws:
ExecutionException - if the task could not be found.

execute

public void execute(java.lang.String path)
             throws ExecutionException
Executes the tasks.

Parameters:
path - DOCUMENT ME!
Throws:
ExecutionException - if the execution fails


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.