org.exoplatform.services.wcm.extensions.publication.lifecycle.authoring
Class AuthoringPublicationPlugin

java.lang.Object
  extended by org.exoplatform.container.component.BaseComponentPlugin
      extended by org.exoplatform.services.ecm.publication.PublicationPlugin
          extended by org.exoplatform.services.wcm.publication.WebpagePublicationPlugin
              extended by org.exoplatform.services.wcm.publication.lifecycle.stageversion.StageAndVersionPublicationPlugin
                  extended by org.exoplatform.services.wcm.extensions.publication.lifecycle.authoring.AuthoringPublicationPlugin
All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin

public class AuthoringPublicationPlugin
extends StageAndVersionPublicationPlugin

Created by The eXo Platform MEA Author : haikel.thamri@exoplatform.com


Field Summary
 
Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name
 
Constructor Summary
AuthoringPublicationPlugin()
          Instantiates a new stage and version publication plugin.
 
Method Summary
 void addMixin(javax.jcr.Node node)
           
 boolean canAddMixin(javax.jcr.Node node)
           
 void changeState(javax.jcr.Node node, java.lang.String newState, java.util.HashMap<java.lang.String,java.lang.String> context)
           
 java.lang.String getLifecycleName()
           
 java.lang.String getLifecycleType()
           
 javax.jcr.Node getNodeView(javax.jcr.Node node, java.util.Map<java.lang.String,java.lang.Object> context)
           
 java.lang.String[] getPossibleStates()
           
 org.exoplatform.webui.form.UIForm getStateUI(javax.jcr.Node node, org.exoplatform.webui.core.UIComponent component)
           
 void updateLifecycleOnChangeNavigation(org.exoplatform.portal.config.model.PageNavigation pageNavigation, java.lang.String remoteUser)
           
 void updateLifecycleOnRemovePage(org.exoplatform.portal.config.model.Page page, java.lang.String remoteUser)
           
 void updateLifecyleOnChangeContent(javax.jcr.Node node, java.lang.String remoteUser, java.lang.String newState)
          In this publication process, we put the content in Draft state when editing it.
 void updateLifecyleOnChangePage(org.exoplatform.portal.config.model.Page page, java.lang.String remoteUser)
           
 void updateLifecyleOnCreateNavigation(org.exoplatform.portal.config.model.PageNavigation pageNavigation)
           
 void updateLifecyleOnCreatePage(org.exoplatform.portal.config.model.Page page, java.lang.String remoteUser)
           
 void updateLifecyleOnRemoveNavigation(org.exoplatform.portal.config.model.PageNavigation pageNavigation)
           
 
Methods inherited from class org.exoplatform.services.wcm.publication.lifecycle.stageversion.StageAndVersionPublicationPlugin
getListPageNavigationUri, getLocalizedAndSubstituteMessage, getStateImage, getUserInfo, publishContentToCLV, publishContentToSCV, suspendPublishedContentFromPage, updateLifecyleOnChangeContent
 
Methods inherited from class org.exoplatform.services.ecm.publication.PublicationPlugin
getNodeLifecycleDesc
 
Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getDescription, getName, setDescription, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthoringPublicationPlugin

public AuthoringPublicationPlugin()
Instantiates a new stage and version publication plugin.

Method Detail

changeState

public void changeState(javax.jcr.Node node,
                        java.lang.String newState,
                        java.util.HashMap<java.lang.String,java.lang.String> context)
                 throws IncorrectStateUpdateLifecycleException,
                        java.lang.Exception
Overrides:
changeState in class StageAndVersionPublicationPlugin
Throws:
IncorrectStateUpdateLifecycleException
java.lang.Exception

getPossibleStates

public java.lang.String[] getPossibleStates()
Overrides:
getPossibleStates in class StageAndVersionPublicationPlugin

getLifecycleName

public java.lang.String getLifecycleName()
Overrides:
getLifecycleName in class PublicationPlugin

getLifecycleType

public java.lang.String getLifecycleType()
Overrides:
getLifecycleType in class StageAndVersionPublicationPlugin

getStateUI

public org.exoplatform.webui.form.UIForm getStateUI(javax.jcr.Node node,
                                                    org.exoplatform.webui.core.UIComponent component)
                                             throws java.lang.Exception
Overrides:
getStateUI in class StageAndVersionPublicationPlugin
Throws:
java.lang.Exception

addMixin

public void addMixin(javax.jcr.Node node)
              throws java.lang.Exception
Overrides:
addMixin in class StageAndVersionPublicationPlugin
Throws:
java.lang.Exception

canAddMixin

public boolean canAddMixin(javax.jcr.Node node)
                    throws java.lang.Exception
Overrides:
canAddMixin in class StageAndVersionPublicationPlugin
Throws:
java.lang.Exception

updateLifecycleOnChangeNavigation

public void updateLifecycleOnChangeNavigation(org.exoplatform.portal.config.model.PageNavigation pageNavigation,
                                              java.lang.String remoteUser)
                                       throws java.lang.Exception
Overrides:
updateLifecycleOnChangeNavigation in class StageAndVersionPublicationPlugin
Throws:
java.lang.Exception

updateLifecycleOnRemovePage

public void updateLifecycleOnRemovePage(org.exoplatform.portal.config.model.Page page,
                                        java.lang.String remoteUser)
                                 throws java.lang.Exception
Overrides:
updateLifecycleOnRemovePage in class StageAndVersionPublicationPlugin
Throws:
java.lang.Exception

updateLifecyleOnChangePage

public void updateLifecyleOnChangePage(org.exoplatform.portal.config.model.Page page,
                                       java.lang.String remoteUser)
                                throws java.lang.Exception
Overrides:
updateLifecyleOnChangePage in class StageAndVersionPublicationPlugin
Throws:
java.lang.Exception

updateLifecyleOnCreateNavigation

public void updateLifecyleOnCreateNavigation(org.exoplatform.portal.config.model.PageNavigation pageNavigation)
                                      throws java.lang.Exception
Overrides:
updateLifecyleOnCreateNavigation in class StageAndVersionPublicationPlugin
Throws:
java.lang.Exception

updateLifecyleOnCreatePage

public void updateLifecyleOnCreatePage(org.exoplatform.portal.config.model.Page page,
                                       java.lang.String remoteUser)
                                throws java.lang.Exception
Overrides:
updateLifecyleOnCreatePage in class StageAndVersionPublicationPlugin
Throws:
java.lang.Exception

updateLifecyleOnRemoveNavigation

public void updateLifecyleOnRemoveNavigation(org.exoplatform.portal.config.model.PageNavigation pageNavigation)
                                      throws java.lang.Exception
Overrides:
updateLifecyleOnRemoveNavigation in class StageAndVersionPublicationPlugin
Throws:
java.lang.Exception

updateLifecyleOnChangeContent

public void updateLifecyleOnChangeContent(javax.jcr.Node node,
                                          java.lang.String remoteUser,
                                          java.lang.String newState)
                                   throws java.lang.Exception
In this publication process, we put the content in Draft state when editing it.

Overrides:
updateLifecyleOnChangeContent in class StageAndVersionPublicationPlugin
Throws:
java.lang.Exception

getNodeView

public javax.jcr.Node getNodeView(javax.jcr.Node node,
                                  java.util.Map<java.lang.String,java.lang.Object> context)
                           throws java.lang.Exception
Overrides:
getNodeView in class StageAndVersionPublicationPlugin
Throws:
java.lang.Exception


Copyright © 2011 eXo Platform SAS. All Rights Reserved.