|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.lenya.cms.usecase.AbstractUsecase
org.apache.lenya.cms.site.usecases.Create
org.apache.lenya.cms.usecases.webdav.Mkcol
public class Mkcol
Supports WebDAV PUT.
| Field Summary | |
|---|---|
protected static java.lang.String |
ATTRIBUTE_TYPE
|
protected static java.lang.String |
ELEMENT_EXTENSION
|
protected java.lang.String |
EXTENSION
|
protected java.lang.String |
TYPE
|
| 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 | |
|---|---|
Mkcol()
|
|
| Method Summary | |
|---|---|
void |
configure(org.apache.avalon.framework.configuration.Configuration config)
|
protected boolean |
createVersion()
|
protected void |
doExecute()
|
protected java.lang.String |
getDocumentTypeName()
|
protected java.lang.String |
getNewDocumentName()
|
protected java.lang.String |
getNewDocumentPath()
|
protected java.lang.String |
getSourceExtension()
|
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.Create |
|---|
doCheckExecutionConditions, doCheckPreconditions, getArea, getDublinCoreParameter, getInitialDocument, getNewDocument, getNodesToLock, getPublication, getSourceDocument, getVisibleInNav, initParameters, initSampleParameters, isPathValid, 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_EXTENSION
| Constructor Detail |
|---|
public Mkcol()
| 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.Configurableconfigure in class org.apache.lenya.cms.usecase.AbstractUsecaseorg.apache.avalon.framework.configuration.ConfigurationException
protected void doExecute()
throws java.lang.Exception
doExecute in class org.apache.lenya.cms.site.usecases.Createjava.lang.ExceptionAbstractUsecase.doExecute()
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.Createdocument - The document.
org.apache.lenya.cms.metadata.MetaDataException - if an error occurs.protected java.lang.String getNewDocumentName()
getNewDocumentName in class org.apache.lenya.cms.site.usecases.Createprotected java.lang.String getNewDocumentPath()
getNewDocumentPath in class org.apache.lenya.cms.site.usecases.Createprotected java.lang.String getDocumentTypeName()
getDocumentTypeName in class org.apache.lenya.cms.site.usecases.Createprotected java.lang.String getSourceExtension()
getSourceExtension in class org.apache.lenya.cms.site.usecases.Createprotected boolean createVersion()
createVersion in class org.apache.lenya.cms.site.usecases.Create
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||