|
||||||||
| 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.site.usecases.CreateLanguage
public class CreateLanguage
Usecase to create a new language version of a resource.
| Field Summary |
|---|
| 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 | |
|---|---|
CreateLanguage()
|
|
| Method Summary | |
|---|---|
protected boolean |
createVersion()
|
protected void |
doCheckPreconditions()
|
protected java.lang.String |
getDocumentTypeName()
|
protected org.apache.lenya.cms.publication.Document |
getInitialDocument()
New language version of a document: use that document's content |
protected java.lang.String |
getNewDocumentName()
For new language version of a document, name is the same as that document's |
protected java.lang.String |
getNewDocumentPath()
For new language version of a document, the path is the same as that document's |
protected java.util.List |
getNonExistingLanguages()
|
protected java.lang.String |
getSourceExtension()
|
protected boolean |
getVisibleInNav()
|
protected void |
initParameters()
|
| Methods inherited from class org.apache.lenya.cms.site.usecases.Create |
|---|
doCheckExecutionConditions, doExecute, getArea, getDublinCoreParameter, getNewDocument, getNodesToLock, getPublication, getSourceDocument, initSampleParameters, isPathValid, 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 |
| Constructor Detail |
|---|
public CreateLanguage()
| Method Detail |
|---|
protected void doCheckPreconditions()
throws java.lang.Exception
doCheckPreconditions in class Createjava.lang.ExceptionAbstractUsecase.doCheckPreconditions()
protected java.util.List getNonExistingLanguages()
throws org.apache.lenya.cms.publication.DocumentBuildException,
org.apache.lenya.cms.publication.DocumentException
org.apache.lenya.cms.publication.DocumentBuildException - if an error occurs.
org.apache.lenya.cms.publication.DocumentException - if an error occurs.protected void initParameters()
initParameters in class CreateAbstractUsecase.initParameters()protected java.lang.String getNewDocumentName()
getNewDocumentName in class CreateCreate.getNewDocumentName()protected java.lang.String getNewDocumentPath()
getNewDocumentPath in class CreateCreate.getNewDocumentPath()protected org.apache.lenya.cms.publication.Document getInitialDocument()
getInitialDocument in class CreateCreate.getInitialDocument()protected java.lang.String getDocumentTypeName()
getDocumentTypeName in class CreateCreate.getDocumentTypeName()protected boolean getVisibleInNav()
getVisibleInNav in class Createprotected java.lang.String getSourceExtension()
getSourceExtension in class Createprotected boolean createVersion()
createVersion in class Create
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||