|
||||||||
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.EmptyTrash
public class EmptyTrash
Empty the trash.
Field Summary | |
---|---|
protected static java.lang.String |
DOCUMENTS
|
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 | |
---|---|
EmptyTrash()
|
Method Summary | |
---|---|
protected void |
doExecute()
|
protected org.apache.lenya.cms.repository.Node[] |
getNodesToLock()
Lock the following objects: all involved documents in the trash area the document trash site structure |
protected org.apache.lenya.cms.publication.Document[] |
getTrashDocuments()
|
protected void |
initParameters()
|
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, doCheckExecutionConditions, doCheckPostconditions, doCheckPreconditions, 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 DOCUMENTS
Constructor Detail |
---|
public EmptyTrash()
Method Detail |
---|
protected void initParameters()
initParameters
in class org.apache.lenya.cms.usecase.AbstractUsecase
AbstractUsecase.initParameters()
protected org.apache.lenya.cms.repository.Node[] getNodesToLock() throws org.apache.lenya.cms.usecase.UsecaseException
getNodesToLock
in class org.apache.lenya.cms.usecase.AbstractUsecase
org.apache.lenya.cms.usecase.UsecaseException
AbstractUsecase.getNodesToLock()
protected void doExecute() throws java.lang.Exception
doExecute
in class org.apache.lenya.cms.usecase.AbstractUsecase
java.lang.Exception
AbstractUsecase.doExecute()
protected org.apache.lenya.cms.publication.Document[] getTrashDocuments() throws org.apache.lenya.cms.publication.PublicationException, org.apache.lenya.cms.site.SiteException
org.apache.lenya.cms.publication.PublicationException
- if an error occurs.
org.apache.lenya.cms.site.SiteException
- if an error occurs.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |