|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lenya.cms.workflow.WorkflowUtil
public class WorkflowUtil
Utility class for workflow tasks.
Constructor Summary | |
---|---|
WorkflowUtil()
|
Method Summary | |
---|---|
static boolean |
canInvoke(org.apache.avalon.framework.service.ServiceManager manager,
Session session,
org.apache.avalon.framework.logger.Logger logger,
DocumentSet documents,
java.lang.String event)
Checks if an event can be invoked on all documents in a set. |
static boolean |
canInvoke(org.apache.avalon.framework.service.ServiceManager manager,
Session session,
org.apache.avalon.framework.logger.Logger logger,
Document document,
java.lang.String event)
Checks if an event can be invoked on a document. |
static Workflowable |
getWorkflowable(org.apache.avalon.framework.service.ServiceManager manager,
Session session,
org.apache.avalon.framework.logger.Logger logger,
Document document)
Returns a workflowable for a document. |
static Workflow |
getWorkflowSchema(org.apache.avalon.framework.service.ServiceManager manager,
Session session,
org.apache.avalon.framework.logger.Logger logger,
Document document)
Returns the workflow schema of a document. |
static boolean |
hasWorkflow(org.apache.avalon.framework.service.ServiceManager manager,
Session session,
org.apache.avalon.framework.logger.Logger logger,
Document document)
Returns if a document has a workflow. |
static void |
invoke(org.apache.avalon.framework.service.ServiceManager manager,
Session session,
org.apache.avalon.framework.logger.Logger logger,
DocumentSet documentSet,
java.lang.String event,
boolean force)
Invokes a workflow event on a document set. |
static void |
invoke(org.apache.avalon.framework.service.ServiceManager manager,
Session session,
org.apache.avalon.framework.logger.Logger logger,
Document document,
java.lang.String event)
Invokes a workflow event on a document. |
static void |
invoke(org.apache.avalon.framework.service.ServiceManager manager,
Session session,
org.apache.avalon.framework.logger.Logger logger,
Document document,
java.lang.String event,
boolean force)
Invokes a workflow event on a document. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WorkflowUtil()
Method Detail |
---|
public static void invoke(org.apache.avalon.framework.service.ServiceManager manager, Session session, org.apache.avalon.framework.logger.Logger logger, Document document, java.lang.String event) throws WorkflowException
invoke(Document, String, true)
.
manager
- The service manager.session
- The repository session.logger
- The logger.document
- The document.event
- The name of the event.
WorkflowException
- if the event could not be invoked in the current situation.public static void invoke(org.apache.avalon.framework.service.ServiceManager manager, Session session, org.apache.avalon.framework.logger.Logger logger, Document document, java.lang.String event, boolean force) throws WorkflowException
manager
- The service manager.session
- The repository session.logger
- The logger.document
- The document.event
- The name of the event.force
- If this is set to true
, the execution is forced, which means an
exception is thrown if the workflowable in the set does not support the event. If
set to false
, non-supporting documents are ignored.
WorkflowException
- if the event could not be invoked in the current situation.public static void invoke(org.apache.avalon.framework.service.ServiceManager manager, Session session, org.apache.avalon.framework.logger.Logger logger, DocumentSet documentSet, java.lang.String event, boolean force) throws WorkflowException
manager
- The service manager.session
- The repository session.logger
- The logger.documentSet
- The document.event
- The event.force
- If this is set to true
, the execution is forced, which means an
exception is thrown if a document in the set does not support the event. If set to
false
, non-supporting documents are ignored.
WorkflowException
- if force
is set to true
and a
document does not support the workflow event.public static boolean canInvoke(org.apache.avalon.framework.service.ServiceManager manager, Session session, org.apache.avalon.framework.logger.Logger logger, Document document, java.lang.String event) throws WorkflowException
manager
- The service manager.session
- The repository session.logger
- The logger.document
- The document.event
- The event.
WorkflowException
public static boolean canInvoke(org.apache.avalon.framework.service.ServiceManager manager, Session session, org.apache.avalon.framework.logger.Logger logger, DocumentSet documents, java.lang.String event) throws WorkflowException
manager
- The service manager.session
- The repository session.logger
- The logger.documents
- The documents.event
- The event.
WorkflowException
public static boolean hasWorkflow(org.apache.avalon.framework.service.ServiceManager manager, Session session, org.apache.avalon.framework.logger.Logger logger, Document document) throws WorkflowException
manager
- The service manager.session
- The repository session.logger
- The logger.document
- The document.
WorkflowException
- if an error occurs.public static Workflow getWorkflowSchema(org.apache.avalon.framework.service.ServiceManager manager, Session session, org.apache.avalon.framework.logger.Logger logger, Document document) throws WorkflowException
manager
- The service manager.session
- The repository session.logger
- The logger.document
- The document.
WorkflowException
- if an error occurs.public static Workflowable getWorkflowable(org.apache.avalon.framework.service.ServiceManager manager, Session session, org.apache.avalon.framework.logger.Logger logger, Document document)
manager
- The service manager.session
- The session.logger
- The logger.document
- The document.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |