org.exoplatform.services.wcm.extensions.publication
Class WCMPublicationServiceImpl

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

public class WCMPublicationServiceImpl
extends WCMPublicationServiceImpl


Field Summary
 
Fields inherited from class org.exoplatform.services.wcm.publication.WCMPublicationServiceImpl
cmsService, listenerService, STATEVERSION_LIFECYCLE_NAME
 
Fields inherited from interface org.exoplatform.services.wcm.publication.WCMPublicationService
UPDATE_EVENT
 
Constructor Summary
WCMPublicationServiceImpl()
          Instantiates a new WCM publication service.
 
Method Summary
 void enrollNodeInLifecycle(javax.jcr.Node node, java.lang.String siteName, java.lang.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(NodeLocation currentRevisionLocation)
           
 void updateLifecyleOnChangeContent(javax.jcr.Node node, java.lang.String siteName, java.lang.String remoteUser, java.lang.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, publishContentCLV, publishContentSCV, start, stop, suspendPublishedContentFromPage, unsubcribeLifecycle, updateLifecycleOnChangeNavigation, updateLifecycleOnRemovePage, updateLifecyleOnChangeContent, updateLifecyleOnChangePage, updateLifecyleOnCreateNavigation, updateLifecyleOnCreatePage, updateLifecyleOnRemoveNavigation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WCMPublicationServiceImpl

public WCMPublicationServiceImpl()
Instantiates a new WCM publication service. This service delegate to PublicationService to manage the publication

Method Detail

enrollNodeInLifecycle

public void enrollNodeInLifecycle(javax.jcr.Node node,
                                  java.lang.String siteName,
                                  java.lang.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 WCMPublicationService
Overrides:
enrollNodeInLifecycle in class WCMPublicationServiceImpl

getCurrentRevision

public javax.jcr.Node getCurrentRevision(NodeLocation currentRevisionLocation)

updateLifecyleOnChangeContent

public void updateLifecyleOnChangeContent(javax.jcr.Node node,
                                          java.lang.String siteName,
                                          java.lang.String remoteUser,
                                          java.lang.String newState)
                                   throws java.lang.Exception
This default implementation checks if the state is valid then delegates the update to the node WebpagePublicationPlugin.

Specified by:
updateLifecyleOnChangeContent in interface WCMPublicationService
Overrides:
updateLifecyleOnChangeContent in class WCMPublicationServiceImpl
Throws:
java.lang.Exception


Copyright © 2013 eXo Platform SAS. All Rights Reserved.