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
ConstructorDescriptionDuplicatePageContentTask
(CopyWidgetConfigService copyWidgetConfigService, SecurityManager securityManager) DuplicatePageContentTask
(CopyWidgetConfigService copyWidgetConfigService, SecurityManager securityManager, SnippetHandler snippetHandler) -
Method Summary
Modifier and TypeMethodDescription@Nullable Entity
run
(Optional<Entity> pageContentEntity, CommandContext commandContext) 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
-
DuplicatePageContentTask
public DuplicatePageContentTask(CopyWidgetConfigService copyWidgetConfigService, SecurityManager securityManager, SnippetHandler snippetHandler) -
DuplicatePageContentTask
public DuplicatePageContentTask(CopyWidgetConfigService copyWidgetConfigService, SecurityManager securityManager)
-
-
Method Details