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 AbstractCopyContentTask
AbstractCopyContentTask.Config -
Field Summary
Fields inherited from class AbstractCopyContentTask
cascadingDeleteService, duplicateContentTask, securityManager, unsupportedPublishStatusTask -
Constructor Summary
ConstructorsConstructorDescriptionRevertChangesTask(CascadingDeleteService cascadingDeleteService, CopyWidgetConfigService copyWidgetConfigService, SecurityManager securityManager) -
Method Summary
Methods inherited from class AbstractCopyContentTask
getMainEntity, runMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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)
-