|
||||||||
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.site.usecases.Create org.apache.lenya.cms.site.usecases.CreateDocument
public class CreateDocument
Usecase to create a document.
Field Summary | |
---|---|
protected static java.lang.String |
DOCUMENT_TYPE
|
protected static java.lang.String |
PARENT_PATH
|
protected static java.lang.String |
PATH_PROVIDED
|
protected static java.lang.String |
RELATION
|
protected static java.lang.String |
RELATION_AFTER
|
protected static java.lang.String |
RELATION_BEFORE
|
protected static java.lang.String |
RELATION_CHILD
|
protected static java.lang.String |
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_NAME, 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 | |
---|---|
CreateDocument()
|
Method Summary | |
---|---|
protected boolean |
createVersion()
|
protected void |
doCheckExecutionConditions()
|
protected java.lang.String |
getDocumentTypeName()
|
protected java.lang.String |
getNewDocumentName()
|
protected java.lang.String |
getNewDocumentPath()
|
protected java.lang.String |
getNodeName()
|
protected java.lang.String |
getRelation()
|
protected java.lang.String |
getSourceExtension()
|
protected java.lang.String[] |
getSupportedRelations()
Override this method to support other relations. |
protected void |
initParameters()
|
protected boolean |
isPathValid()
This method is used by Create.doCheckExecutionConditions() to check if
the path entered by the user is valid. |
Methods inherited from class org.apache.lenya.cms.site.usecases.Create |
---|
doCheckPreconditions, doExecute, 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 |
---|
protected static final java.lang.String PARENT_PATH
protected static final java.lang.String DOCUMENT_TYPE
protected static final java.lang.String RELATION
protected static final java.lang.String RELATIONS
protected static final java.lang.String RELATION_CHILD
protected static final java.lang.String RELATION_BEFORE
protected static final java.lang.String RELATION_AFTER
protected static final java.lang.String PATH_PROVIDED
Constructor Detail |
---|
public CreateDocument()
Method Detail |
---|
protected void initParameters()
initParameters
in class Create
AbstractUsecase.initParameters()
protected java.lang.String[] getSupportedRelations()
protected void doCheckExecutionConditions() throws java.lang.Exception
doCheckExecutionConditions
in class Create
java.lang.Exception
AbstractUsecase.doCheckExecutionConditions()
protected java.lang.String getNodeName()
protected boolean isPathValid()
Create
Create.doCheckExecutionConditions()
to check if
the path entered by the user is valid. If not, checking the existence of
the new document in the site structure is omitted because this operation
could cause errors.
isPathValid
in class Create
protected java.lang.String getNewDocumentName()
getNewDocumentName
in class Create
Create.getNewDocumentName()
protected java.lang.String getRelation()
protected java.lang.String getNewDocumentPath()
getNewDocumentPath
in class Create
Create.getNewDocumentPath()
protected java.lang.String getDocumentTypeName()
getDocumentTypeName
in class Create
Create.getDocumentTypeName()
protected java.lang.String getSourceExtension()
getSourceExtension
in class Create
protected boolean createVersion()
createVersion
in class Create
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |