org.apache.lenya.cms.site.usecases
Class CreateUsecaseDocument

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.lenya.cms.usecase.AbstractUsecase
          extended by org.apache.lenya.cms.site.usecases.Create
              extended by org.apache.lenya.cms.site.usecases.CreateDocument
                  extended by org.apache.lenya.cms.site.usecases.CreateUsecaseDocument
All Implemented Interfaces:
org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.service.Serviceable, org.apache.lenya.cms.usecase.Usecase

public class CreateUsecaseDocument
extends org.apache.lenya.cms.site.usecases.CreateDocument

Create a usecase document. The document content looks like this:

   <usecase name="..."/>
 


Field Summary
static java.lang.String ATTRIBUTE_NAME
          The local name of the name attribute.
static java.lang.String ELEMENT_USECASE
          The local name of the usecase XML element.
static java.lang.String NAMESPACE
          The namespace for usecase document content.
protected static java.lang.String RESOURCE_TYPE_USECASE
           
protected static java.lang.String USECASE
           
 
Fields inherited from class org.apache.lenya.cms.site.usecases.CreateDocument
DOCUMENT_TYPE, PARENT_PATH, PATH_PROVIDED, RELATION, RELATION_AFTER, RELATION_BEFORE, RELATION_CHILD, RELATIONS
 
Fields inherited from class org.apache.lenya.cms.site.usecases.Create
DUBLIN_CORE_PREFIX, LANGUAGE, LANGUAGES, NODE_NAME, PATH, RESOURCE_TYPES, SAMPLE, SAMPLES, VISIBLEINNAV
 
Fields inherited from class org.apache.lenya.cms.usecase.AbstractUsecase
ATTRIBUTE_POLICY, ATTRIBUTE_USECASE, ATTRIBUTE_VALUE, context, ELEMENT_EXIT, ELEMENT_PARAMETER, ELEMENT_TRANSACTION, ELEMENT_VIEW, ERROR_OBJECTS_CHECKED_OUT, EVENT_CHECK_EXECUTION_CONDITIONS, EVENT_CHECK_POSTCONDITIONS, EVENT_CHECK_PRECONDITIONS, EVENT_EXECUTE, manager, MODEL, PARAMETER_CHECKOUT_RESTRICTED_TO_SESSION, PARAMETER_FACTORY, PARAMETER_SESSION, PARAMETER_STATE_MACHINE, PARAMETERS_INITIALIZED, SOURCE_URL, TRANSITIONS, VALUE_OPTIMISTIC, VALUE_PESSIMISTIC
 
Fields inherited from interface org.apache.lenya.cms.usecase.Usecase
ROLE
 
Constructor Summary
CreateUsecaseDocument()
           
 
Method Summary
protected  void doCheckExecutionConditions()
           
protected  void doExecute()
           
protected  void initParameters()
           
 
Methods inherited from class org.apache.lenya.cms.site.usecases.CreateDocument
createVersion, getDocumentTypeName, getNewDocumentName, getNewDocumentPath, getNodeName, getRelation, getSourceExtension, getSupportedRelations, isPathValid
 
Methods inherited from class org.apache.lenya.cms.site.usecases.Create
doCheckPreconditions, getArea, getDublinCoreParameter, getInitialDocument, getNewDocument, getNodesToLock, getPublication, getSourceDocument, getVisibleInNav, initSampleParameters, setDublinCoreParameter, setMetaData
 
Methods inherited from class org.apache.lenya.cms.usecase.AbstractUsecase
addErrorMessage, addErrorMessage, addErrorMessages, addInfoMessage, addInfoMessage, advance, advanceState, cancel, canCheckOut, checkEvent, checkExecutionConditions, checkoutRestrictedToSession, checkPostconditions, checkPreconditions, clearErrorMessages, clearInfoMessages, configure, contextualize, deleteParameter, doCheckPostconditions, doInitialize, dumpErrorMessages, execute, getBooleanCheckboxParameter, getContext, getDocumentFactory, getErrorMessages, getExitQueryString, getInfoMessages, getName, getParameter, getParameter, getParameterAsBoolean, getParameterAsInteger, getParameterAsString, getParameterAsString, getParameterNames, getParameters, getPart, getSession, getSourceURL, getStateMachine, getTargetURL, getView, hasErrors, hasInfoMessages, initialize, initializeParametersIfNotDone, isOptimistic, lockInvolvedObjects, lockInvolvedObjects, prepareView, service, setDefaultTargetURL, setExitParameter, setName, setParameter, setPart, setSession, setSourceURL, setTestSession, setView, startTransaction
 
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

USECASE

protected static final java.lang.String USECASE
See Also:
Constant Field Values

RESOURCE_TYPE_USECASE

protected static final java.lang.String RESOURCE_TYPE_USECASE
See Also:
Constant Field Values

NAMESPACE

public static final java.lang.String NAMESPACE
The namespace for usecase document content.

See Also:
Constant Field Values

ELEMENT_USECASE

public static final java.lang.String ELEMENT_USECASE
The local name of the usecase XML element.

See Also:
Constant Field Values

ATTRIBUTE_NAME

public static final java.lang.String ATTRIBUTE_NAME
The local name of the name attribute.

See Also:
Constant Field Values
Constructor Detail

CreateUsecaseDocument

public CreateUsecaseDocument()
Method Detail

initParameters

protected void initParameters()
Overrides:
initParameters in class org.apache.lenya.cms.site.usecases.CreateDocument

doCheckExecutionConditions

protected void doCheckExecutionConditions()
                                   throws java.lang.Exception
Overrides:
doCheckExecutionConditions in class org.apache.lenya.cms.site.usecases.CreateDocument
Throws:
java.lang.Exception

doExecute

protected void doExecute()
                  throws java.lang.Exception
Overrides:
doExecute in class org.apache.lenya.cms.site.usecases.Create
Throws:
java.lang.Exception


Copyright $ Apache Software Foundation. All Rights Reserved.