Class 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
    • 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
      • 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