Class RevertChangesTask
java.lang.Object
ch.tocco.nice2.dms.spi.content.persist.AbstractCopyContentTask
ch.tocco.nice2.optional.cms.impl.content.persist.CopyPageContentTask
ch.tocco.nice2.optional.cms.impl.content.persist.RevertChangesTask
- All Implemented Interfaces:
PersistTask<PrimaryKey,
Void>
Clears the edit content and copies the published content to it.
Behavior for snippets:
- If a snippet is in more than one page which has status "changed" or "offline",
it won't be reverted.
- If the current page is the only one with status "changed" or "offline", which
contains a snipped, the snippet will be reverted (copy published content
to edit content).
-
Nested Class Summary
Nested classes/interfaces inherited from class ch.tocco.nice2.dms.spi.content.persist.AbstractCopyContentTask
AbstractCopyContentTask.Config
-
Field Summary
Fields inherited from class ch.tocco.nice2.dms.spi.content.persist.AbstractCopyContentTask
cascadingDeleteService, duplicateContentTask, securityManager, unsupportedPublishStatusTask
-
Constructor Summary
ConstructorDescriptionRevertChangesTask
(CascadingDeleteService cascadingDeleteService, CopyWidgetConfigService copyWidgetConfigService, SecurityManager securityManager) -
Method Summary
Methods inherited from class ch.tocco.nice2.dms.spi.content.persist.AbstractCopyContentTask
getMainEntity, run
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.persist.core.api.exec.PersistTask
andThenDo, compose, compose2, composeWhen, discardResult, expand, expand, getDescription, ifElse, orWhen, orWhenNot, passWhen, passWhenNot, skipErrors, unwrap
-
Constructor Details
-
RevertChangesTask
public RevertChangesTask(CascadingDeleteService cascadingDeleteService, CopyWidgetConfigService copyWidgetConfigService, SecurityManager securityManager)
-