Class PublishSnippetHandler
java.lang.Object
ch.tocco.nice2.optional.cms.impl.content.persist.PublishSnippetHandler
- All Implemented Interfaces:
SnippetHandler
Copies the section linked on "relSection" to "relSection_published" using
PublishSnippetTask.-
Constructor Summary
ConstructorsConstructorDescriptionPublishSnippetHandler(CascadingDeleteService cascadingDeleteService, CopyWidgetConfigService copyWidgetConfigService, SecurityManager securityManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(Entity snippet, CommandContext commandContext) Do something with the snippet (i.e.
-
Constructor Details
-
PublishSnippetHandler
public PublishSnippetHandler(CascadingDeleteService cascadingDeleteService, CopyWidgetConfigService copyWidgetConfigService, SecurityManager securityManager)
-
-
Method Details
-
handle
Description copied from interface:SnippetHandlerDo something with the snippet (i.e. copy related sections).- Specified by:
handlein interfaceSnippetHandler- Parameters:
snippet- The snippet to handle.commandContext- The command context.- Throws:
Exception
-