Class RevertSnippetTask
java.lang.Object
ch.tocco.nice2.optional.cms.impl.content.persist.RevertSnippetTask
- All Implemented Interfaces:
PersistTask<Entity,Void>
Copies the section linked on "relSection_published" to "relSection" using
DuplicateSectionTask,
but only, if the snippet is contained in exactly 1 page with publish status "changed" or "offline".-
Constructor Summary
ConstructorsConstructorDescriptionRevertSnippetTask(CascadingDeleteService cascadingDeleteService, CopyWidgetConfigService copyWidgetConfigService, SecurityManager securityManager) -
Method Summary
Modifier and TypeMethodDescription@Nullable Voidrun(Optional<Entity> snippet, CommandContext commandContext) Methods 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
-
RevertSnippetTask
public RevertSnippetTask(CascadingDeleteService cascadingDeleteService, CopyWidgetConfigService copyWidgetConfigService, SecurityManager securityManager)
-
-
Method Details
-
run
@Nullable public @Nullable Void run(Optional<Entity> snippet, CommandContext commandContext) throws Exception - Specified by:
runin interfacePersistTask<Entity,Void> - Throws:
Exception
-