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
-
-
Constructor Summary
Constructors Constructor Description WCMPublicationServiceImpl(org.exoplatform.container.xml.InitParams initParams)Instantiates a new WCM publication service.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidenrollNodeInLifecycle(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.NodegetCurrentRevision(org.exoplatform.services.wcm.core.NodeLocation currentRevisionLocation)voidupdateLifecyleOnChangeContent(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.
-
-
-
Method Detail
-
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:
enrollNodeInLifecyclein interfaceorg.exoplatform.services.wcm.publication.WCMPublicationService- Overrides:
enrollNodeInLifecyclein classorg.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 ExceptionThis default implementation checks if the state is valid then delegates the update to the node WebpagePublicationPlugin.- Specified by:
updateLifecyleOnChangeContentin interfaceorg.exoplatform.services.wcm.publication.WCMPublicationService- Overrides:
updateLifecyleOnChangeContentin classorg.exoplatform.services.wcm.publication.WCMPublicationServiceImpl- Throws:
Exception
-
-