Package ch.tocco.nice2.dms.spi.content
Interface ContentService
- All Known Subinterfaces:
PageContentService
,ResourceContentService
,SnippetContentService
- All Known Implementing Classes:
PageContentServiceImpl
,ResourceContentServiceImpl
,SnippetContentServiceImpl
public interface ContentService
This service provides functionality to handle the
content of a node.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
publish
(PrimaryKey nodeKey) 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 nodeKey) Revert the pending changes.void
revertAll
(PrimaryKey key, String entityName) Revert the pending changes.void
setChanged
(PrimaryKey nodeKey) 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.
-
Method Details
-
publish
Publish current content of the node.- Parameters:
nodeKey
- The key of the node to publish.
-
publishAll
Publish current content of the node and his child nodes.- Parameters:
key
- The key.entityName
- The entityName, Domain or Page for example.
-
revert
Revert the pending changes.- Parameters:
nodeKey
- The key of the node.
-
revertAll
Revert the pending changes.- Parameters:
key
- The key.entityName
- The entityName, Domain or Page for example.
-
unpublish
Set node state to offline and delete published content- Parameters:
nodeKey
- The key of the node.
-
unpublishAll
Set node state of the current node and all his children to offline.- Parameters:
key
- The key.entityName
- The entityName, Domain or Page for example.
-
setChanged
Set node state to changed.- Parameters:
nodeKey
- The key of the node.
-