Class SnippetContentServiceImpl
java.lang.Object
ch.tocco.nice2.optional.cms.impl.content.SnippetContentServiceImpl
- All Implemented Interfaces:
ContentService
,SnippetContentService
-
Constructor Summary
ConstructorDescriptionSnippetContentServiceImpl
(CommandExecutor commandExecutor, CascadingDeleteService cascadingDeleteService, CopyWidgetConfigService copyWidgetConfigService, SecurityManager securityManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
publish
(PrimaryKey snippetKey) Publish current content of the node.void
publishAll
(PrimaryKey key, String entityName) Publish current content of the node and his child nodes.void
revert
(PrimaryKey snippetKey) Revert the pending changes.void
revertAll
(PrimaryKey key, String entityName) Revert the pending changes.void
setChanged
(PrimaryKey snippetKey) Set node state to changed.void
unpublish
(PrimaryKey nodeKey) Set node state to offline and delete published contentvoid
unpublishAll
(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:ContentService
Publish current content of the node.- Specified by:
publish
in interfaceContentService
- Parameters:
snippetKey
- The key of the node to publish.
-
publishAll
Description copied from interface:ContentService
Publish current content of the node and his child nodes.- Specified by:
publishAll
in interfaceContentService
- Parameters:
key
- The key.entityName
- The entityName, Domain or Page for example.
-
revert
Description copied from interface:ContentService
Revert the pending changes.- Specified by:
revert
in interfaceContentService
- Parameters:
snippetKey
- The key of the node.
-
revertAll
Description copied from interface:ContentService
Revert the pending changes.- Specified by:
revertAll
in interfaceContentService
- Parameters:
key
- The key.entityName
- The entityName, Domain or Page for example.
-
unpublish
Description copied from interface:ContentService
Set node state to offline and delete published content- Specified by:
unpublish
in interfaceContentService
- Parameters:
nodeKey
- The key of the node.
-
unpublishAll
Description copied from interface:ContentService
Set node state of the current node and all his children to offline.- Specified by:
unpublishAll
in interfaceContentService
- Parameters:
key
- The key.entityName
- The entityName, Domain or Page for example.
-
setChanged
Description copied from interface:ContentService
Set node state to changed.- Specified by:
setChanged
in interfaceContentService
- Parameters:
snippetKey
- The key of the node.
-