Class SnippetContentServiceImpl
java.lang.Object
ch.tocco.nice2.optional.cms.impl.content.SnippetContentServiceImpl
- All Implemented Interfaces:
ContentService,SnippetContentService
-
Constructor Summary
ConstructorsConstructorDescriptionSnippetContentServiceImpl(CommandExecutor commandExecutor, CascadingDeleteService cascadingDeleteService, CopyWidgetConfigService copyWidgetConfigService, SecurityManager securityManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidpublish(PrimaryKey snippetKey) Publish current content of the node.voidpublishAll(PrimaryKey key, String entityName) Publish current content of the node and his child nodes.voidrevert(PrimaryKey snippetKey) Revert the pending changes.voidrevertAll(PrimaryKey key, String entityName) Revert the pending changes.voidsetChanged(PrimaryKey snippetKey) Set node state to changed.voidunpublish(PrimaryKey nodeKey) Set node state to offline and delete published contentvoidunpublishAll(PrimaryKey key, String entityName) Set node state of the current node and all his children to offline.
-
Constructor Details
-
SnippetContentServiceImpl
public SnippetContentServiceImpl(CommandExecutor commandExecutor, CascadingDeleteService cascadingDeleteService, CopyWidgetConfigService copyWidgetConfigService, SecurityManager securityManager)
-
-
Method Details
-
publish
Description copied from interface:ContentServicePublish current content of the node.- Specified by:
publishin interfaceContentService- Parameters:
snippetKey- The key of the node to publish.
-
publishAll
Description copied from interface:ContentServicePublish current content of the node and his child nodes.- Specified by:
publishAllin interfaceContentService- Parameters:
key- The key.entityName- The entityName, Domain or Page for example.
-
revert
Description copied from interface:ContentServiceRevert the pending changes.- Specified by:
revertin interfaceContentService- Parameters:
snippetKey- The key of the node.
-
revertAll
Description copied from interface:ContentServiceRevert the pending changes.- Specified by:
revertAllin interfaceContentService- Parameters:
key- The key.entityName- The entityName, Domain or Page for example.
-
unpublish
Description copied from interface:ContentServiceSet node state to offline and delete published content- Specified by:
unpublishin interfaceContentService- Parameters:
nodeKey- The key of the node.
-
unpublishAll
Description copied from interface:ContentServiceSet node state of the current node and all his children to offline.- Specified by:
unpublishAllin interfaceContentService- Parameters:
key- The key.entityName- The entityName, Domain or Page for example.
-
setChanged
Description copied from interface:ContentServiceSet node state to changed.- Specified by:
setChangedin interfaceContentService- Parameters:
snippetKey- The key of the node.
-