|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.AbstractLogEnabled org.apache.lenya.cms.usecase.AbstractUsecase org.apache.lenya.cms.usecase.DocumentUsecase org.apache.lenya.cms.workflow.usecases.CheckWorkflow
public class CheckWorkflow
Check if a workflow event can be invoked on the current document without actually invoking it.
The event is obtained from the configuration in cocoon.xconf
:
<component-instance name="default/workflow.submit"
logger="lenya.usecases.workflow"
class="org.apache.lenya.cms.workflow.usecases.CheckWorkflow">
<event id="submit"/>
</component-instance>
Field Summary | |
---|---|
protected static java.lang.String |
ATTRIBUTE_ID
|
protected static java.lang.String |
ELEMENT_EVENT
|
Fields inherited from class org.apache.lenya.cms.usecase.DocumentUsecase |
---|
DOCUMENT, TARGET_DOCUMENT |
Fields inherited from class org.apache.lenya.cms.usecase.AbstractUsecase |
---|
ATTRIBUTE_NAME, ATTRIBUTE_POLICY, ATTRIBUTE_USECASE, ATTRIBUTE_VALUE, context, ELEMENT_EXIT, ELEMENT_PARAMETER, ELEMENT_TRANSACTION, ELEMENT_VIEW, manager, PARAMETERS_INITIALIZED, SOURCE_URL, VALUE_OPTIMISTIC, VALUE_PESSIMISTIC |
Fields inherited from interface org.apache.lenya.cms.usecase.Usecase |
---|
ROLE |
Constructor Summary | |
---|---|
CheckWorkflow()
|
Method Summary | |
---|---|
void |
configure(org.apache.avalon.framework.configuration.Configuration config)
|
protected void |
doCheckPreconditions()
|
protected java.lang.String |
getEvent()
|
Methods inherited from class org.apache.lenya.cms.usecase.DocumentUsecase |
---|
getSourceDocument, getSourceURL, getTargetDocument, getTargetURL, initParameters, setDefaultTargetURL, setSourceURL, setTargetDocument |
Methods inherited from class org.apache.lenya.cms.usecase.AbstractUsecase |
---|
addErrorMessage, addErrorMessage, addErrorMessages, addInfoMessage, addInfoMessage, advance, cancel, checkExecutionConditions, checkPostconditions, checkPreconditions, clearErrorMessages, clearInfoMessages, contextualize, deleteParameter, doCheckExecutionConditions, doCheckPostconditions, doExecute, doInitialize, dumpErrorMessages, execute, getBooleanCheckboxParameter, getContext, getDocumentFactory, getErrorMessages, getExitQueryString, getInfoMessages, getName, getNodesToLock, getParameter, getParameterAsBoolean, getParameterAsInteger, getParameterAsString, getParameterAsString, getParameterNames, getParameters, getPart, getSession, getView, hasErrors, hasInfoMessages, initialize, initializeParametersIfNotDone, isOptimistic, lockInvolvedObjects, lockInvolvedObjects, service, setCommitEnabled, setExitParameter, setName, setParameter, setPart, setSession, setView |
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 |
---|
protected static final java.lang.String ELEMENT_EVENT
protected static final java.lang.String ATTRIBUTE_ID
Constructor Detail |
---|
public CheckWorkflow()
Method Detail |
---|
protected java.lang.String getEvent()
protected void doCheckPreconditions() throws java.lang.Exception
doCheckPreconditions
in class org.apache.lenya.cms.usecase.DocumentUsecase
java.lang.Exception
AbstractUsecase.doCheckPreconditions()
public void configure(org.apache.avalon.framework.configuration.Configuration config) throws org.apache.avalon.framework.configuration.ConfigurationException
configure
in interface org.apache.avalon.framework.configuration.Configurable
configure
in class org.apache.lenya.cms.usecase.AbstractUsecase
org.apache.avalon.framework.configuration.ConfigurationException
Configurable.configure(org.apache.avalon.framework.configuration.Configuration)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |