org.exoplatform.services.wcm.extensions.publication.lifecycle.authoring.ui
Class UIPublicationPanel

java.lang.Object
  extended by org.exoplatform.webui.core.UIComponent
      extended by org.exoplatform.webui.core.UIContainer
          extended by org.exoplatform.webui.form.UIForm
              extended by org.exoplatform.services.wcm.publication.lifecycle.stageversion.ui.UIPublicationPanel
                  extended by org.exoplatform.services.wcm.extensions.publication.lifecycle.authoring.ui.UIPublicationPanel

public class UIPublicationPanel
extends UIPublicationPanel

Created by The eXo Platform MEA Author : haikel.thamri@exoplatform.com


Nested Class Summary
static class UIPublicationPanel.ChangeStateActionListener
          The listener interface for receiving draftAction events.
static class UIPublicationPanel.ResetActionListener
           
static class UIPublicationPanel.SaveActionListener
           
 
Nested classes/interfaces inherited from class org.exoplatform.services.wcm.publication.lifecycle.stageversion.ui.UIPublicationPanel
UIPublicationPanel.ChangeVersionActionListener, UIPublicationPanel.CloseActionListener, UIPublicationPanel.DraftActionListener, UIPublicationPanel.LiveActionListener, UIPublicationPanel.ObsoleteActionListener, UIPublicationPanel.PreviewVersionActionListener, UIPublicationPanel.RestoreVersionActionListener, UIPublicationPanel.SeeAllVersionActionListener
 
Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.core.UIContainer.SelectTabActionListener
 
Field Summary
static java.lang.String END_PUBLICATION
           
static org.apache.commons.logging.Log LOG
           
static java.lang.String OBJECTID
           
static java.lang.String START_PUBLICATION
           
 
Fields inherited from class org.exoplatform.webui.form.UIForm
ACTION, SUBCOMPONENT_ID
 
Fields inherited from class org.exoplatform.webui.core.UIComponent
AJAX_ASYNC, config, UICOMPONENT, uiparent
 
Constructor Summary
UIPublicationPanel()
          Instantiates a new uI publication panel.
 
Method Summary
 boolean canReachState(LifecyclesConfig.State state, java.lang.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.
 java.util.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, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OBJECTID

public static final java.lang.String OBJECTID
See Also:
Constant Field Values

START_PUBLICATION

public static final java.lang.String START_PUBLICATION
See Also:
Constant Field Values

END_PUBLICATION

public static final java.lang.String END_PUBLICATION
See Also:
Constant Field Values

LOG

public static final org.apache.commons.logging.Log LOG
Constructor Detail

UIPublicationPanel

public UIPublicationPanel()
                   throws java.lang.Exception
Instantiates a new uI publication panel.

Throws:
java.lang.Exception - the exception
Method Detail

init

public void init(javax.jcr.Node node)
          throws java.lang.Exception
Overrides:
init in class UIPublicationPanel
Throws:
java.lang.Exception

getStates

public java.util.List<LifecyclesConfig.State> getStates(javax.jcr.Node cNode)
                                                 throws java.lang.Exception
Throws:
java.lang.Exception

canReachState

public boolean canReachState(LifecyclesConfig.State state,
                             java.lang.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:


Copyright © 2011 eXo Platform SAS. All Rights Reserved.