Class DuplicateSectionTask
java.lang.Object
ch.tocco.nice2.optional.cms.impl.content.persist.DuplicateSectionTask
- All Implemented Interfaces:
PersistTask<Entity,
Entity>
Creates a copy of a section
All linked widget configurations and "Widget_legacy" entities (needed for section visibilities) will also be copied.
Returns the copy of the section.
-
Constructor Summary
ConstructorDescriptionDuplicateSectionTask
(CopyWidgetConfigService copyWidgetConfigService, SecurityManager securityManager) DuplicateSectionTask
(CopyWidgetConfigService copyWidgetConfigService, SecurityManager securityManager, boolean linkCopyToWidgets) -
Method Summary
Modifier and TypeMethodDescription@Nullable Entity
run
(Optional<Entity> section, 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
-
DuplicateSectionTask
public DuplicateSectionTask(CopyWidgetConfigService copyWidgetConfigService, SecurityManager securityManager) -
DuplicateSectionTask
public DuplicateSectionTask(CopyWidgetConfigService copyWidgetConfigService, SecurityManager securityManager, boolean linkCopyToWidgets)
-
-
Method Details
-
run
@Nullable public @Nullable Entity run(Optional<Entity> section, CommandContext commandContext) throws InterruptedException - Specified by:
run
in interfacePersistTask<Entity,
Entity> - Throws:
InterruptedException
-