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.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
ConstructorsConstructorDescriptionInstantiates a new stage and version publication plugin. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMixin(javax.jcr.Node node) booleancanAddMixin(javax.jcr.Node node) voidchangeState(javax.jcr.Node node, String newState, HashMap<String, String> context) getListUserNavigationUri(org.exoplatform.portal.config.model.Page page, String remoteUser) getLocalizedAndSubstituteMessage(Locale locale, String key, String[] values) javax.jcr.NodegetNodeView(javax.jcr.Node node, Map<String, Object> context) String[]byte[]getStateImage(javax.jcr.Node node, Locale locale) org.exoplatform.webui.form.UIFormgetStateUI(javax.jcr.Node node, org.exoplatform.webui.core.UIComponent component) getUserInfo(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
getNodeLifecycleDescMethods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getDescription, getName, setDescription, setName
-
Constructor Details
-
AuthoringPublicationPlugin
public AuthoringPublicationPlugin()Instantiates a new stage and version publication plugin.
-
-
Method Details
-
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
- Specified by:
getPossibleStatesin classorg.exoplatform.services.ecm.publication.PublicationPlugin
-
getLifecycleName
- Overrides:
getLifecycleNamein classorg.exoplatform.services.ecm.publication.PublicationPlugin
-
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
- Specified by:
addMixinin classorg.exoplatform.services.ecm.publication.PublicationPlugin- Throws:
Exception
-
canAddMixin
- Specified by:
canAddMixinin classorg.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:
updateLifecyleOnChangeContentin classorg.exoplatform.services.wcm.publication.WebpagePublicationPlugin- Throws:
Exception
-
getNodeView
- Specified by:
getNodeViewin classorg.exoplatform.services.ecm.publication.PublicationPlugin- Throws:
Exception
-
updateLifecyleOnChangeContent
- Specified by:
updateLifecyleOnChangeContentin 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
- Specified by:
getUserInfoin classorg.exoplatform.services.ecm.publication.PublicationPlugin- Throws:
Exception
-
getLocalizedAndSubstituteMessage
public String getLocalizedAndSubstituteMessage(Locale locale, String key, String[] values) throws Exception - Specified by:
getLocalizedAndSubstituteMessagein classorg.exoplatform.services.ecm.publication.PublicationPlugin- Throws:
Exception
-