org.apache.lenya.cms.task
Class TaskManager

java.lang.Object
  extended by org.apache.lenya.cms.task.TaskManager
All Implemented Interfaces:
org.apache.avalon.framework.configuration.Configurable

public class TaskManager
extends java.lang.Object
implements org.apache.avalon.framework.configuration.Configurable


Field Summary
static java.lang.String ANT_TASK
           
static java.lang.String CONFIGURATION_FILE
           
static java.lang.String EMTPY_TASK
           
static java.lang.String TASK_ELEMENT
           
static java.lang.String TASK_ID_ATTRIBUTE
           
 
Constructor Summary
TaskManager()
          Creates a new TaskManager object.
TaskManager(java.lang.String publicationPath)
          Creates a new instance of TaskManager
 
Method Summary
 void configure(org.apache.avalon.framework.configuration.Configuration configuration)
          DOCUMENT ME!
 Task getTask(java.lang.String taskId)
          Get the task with a given task-id
 java.lang.String[] getTaskIds()
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TASK_ELEMENT

public static final java.lang.String TASK_ELEMENT
See Also:
Constant Field Values

TASK_ID_ATTRIBUTE

public static final java.lang.String TASK_ID_ATTRIBUTE
See Also:
Constant Field Values

CONFIGURATION_FILE

public static final java.lang.String CONFIGURATION_FILE

EMTPY_TASK

public static final java.lang.String EMTPY_TASK
See Also:
Constant Field Values

ANT_TASK

public static final java.lang.String ANT_TASK
See Also:
Constant Field Values
Constructor Detail

TaskManager

public TaskManager()
Creates a new TaskManager object.


TaskManager

public TaskManager(java.lang.String publicationPath)
            throws org.apache.avalon.framework.configuration.ConfigurationException,
                   org.xml.sax.SAXException,
                   java.io.IOException
Creates a new instance of TaskManager

Parameters:
publicationPath - path to publication
Throws:
org.apache.avalon.framework.configuration.ConfigurationException - if the configuration failed.
org.xml.sax.SAXException - when parsing the config file failed.
java.io.IOException - when an I/O error occured.
Method Detail

configure

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

Specified by:
configure in interface org.apache.avalon.framework.configuration.Configurable
Parameters:
configuration - DOCUMENT ME!
Throws:
org.apache.avalon.framework.configuration.ConfigurationException - DOCUMENT ME!

getTaskIds

public java.lang.String[] getTaskIds()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getTask

public Task getTask(java.lang.String taskId)
             throws ExecutionException
Get the task with a given task-id

Parameters:
taskId - the task-id of the requested task
Returns:
the task
Throws:
ExecutionException - if there is no task with the given task-id.


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