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 Details

    • publish

      void publish(PrimaryKey nodeKey)
      Publish current content of the node.
      Parameters:
      nodeKey - The key of the node to publish.
    • publishAll

      void publishAll(PrimaryKey key, String entityName)
      Publish current content of the node and his child nodes.
      Parameters:
      key - The key.
      entityName - The entityName, Domain or Page for example.
    • revert

      void revert(PrimaryKey nodeKey)
      Revert the pending changes.
      Parameters:
      nodeKey - The key of the node.
    • revertAll

      void revertAll(PrimaryKey key, String entityName)
      Revert the pending changes.
      Parameters:
      key - The key.
      entityName - The entityName, Domain or Page for example.
    • unpublish

      void unpublish(PrimaryKey nodeKey)
      Set node state to offline and delete published content
      Parameters:
      nodeKey - The key of the node.
    • unpublishAll

      void unpublishAll(PrimaryKey key, String entityName)
      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

      void setChanged(PrimaryKey nodeKey)
      Set node state to changed.
      Parameters:
      nodeKey - The key of the node.