Class DuplicatePageContentTask
java.lang.Object
ch.tocco.nice2.dms.spi.content.persist.DuplicateContentTask
ch.tocco.nice2.optional.cms.impl.content.persist.DuplicatePageContentTask
- All Implemented Interfaces:
PersistTask<Entity,Entity>
Creates a copy of a page content.
Following stuff will be duplicated:
- The page_content_entity
- All sections and snippets
- If a
SnippetHandler is present, it will be executed.
This might be useful to publish or revert snippet content.
- Section visibilities
- Linked widget configurations-
Constructor Summary
ConstructorsConstructorDescriptionDuplicatePageContentTask(CopyWidgetConfigService copyWidgetConfigService, SecurityManager securityManager) DuplicatePageContentTask(CopyWidgetConfigService copyWidgetConfigService, SecurityManager securityManager, SnippetHandler snippetHandler) -
Method Summary
Modifier and TypeMethodDescription@Nullable Entityrun(Optional<Entity> pageContentEntity, 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
-
DuplicatePageContentTask
public DuplicatePageContentTask(CopyWidgetConfigService copyWidgetConfigService, SecurityManager securityManager, SnippetHandler snippetHandler) -
DuplicatePageContentTask
public DuplicatePageContentTask(CopyWidgetConfigService copyWidgetConfigService, SecurityManager securityManager)
-
-
Method Details
-
run
-