Class WCMPublicationServiceImpl

java.lang.Object
org.exoplatform.services.wcm.publication.WCMPublicationServiceImpl
org.exoplatform.services.wcm.extensions.publication.WCMPublicationServiceImpl
All Implemented Interfaces:
org.exoplatform.services.wcm.publication.WCMPublicationService, org.picocontainer.Startable

public class WCMPublicationServiceImpl extends org.exoplatform.services.wcm.publication.WCMPublicationServiceImpl
  • Field Summary

    Fields inherited from class org.exoplatform.services.wcm.publication.WCMPublicationServiceImpl

    cmsService, listenerService, publicationService, STATEVERSION_LIFECYCLE_NAME

    Fields inherited from interface org.exoplatform.services.wcm.publication.WCMPublicationService

    UPDATE_EVENT
  • Constructor Summary

    Constructors
    Constructor
    Description
    WCMPublicationServiceImpl(org.exoplatform.container.xml.InitParams initParams)
    Instantiates a new WCM publication service.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    enrollNodeInLifecycle(javax.jcr.Node node, String siteName, String remoteUser)
    This default implementation uses "States and versions based publication" as a default lifecycle for all sites and "Simple Publishing" for the root user.
    javax.jcr.Node
    getCurrentRevision(org.exoplatform.services.wcm.core.NodeLocation currentRevisionLocation)
     
    void
    updateLifecyleOnChangeContent(javax.jcr.Node node, String siteName, String remoteUser, String newState)
    This default implementation checks if the state is valid then delegates the update to the node WebpagePublicationPlugin.

    Methods inherited from class org.exoplatform.services.wcm.publication.WCMPublicationServiceImpl

    addPublicationPlugin, enrollNodeInLifecycle, getContentState, getWebpagePublicationPlugins, isEnrolledInWCMLifecycle, start, stop, unsubcribeLifecycle, updateLifecyleOnChangeContent

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • WCMPublicationServiceImpl

      public WCMPublicationServiceImpl(org.exoplatform.container.xml.InitParams initParams)
      Instantiates a new WCM publication service. This service delegate to PublicationService to manage the publication
  • Method Details

    • enrollNodeInLifecycle

      public void enrollNodeInLifecycle(javax.jcr.Node node, String siteName, String remoteUser)
      This default implementation uses "States and versions based publication" as a default lifecycle for all sites and "Simple Publishing" for the root user.
      Specified by:
      enrollNodeInLifecycle in interface org.exoplatform.services.wcm.publication.WCMPublicationService
      Overrides:
      enrollNodeInLifecycle in class org.exoplatform.services.wcm.publication.WCMPublicationServiceImpl
    • getCurrentRevision

      public javax.jcr.Node getCurrentRevision(org.exoplatform.services.wcm.core.NodeLocation currentRevisionLocation)
    • updateLifecyleOnChangeContent

      public void updateLifecyleOnChangeContent(javax.jcr.Node node, String siteName, String remoteUser, String newState) throws Exception
      This default implementation checks if the state is valid then delegates the update to the node WebpagePublicationPlugin.
      Specified by:
      updateLifecyleOnChangeContent in interface org.exoplatform.services.wcm.publication.WCMPublicationService
      Overrides:
      updateLifecyleOnChangeContent in class org.exoplatform.services.wcm.publication.WCMPublicationServiceImpl
      Throws:
      Exception