Class UIPublicationPanel
- java.lang.Object
-
- org.exoplatform.webui.core.UIComponent
-
- org.exoplatform.webui.core.UIContainer
-
- org.exoplatform.webui.form.UIForm
-
- org.exoplatform.services.wcm.publication.lifecycle.stageversion.ui.UIPublicationPanel
-
- org.exoplatform.services.wcm.extensions.publication.lifecycle.authoring.ui.UIPublicationPanel
-
public class UIPublicationPanel extends org.exoplatform.services.wcm.publication.lifecycle.stageversion.ui.UIPublicationPanelCreated by The eXo Platform MEA Author : haikel.thamri@exoplatform.com
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUIPublicationPanel.ChangeStateActionListenerThe 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
-
-
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 booleancanReachState(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)voidinit(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
-
-
-
-
Method Detail
-
init
public void init(javax.jcr.Node node) throws Exception- Overrides:
initin classorg.exoplatform.services.wcm.publication.lifecycle.stageversion.ui.UIPublicationPanel- Throws:
Exception
-
getStates
public List<LifecyclesConfig.State> getStates(javax.jcr.Node cNode) throws Exception
- 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:
-
-