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.extensions.publication.lifecycle.authoring.AuthoringPublicationPlugin
All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin

public class AuthoringPublicationPlugin
extends org.exoplatform.services.wcm.publication.WebpagePublicationPlugin

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()
           
 List<String> getListUserNavigationUri(org.exoplatform.portal.config.model.Page page, String remoteUser)
           
 String getLocalizedAndSubstituteMessage(Locale locale, String key, String[] values)
           
 javax.jcr.Node getNodeView(javax.jcr.Node node, Map<String,Object> context)
           
 String[] getPossibleStates()
           
 byte[] getStateImage(javax.jcr.Node node, Locale locale)
           
 org.exoplatform.webui.form.UIForm getStateUI(javax.jcr.Node node, org.exoplatform.webui.core.UIComponent component)
           
 String getUserInfo(javax.jcr.Node node, Locale locale)
           
 void updateLifecyleOnChangeContent(javax.jcr.Node node, String remoteUser)
           
 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.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
Specified by:
changeState in class org.exoplatform.services.ecm.publication.PublicationPlugin
Throws:
org.exoplatform.services.ecm.publication.IncorrectStateUpdateLifecycleException
Exception

getPossibleStates

public String[] getPossibleStates()
Specified by:
getPossibleStates in class org.exoplatform.services.ecm.publication.PublicationPlugin

getLifecycleName

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

getLifecycleType

public String getLifecycleType()
Specified by:
getLifecycleType in class org.exoplatform.services.wcm.publication.WebpagePublicationPlugin

getStateUI

public org.exoplatform.webui.form.UIForm getStateUI(javax.jcr.Node node,
                                                    org.exoplatform.webui.core.UIComponent component)
                                             throws Exception
Specified by:
getStateUI in class org.exoplatform.services.ecm.publication.PublicationPlugin
Throws:
Exception

addMixin

public void addMixin(javax.jcr.Node node)
              throws Exception
Specified by:
addMixin in class org.exoplatform.services.ecm.publication.PublicationPlugin
Throws:
Exception

canAddMixin

public boolean canAddMixin(javax.jcr.Node node)
                    throws Exception
Specified by:
canAddMixin in class org.exoplatform.services.ecm.publication.PublicationPlugin
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.

Specified by:
updateLifecyleOnChangeContent in class org.exoplatform.services.wcm.publication.WebpagePublicationPlugin
Throws:
Exception

getNodeView

public javax.jcr.Node getNodeView(javax.jcr.Node node,
                                  Map<String,Object> context)
                           throws Exception
Specified by:
getNodeView in class org.exoplatform.services.ecm.publication.PublicationPlugin
Throws:
Exception

updateLifecyleOnChangeContent

public void updateLifecyleOnChangeContent(javax.jcr.Node node,
                                          String remoteUser)
                                   throws Exception
Specified by:
updateLifecyleOnChangeContent in class org.exoplatform.services.wcm.publication.WebpagePublicationPlugin
Throws:
Exception

getListUserNavigationUri

public List<String> getListUserNavigationUri(org.exoplatform.portal.config.model.Page page,
                                             String remoteUser)
                                      throws Exception
Specified by:
getListUserNavigationUri in class org.exoplatform.services.wcm.publication.WebpagePublicationPlugin
Throws:
Exception

getStateImage

public byte[] getStateImage(javax.jcr.Node node,
                            Locale locale)
                     throws IOException,
                            FileNotFoundException,
                            Exception
Specified by:
getStateImage in class org.exoplatform.services.ecm.publication.PublicationPlugin
Throws:
IOException
FileNotFoundException
Exception

getUserInfo

public String getUserInfo(javax.jcr.Node node,
                          Locale locale)
                   throws Exception
Specified by:
getUserInfo in class org.exoplatform.services.ecm.publication.PublicationPlugin
Throws:
Exception

getLocalizedAndSubstituteMessage

public String getLocalizedAndSubstituteMessage(Locale locale,
                                               String key,
                                               String[] values)
                                        throws Exception
Specified by:
getLocalizedAndSubstituteMessage in class org.exoplatform.services.ecm.publication.PublicationPlugin
Throws:
Exception


Copyright © 2013 eXo Platform SAS. All Rights Reserved.