Package ch.tocco.nice2.dms.impl.content
Class ResourceContentServiceImpl
java.lang.Object
ch.tocco.nice2.dms.impl.content.ResourceContentServiceImpl
- All Implemented Interfaces:
ContentService
,ResourceContentService
-
Constructor Summary
ConstructorDescriptionResourceContentServiceImpl
(CommandExecutor commandExecutor, CascadingDeleteService cascadingDeleteService, ContentTreeService contentTreeService, SecurityManager securityManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
publish
(PrimaryKey documentKey) 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 documentKey) Revert the pending changes.void
revertAll
(PrimaryKey key, String entityName) Revert the pending changes.void
setChanged
(PrimaryKey documentKey) Set node state to changed.void
unpublish
(PrimaryKey documentKey) 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
-
ResourceContentServiceImpl
public ResourceContentServiceImpl(CommandExecutor commandExecutor, CascadingDeleteService cascadingDeleteService, ContentTreeService contentTreeService, SecurityManager securityManager)
-
-
Method Details
-
publish
Description copied from interface:ContentService
Publish current content of the node.- Specified by:
publish
in interfaceContentService
- Parameters:
documentKey
- 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:
documentKey
- 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:
documentKey
- 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:
documentKey
- The key of the node.
-