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 org.exoplatform.services.wcm.publication.lifecycle.stageversion.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, String newState, HashMap<String,String> context)
           
 String getLifecycleName()
           
 String getLifecycleType()
           
 javax.jcr.Node getNodeView(javax.jcr.Node node, Map<String,Object> context)
           
 String[] getPossibleStates()
           
 org.exoplatform.webui.form.UIForm getStateUI(javax.jcr.Node node, org.exoplatform.webui.core.UIComponent component)
           
 void updateLifecyleOnChangeContent(javax.jcr.Node node, String remoteUser, String newState)
          In this publication process, we put the content in Draft state when editing it.
 
Methods inherited from class org.exoplatform.services.wcm.publication.lifecycle.stageversion.StageAndVersionPublicationPlugin
getListUserNavigationUri, getLocalizedAndSubstituteMessage, getStateImage, getUserInfo, 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,
                        String newState,
                        HashMap<String,String> context)
                 throws org.exoplatform.services.ecm.publication.IncorrectStateUpdateLifecycleException,
                        Exception
Overrides:
changeState in class org.exoplatform.services.wcm.publication.lifecycle.stageversion.StageAndVersionPublicationPlugin
Throws:
org.exoplatform.services.ecm.publication.IncorrectStateUpdateLifecycleException
Exception

getPossibleStates

public String[] getPossibleStates()
Overrides:
getPossibleStates in class org.exoplatform.services.wcm.publication.lifecycle.stageversion.StageAndVersionPublicationPlugin

getLifecycleName

public String getLifecycleName()
Overrides:
getLifecycleName in class org.exoplatform.services.ecm.publication.PublicationPlugin

getLifecycleType

public String getLifecycleType()
Overrides:
getLifecycleType in class org.exoplatform.services.wcm.publication.lifecycle.stageversion.StageAndVersionPublicationPlugin

getStateUI

public org.exoplatform.webui.form.UIForm getStateUI(javax.jcr.Node node,
                                                    org.exoplatform.webui.core.UIComponent component)
                                             throws Exception
Overrides:
getStateUI in class org.exoplatform.services.wcm.publication.lifecycle.stageversion.StageAndVersionPublicationPlugin
Throws:
Exception

addMixin

public void addMixin(javax.jcr.Node node)
              throws Exception
Overrides:
addMixin in class org.exoplatform.services.wcm.publication.lifecycle.stageversion.StageAndVersionPublicationPlugin
Throws:
Exception

canAddMixin

public boolean canAddMixin(javax.jcr.Node node)
                    throws Exception
Overrides:
canAddMixin in class org.exoplatform.services.wcm.publication.lifecycle.stageversion.StageAndVersionPublicationPlugin
Throws:
Exception

updateLifecyleOnChangeContent

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

Overrides:
updateLifecyleOnChangeContent in class org.exoplatform.services.wcm.publication.lifecycle.stageversion.StageAndVersionPublicationPlugin
Throws:
Exception

getNodeView

public javax.jcr.Node getNodeView(javax.jcr.Node node,
                                  Map<String,Object> context)
                           throws Exception
Overrides:
getNodeView in class org.exoplatform.services.wcm.publication.lifecycle.stageversion.StageAndVersionPublicationPlugin
Throws:
Exception


Copyright © 2013 eXo Platform SAS. All Rights Reserved.