|
||||||||
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 org.apache.lenya.cms.usecases.webdav.Put
public class Put
Supports WebDAV PUT.
Field Summary | |
---|---|
protected static java.lang.String |
ATTRIBUTE_TYPE
|
protected static java.lang.String |
ELEMENT_EXTENSION
|
protected static java.lang.String |
ELEMENT_ROOT
|
protected static java.lang.String |
EVENT
|
protected java.lang.String |
EXTENSION
|
protected java.lang.String |
TYPE
|
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_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 | |
---|---|
Put()
|
Method Summary | |
---|---|
void |
configure(org.apache.avalon.framework.configuration.Configuration config)
|
protected void |
doCheckExecutionConditions()
|
protected void |
doExecute()
|
protected java.lang.String |
getDocumentTypeName()
|
protected java.lang.String |
getNewDocumentName()
|
protected java.lang.String |
getNewDocumentPath()
|
protected org.apache.lenya.cms.repository.Node[] |
getNodesToLock()
|
protected org.apache.lenya.cms.publication.Publication |
getPublication()
Access to the current publication. |
protected java.lang.String |
getSourceExtension()
|
protected boolean |
getVisibleInNav()
|
protected void |
setMetaData(org.apache.lenya.cms.publication.Document document)
Sets the meta data of the created document. |
Methods inherited from class org.apache.lenya.cms.site.usecases.CreateDocument |
---|
createVersion, getNodeName, getRelation, getSupportedRelations, initParameters, isPathValid |
Methods inherited from class org.apache.lenya.cms.site.usecases.Create |
---|
doCheckPreconditions, getArea, getDublinCoreParameter, getInitialDocument, getNewDocument, getSourceDocument, initSampleParameters, setDublinCoreParameter |
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, 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 java.lang.String TYPE
protected java.lang.String EXTENSION
protected static final java.lang.String ATTRIBUTE_TYPE
protected static final java.lang.String ELEMENT_ROOT
protected static final java.lang.String ELEMENT_EXTENSION
protected static final java.lang.String EVENT
Constructor Detail |
---|
public Put()
Method Detail |
---|
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
protected void doCheckExecutionConditions() throws java.lang.Exception
doCheckExecutionConditions
in class org.apache.lenya.cms.site.usecases.CreateDocument
java.lang.Exception
protected void doExecute() throws java.lang.Exception
doExecute
in class org.apache.lenya.cms.site.usecases.Create
java.lang.Exception
AbstractUsecase.doExecute()
protected org.apache.lenya.cms.repository.Node[] getNodesToLock() throws org.apache.lenya.cms.usecase.UsecaseException
getNodesToLock
in class org.apache.lenya.cms.site.usecases.Create
org.apache.lenya.cms.usecase.UsecaseException
AbstractUsecase.getNodesToLock()
protected void setMetaData(org.apache.lenya.cms.publication.Document document) throws org.apache.lenya.cms.metadata.MetaDataException
setMetaData
in class org.apache.lenya.cms.site.usecases.Create
document
- The document.
org.apache.lenya.cms.metadata.MetaDataException
- if an error occurs.protected org.apache.lenya.cms.publication.Publication getPublication()
getPublication
in class org.apache.lenya.cms.site.usecases.Create
protected java.lang.String getSourceExtension()
getSourceExtension
in class org.apache.lenya.cms.site.usecases.CreateDocument
protected java.lang.String getNewDocumentName()
getNewDocumentName
in class org.apache.lenya.cms.site.usecases.CreateDocument
protected java.lang.String getNewDocumentPath()
getNewDocumentPath
in class org.apache.lenya.cms.site.usecases.CreateDocument
protected boolean getVisibleInNav()
getVisibleInNav
in class org.apache.lenya.cms.site.usecases.Create
protected java.lang.String getDocumentTypeName()
getDocumentTypeName
in class org.apache.lenya.cms.site.usecases.CreateDocument
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |