Class SnippetContentServiceImpl

java.lang.Object
ch.tocco.nice2.optional.cms.impl.content.SnippetContentServiceImpl
All Implemented Interfaces:
ContentService, SnippetContentService

@Component public class SnippetContentServiceImpl extends Object implements SnippetContentService
  • Constructor Details

  • Method Details

    • publish

      public void publish(PrimaryKey snippetKey)
      Description copied from interface: ContentService
      Publish current content of the node.
      Specified by:
      publish in interface ContentService
      Parameters:
      snippetKey - The key of the node to publish.
    • publishAll

      public void publishAll(PrimaryKey key, String entityName)
      Description copied from interface: ContentService
      Publish current content of the node and his child nodes.
      Specified by:
      publishAll in interface ContentService
      Parameters:
      key - The key.
      entityName - The entityName, Domain or Page for example.
    • revert

      public void revert(PrimaryKey snippetKey)
      Description copied from interface: ContentService
      Revert the pending changes.
      Specified by:
      revert in interface ContentService
      Parameters:
      snippetKey - The key of the node.
    • revertAll

      public void revertAll(PrimaryKey key, String entityName)
      Description copied from interface: ContentService
      Revert the pending changes.
      Specified by:
      revertAll in interface ContentService
      Parameters:
      key - The key.
      entityName - The entityName, Domain or Page for example.
    • unpublish

      public void unpublish(PrimaryKey nodeKey)
      Description copied from interface: ContentService
      Set node state to offline and delete published content
      Specified by:
      unpublish in interface ContentService
      Parameters:
      nodeKey - The key of the node.
    • unpublishAll

      public void unpublishAll(PrimaryKey key, String entityName)
      Description copied from interface: ContentService
      Set node state of the current node and all his children to offline.
      Specified by:
      unpublishAll in interface ContentService
      Parameters:
      key - The key.
      entityName - The entityName, Domain or Page for example.
    • setChanged

      public void setChanged(PrimaryKey snippetKey)
      Description copied from interface: ContentService
      Set node state to changed.
      Specified by:
      setChanged in interface ContentService
      Parameters:
      snippetKey - The key of the node.