Class UIPublicationPanel


  • public class UIPublicationPanel
    extends org.exoplatform.services.wcm.publication.lifecycle.stageversion.ui.UIPublicationPanel
    Created by The eXo Platform MEA Author : haikel.thamri@exoplatform.com
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  UIPublicationPanel.ChangeStateActionListener
      The listener interface for receiving draftAction events.
      • Nested classes/interfaces inherited from class org.exoplatform.services.wcm.publication.lifecycle.stageversion.ui.UIPublicationPanel

        org.exoplatform.services.wcm.publication.lifecycle.stageversion.ui.UIPublicationPanel.ChangeVersionActionListener, org.exoplatform.services.wcm.publication.lifecycle.stageversion.ui.UIPublicationPanel.CloseActionListener, org.exoplatform.services.wcm.publication.lifecycle.stageversion.ui.UIPublicationPanel.DraftActionListener, org.exoplatform.services.wcm.publication.lifecycle.stageversion.ui.UIPublicationPanel.LiveActionListener, org.exoplatform.services.wcm.publication.lifecycle.stageversion.ui.UIPublicationPanel.ObsoleteActionListener, org.exoplatform.services.wcm.publication.lifecycle.stageversion.ui.UIPublicationPanel.PreviewVersionActionListener, org.exoplatform.services.wcm.publication.lifecycle.stageversion.ui.UIPublicationPanel.RestoreVersionActionListener, org.exoplatform.services.wcm.publication.lifecycle.stageversion.ui.UIPublicationPanel.SeeAllVersionActionListener
      • Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer

        org.exoplatform.webui.core.UIContainer.SelectTabActionListener
    • Field Summary

      • Fields inherited from class org.exoplatform.webui.form.UIForm

        ACTION, SUBCOMPONENT_ID
      • Fields inherited from class org.exoplatform.webui.core.UIComponent

        AJAX_ASYNC, config, OBJECTID, UICOMPONENT, uiparent
    • Constructor Summary

      Constructors 
      Constructor Description
      UIPublicationPanel()
      Instantiates a new uI publication panel.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean canReachState​(LifecyclesConfig.State state, String remoteUser, org.exoplatform.services.jcr.impl.core.NodeImpl node)
      Check if a user is authorized to reach the given state of a given node.
      List<LifecyclesConfig.State> getStates​(javax.jcr.Node cNode)  
      void init​(javax.jcr.Node node)  
      • Methods inherited from class org.exoplatform.services.wcm.publication.lifecycle.stageversion.ui.UIPublicationPanel

        getAllRevisions, getCurrentNode, getCurrentRevision, getRevisionAuthor, getRevisionByUUID, getRevisionCreatedDate, getRevisions, getRevisionState, setCurrentRevision, setRevisions, updatePanel
      • Methods inherited from class org.exoplatform.webui.form.UIForm

        addUIComponentInput, addUIFormInput, addUIFormInput, begin, end, event, event, event, getActions, getLabel, getLabel, getSubmitAction, getUICheckBoxInput, getUIComponentName, getUIFormCheckBoxInput, getUIFormDateTimeInput, getUIFormInputInfo, getUIFormSelectBox, getUIFormTextAreaInput, getUIInput, getUIStringInput, invokeGetBindingBean, invokeSetBindingBean, isMultipart, processRender, renderField, renderField, reset, setActions, setMultiPart, setSubmitAction, url
      • Methods inherited from class org.exoplatform.webui.core.UIContainer

        addChild, addChild, findComponentById, findComponentOfType, findFirstComponentOfType, getChild, getChild, getChildById, getChildren, hasChildren, removeChild, removeChildById, renderChild, renderChild, renderChild, renderChild, renderChildren, renderChildren, renderUIComponent, replaceChild, replaceChild, setChildren, setRenderedChild, setRenderedChild, setRenderedChildrenOfTypes
      • Methods inherited from class org.exoplatform.webui.core.UIComponent

        broadcast, buildModelObject, createEvent, createUIComponent, createUIComponent, createUIComponent, doAsync, event, getAncestorOfType, getApplicationComponent, getComponentConfig, getId, getName, getParent, getTemplate, getTemplateResourceResolver, isRendered, loadConfirmMesssage, processAction, processDecode, renderEventURL, setComponentConfig, setComponentConfig, setId, setParent, setRendered, setRenderSibling, url, url
    • Constructor Detail

      • UIPublicationPanel

        public UIPublicationPanel()
                           throws Exception
        Instantiates a new uI publication panel.
        Throws:
        Exception - the exception
    • Method Detail

      • init

        public void init​(javax.jcr.Node node)
                  throws Exception
        Overrides:
        init in class org.exoplatform.services.wcm.publication.lifecycle.stageversion.ui.UIPublicationPanel
        Throws:
        Exception
      • canReachState

        public boolean canReachState​(LifecyclesConfig.State state,
                                     String remoteUser,
                                     org.exoplatform.services.jcr.impl.core.NodeImpl node)
        Check if a user is authorized to reach the given state of a given node. The user must satisfy the constraints defined by state (memberships or role)
        Parameters:
        state -
        remoteUser -
        node -
        Returns: