|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.services.wcm.publication.WCMPublicationServiceImpl
public class WCMPublicationServiceImpl
Created by The eXo Platform SAS Author : Hoa Pham hoa.pham@exoplatform.com Sep 29, 2008
| Field Summary |
|---|
| Fields inherited from interface org.exoplatform.services.wcm.publication.WCMPublicationService |
|---|
UPDATE_EVENT |
| Constructor Summary | |
|---|---|
WCMPublicationServiceImpl()
Instantiates a new WCM publication service. |
|
| Method Summary | |
|---|---|
void |
addPublicationPlugin(WebpagePublicationPlugin p)
Add a Web Publication Plugin to the service. |
void |
enrollNodeInLifecycle(javax.jcr.Node node,
java.lang.String lifecycleName)
Enroll in a web page publication lifecycle. |
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. |
java.lang.String |
getContentState(javax.jcr.Node node)
returns the current state of the content. |
java.util.Map<java.lang.String,WebpagePublicationPlugin> |
getWebpagePublicationPlugins()
Retrieves all added web page publication plugins. |
boolean |
isEnrolledInWCMLifecycle(javax.jcr.Node node)
Checks if is enrolled in wcm lifecycle. |
void |
publishContentCLV(javax.jcr.Node content,
org.exoplatform.portal.config.model.Page page,
java.lang.String clvPortletId,
java.lang.String portalOwnerName,
java.lang.String remoteUser)
Publish content to a portal page when the node is in a publication lifecyle. |
void |
publishContentSCV(javax.jcr.Node content,
org.exoplatform.portal.config.model.Page page,
java.lang.String portalOwnerName)
Publish content to a portal page when the node is in a publication lifecyle. |
void |
start()
|
void |
stop()
|
void |
suspendPublishedContentFromPage(javax.jcr.Node content,
org.exoplatform.portal.config.model.Page page,
java.lang.String remoteUser)
Suspend a published content from a portal page. |
void |
unsubcribeLifecycle(javax.jcr.Node node)
Unsubcribe node from a lifecycle plugin. |
void |
updateLifecycleOnChangeNavigation(org.exoplatform.portal.config.model.PageNavigation navigation,
java.lang.String remoteUser)
Retrieves all web page lifecycles and update the publication lifecycle when a navigation is changed. |
void |
updateLifecycleOnRemovePage(org.exoplatform.portal.config.model.Page page,
java.lang.String remoteUser)
Retrieves all web page lifecycles and update the publication lifecycle when a page is removed. |
void |
updateLifecyleOnChangeContent(javax.jcr.Node node,
java.lang.String siteName,
java.lang.String remoteUser)
This default implementation simply delegates updates to the node WebpagePublicationPlugin. |
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. |
void |
updateLifecyleOnChangePage(org.exoplatform.portal.config.model.Page page,
java.lang.String remoteUser)
Retrieves all web page lifecycles and update the publication lifecycle when a page is changed. |
void |
updateLifecyleOnCreateNavigation(org.exoplatform.portal.config.model.PageNavigation navigation)
Retrieves all web page lifecycles and update the publication lifecycle when a navigation is created. |
void |
updateLifecyleOnCreatePage(org.exoplatform.portal.config.model.Page page,
java.lang.String remoteUser)
Retrieves all web page lifecycles and update the publication lifecycle when a page is created. |
void |
updateLifecyleOnRemoveNavigation(org.exoplatform.portal.config.model.PageNavigation navigation)
Retrieves all web page lifecycles and update the publication lifecycle when a navigation is removed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WCMPublicationServiceImpl()
publicationService - the publication service| Method Detail |
|---|
public void addPublicationPlugin(WebpagePublicationPlugin p)
WCMPublicationService
addPublicationPlugin in interface WCMPublicationServicep - the plugin to add
public void suspendPublishedContentFromPage(javax.jcr.Node content,
org.exoplatform.portal.config.model.Page page,
java.lang.String remoteUser)
throws org.exoplatform.services.ecm.publication.NotInPublicationLifecycleException,
java.lang.Exception
WCMPublicationService
suspendPublishedContentFromPage in interface WCMPublicationServicecontent - the jcr content nodepage - the portal page
org.exoplatform.services.ecm.publication.NotInPublicationLifecycleException - the not in publication lifecycle exception
java.lang.Exception - the exception
public void publishContentSCV(javax.jcr.Node content,
org.exoplatform.portal.config.model.Page page,
java.lang.String portalOwnerName)
throws org.exoplatform.services.ecm.publication.NotInPublicationLifecycleException,
java.lang.Exception
WCMPublicationService
publishContentSCV in interface WCMPublicationServicecontent - the contentpage - the page
org.exoplatform.services.ecm.publication.NotInPublicationLifecycleException - the not in publication lifecycle exception
java.lang.Exception - the exception
public void publishContentCLV(javax.jcr.Node content,
org.exoplatform.portal.config.model.Page page,
java.lang.String clvPortletId,
java.lang.String portalOwnerName,
java.lang.String remoteUser)
throws java.lang.Exception
WCMPublicationService
publishContentCLV in interface WCMPublicationServicecontent - the contentpage - the pageclvPortletId - the clv portlet idportalOwnerName - the portal owner nameremoteUser - the remote user
java.lang.Exception - the exception
public void enrollNodeInLifecycle(javax.jcr.Node node,
java.lang.String lifecycleName)
throws java.lang.Exception
WCMPublicationService
enrollNodeInLifecycle in interface WCMPublicationServicenode - the nodelifecycleName - the lifecycle name
java.lang.Exception - the exception
public void unsubcribeLifecycle(javax.jcr.Node node)
throws org.exoplatform.services.ecm.publication.NotInPublicationLifecycleException,
java.lang.Exception
WCMPublicationService
unsubcribeLifecycle in interface WCMPublicationServicenode - the node
org.exoplatform.services.ecm.publication.NotInPublicationLifecycleException - the not in publication lifecycle exception
java.lang.Exception - the exceptionpublic java.util.Map<java.lang.String,WebpagePublicationPlugin> getWebpagePublicationPlugins()
WCMPublicationService
getWebpagePublicationPlugins in interface WCMPublicationService
public void updateLifecycleOnChangeNavigation(org.exoplatform.portal.config.model.PageNavigation navigation,
java.lang.String remoteUser)
WCMPublicationService
updateLifecycleOnChangeNavigation in interface WCMPublicationServicenavigation - the navigation
public void updateLifecycleOnRemovePage(org.exoplatform.portal.config.model.Page page,
java.lang.String remoteUser)
WCMPublicationService
updateLifecycleOnRemovePage in interface WCMPublicationServicepage - the page
public void updateLifecyleOnChangePage(org.exoplatform.portal.config.model.Page page,
java.lang.String remoteUser)
WCMPublicationService
updateLifecyleOnChangePage in interface WCMPublicationServicepage - the pagepublic void updateLifecyleOnCreateNavigation(org.exoplatform.portal.config.model.PageNavigation navigation)
WCMPublicationService
updateLifecyleOnCreateNavigation in interface WCMPublicationServicenavigation - the navigation
public void updateLifecyleOnCreatePage(org.exoplatform.portal.config.model.Page page,
java.lang.String remoteUser)
WCMPublicationService
updateLifecyleOnCreatePage in interface WCMPublicationServicepage - the pagepublic void updateLifecyleOnRemoveNavigation(org.exoplatform.portal.config.model.PageNavigation navigation)
WCMPublicationService
updateLifecyleOnRemoveNavigation in interface WCMPublicationServicenavigation - the navigationpublic void start()
start in interface org.picocontainer.Startablepublic void stop()
stop in interface org.picocontainer.Startable
public boolean isEnrolledInWCMLifecycle(javax.jcr.Node node)
throws org.exoplatform.services.ecm.publication.NotInPublicationLifecycleException,
java.lang.Exception
WCMPublicationService
isEnrolledInWCMLifecycle in interface WCMPublicationServicenode - the node
org.exoplatform.services.ecm.publication.NotInPublicationLifecycleException - the not in publication lifecycle exception
java.lang.Exception - the exception
public void enrollNodeInLifecycle(javax.jcr.Node node,
java.lang.String siteName,
java.lang.String remoteUser)
throws java.lang.Exception
enrollNodeInLifecycle in interface WCMPublicationServicejava.lang.Exception
public void updateLifecyleOnChangeContent(javax.jcr.Node node,
java.lang.String siteName,
java.lang.String remoteUser)
throws java.lang.Exception
updateLifecyleOnChangeContent in interface WCMPublicationServicejava.lang.ExceptionPostCreateContentEventListener,
PostEditContentEventListener
public void updateLifecyleOnChangeContent(javax.jcr.Node node,
java.lang.String siteName,
java.lang.String remoteUser,
java.lang.String newState)
throws java.lang.Exception
updateLifecyleOnChangeContent in interface WCMPublicationServicejava.lang.Exception
public java.lang.String getContentState(javax.jcr.Node node)
throws java.lang.Exception
WCMPublicationService
getContentState in interface WCMPublicationServicejava.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||