org.apache.lenya.workflow.impl
Class WorkflowManagerImpl

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.lenya.workflow.impl.WorkflowManagerImpl
All Implemented Interfaces:
org.apache.avalon.excalibur.pool.Poolable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.service.Serviceable, org.apache.lenya.workflow.WorkflowManager

public class WorkflowManagerImpl
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements org.apache.lenya.workflow.WorkflowManager, org.apache.avalon.framework.service.Serviceable, org.apache.avalon.excalibur.pool.Poolable

Workflow manager implementation.

Version:
$Id: WorkflowManagerImpl.java 179751 2005-06-03 09:13:35Z andreas $

Field Summary
protected  org.apache.avalon.framework.service.ServiceManager manager
           
 
Fields inherited from interface org.apache.lenya.workflow.WorkflowManager
ROLE
 
Constructor Summary
WorkflowManagerImpl()
           
 
Method Summary
 boolean canInvoke(org.apache.lenya.workflow.Workflowable workflowable, java.lang.String event)
           
 org.apache.lenya.workflow.Workflow getWorkflowSchema(org.apache.lenya.workflow.Workflowable workflowable)
           
 boolean hasWorkflow(org.apache.lenya.workflow.Workflowable workflowable)
           
 void invoke(org.apache.lenya.workflow.Workflowable workflowable, java.lang.String event)
           
 void invoke(org.apache.lenya.workflow.Workflowable workflowable, java.lang.String event, boolean force)
           
 void service(org.apache.avalon.framework.service.ServiceManager manager)
           
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

manager

protected org.apache.avalon.framework.service.ServiceManager manager
Constructor Detail

WorkflowManagerImpl

public WorkflowManagerImpl()
Method Detail

invoke

public void invoke(org.apache.lenya.workflow.Workflowable workflowable,
                   java.lang.String event,
                   boolean force)
            throws org.apache.lenya.workflow.WorkflowException
Specified by:
invoke in interface org.apache.lenya.workflow.WorkflowManager
Throws:
org.apache.lenya.workflow.WorkflowException
See Also:
WorkflowManager.invoke(org.apache.lenya.workflow.Workflowable, java.lang.String, boolean)

invoke

public void invoke(org.apache.lenya.workflow.Workflowable workflowable,
                   java.lang.String event)
            throws org.apache.lenya.workflow.WorkflowException
Specified by:
invoke in interface org.apache.lenya.workflow.WorkflowManager
Throws:
org.apache.lenya.workflow.WorkflowException
See Also:
WorkflowManager.invoke(org.apache.lenya.workflow.Workflowable, java.lang.String)

canInvoke

public boolean canInvoke(org.apache.lenya.workflow.Workflowable workflowable,
                         java.lang.String event)
Specified by:
canInvoke in interface org.apache.lenya.workflow.WorkflowManager
See Also:
WorkflowManager.canInvoke(org.apache.lenya.workflow.Workflowable, java.lang.String)

service

public void service(org.apache.avalon.framework.service.ServiceManager manager)
             throws org.apache.avalon.framework.service.ServiceException
Specified by:
service in interface org.apache.avalon.framework.service.Serviceable
Throws:
org.apache.avalon.framework.service.ServiceException
See Also:
Serviceable.service(org.apache.avalon.framework.service.ServiceManager)

getWorkflowSchema

public org.apache.lenya.workflow.Workflow getWorkflowSchema(org.apache.lenya.workflow.Workflowable workflowable)
                                                     throws org.apache.lenya.workflow.WorkflowException
Specified by:
getWorkflowSchema in interface org.apache.lenya.workflow.WorkflowManager
Throws:
org.apache.lenya.workflow.WorkflowException
See Also:
WorkflowManager.getWorkflowSchema(org.apache.lenya.workflow.Workflowable)

hasWorkflow

public boolean hasWorkflow(org.apache.lenya.workflow.Workflowable workflowable)
Specified by:
hasWorkflow in interface org.apache.lenya.workflow.WorkflowManager
See Also:
WorkflowManager.hasWorkflow(org.apache.lenya.workflow.Workflowable)


Copyright $ Apache Software Foundation. All Rights Reserved.