Class AuthoringPublicationPlugin
- java.lang.Object
-
- org.exoplatform.container.component.BaseComponentPlugin
-
- org.exoplatform.services.ecm.publication.PublicationPlugin
-
- org.exoplatform.services.wcm.publication.WebpagePublicationPlugin
-
- 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.WebpagePublicationPluginCreated by The eXo Platform MEA Author : haikel.thamri@exoplatform.com
-
-
Constructor Summary
Constructors Constructor Description AuthoringPublicationPlugin()Instantiates a new stage and version publication plugin.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMixin(javax.jcr.Node node)booleancanAddMixin(javax.jcr.Node node)voidchangeState(javax.jcr.Node node, String newState, HashMap<String,String> context)StringgetLifecycleName()StringgetLifecycleType()List<String>getListUserNavigationUri(org.exoplatform.portal.config.model.Page page, String remoteUser)StringgetLocalizedAndSubstituteMessage(Locale locale, String key, String[] values)javax.jcr.NodegetNodeView(javax.jcr.Node node, Map<String,Object> context)String[]getPossibleStates()byte[]getStateImage(javax.jcr.Node node, Locale locale)org.exoplatform.webui.form.UIFormgetStateUI(javax.jcr.Node node, org.exoplatform.webui.core.UIComponent component)StringgetUserInfo(javax.jcr.Node node, Locale locale)voidupdateLifecyleOnChangeContent(javax.jcr.Node node, String remoteUser)voidupdateLifecyleOnChangeContent(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
-
-
-
-
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:
changeStatein classorg.exoplatform.services.ecm.publication.PublicationPlugin- Throws:
org.exoplatform.services.ecm.publication.IncorrectStateUpdateLifecycleExceptionException
-
getPossibleStates
public String[] getPossibleStates()
- Specified by:
getPossibleStatesin classorg.exoplatform.services.ecm.publication.PublicationPlugin
-
getLifecycleName
public String getLifecycleName()
- Overrides:
getLifecycleNamein classorg.exoplatform.services.ecm.publication.PublicationPlugin
-
getLifecycleType
public String getLifecycleType()
- Specified by:
getLifecycleTypein classorg.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:
getStateUIin classorg.exoplatform.services.ecm.publication.PublicationPlugin- Throws:
Exception
-
addMixin
public void addMixin(javax.jcr.Node node) throws Exception- Specified by:
addMixinin classorg.exoplatform.services.ecm.publication.PublicationPlugin- Throws:
Exception
-
canAddMixin
public boolean canAddMixin(javax.jcr.Node node) throws Exception- Specified by:
canAddMixinin classorg.exoplatform.services.ecm.publication.PublicationPlugin- Throws:
Exception
-
updateLifecyleOnChangeContent
public void updateLifecyleOnChangeContent(javax.jcr.Node node, String remoteUser, String newState) throws ExceptionIn this publication process, we put the content in Draft state when editing it.- Specified by:
updateLifecyleOnChangeContentin classorg.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:
getNodeViewin classorg.exoplatform.services.ecm.publication.PublicationPlugin- Throws:
Exception
-
updateLifecyleOnChangeContent
public void updateLifecyleOnChangeContent(javax.jcr.Node node, String remoteUser) throws Exception- Specified by:
updateLifecyleOnChangeContentin classorg.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:
getListUserNavigationUriin classorg.exoplatform.services.wcm.publication.WebpagePublicationPlugin- Throws:
Exception
-
getStateImage
public byte[] getStateImage(javax.jcr.Node node, Locale locale) throws IOException, FileNotFoundException, Exception- Specified by:
getStateImagein classorg.exoplatform.services.ecm.publication.PublicationPlugin- Throws:
IOExceptionFileNotFoundExceptionException
-
getUserInfo
public String getUserInfo(javax.jcr.Node node, Locale locale) throws Exception
- Specified by:
getUserInfoin classorg.exoplatform.services.ecm.publication.PublicationPlugin- Throws:
Exception
-
-