org.exoplatform.services.wcm.publication.lifecycle.stageversion.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

public class UIPublicationPanel
extends org.exoplatform.webui.form.UIForm

Created by The eXo Platform SAS Author : eXoPlatform chuong_phan@exoplatform.com Mar 2, 2009


Nested Class Summary
static class UIPublicationPanel.ChangeVersionActionListener
          The listener interface for receiving changeVersionAction events.
static class UIPublicationPanel.CloseActionListener
          The listener interface for receiving closeAction events.
static class UIPublicationPanel.DraftActionListener
          The listener interface for receiving draftAction events.
static class UIPublicationPanel.LiveActionListener
          The listener interface for receiving liveAction events.
static class UIPublicationPanel.ObsoleteActionListener
          The listener interface for receiving obsoleteAction events.
static class UIPublicationPanel.PreviewVersionActionListener
          The listener interface for receiving previewVersionAction events.
static class UIPublicationPanel.RestoreVersionActionListener
          The listener interface for receiving restoreVersionAction events.
static class UIPublicationPanel.SeeAllVersionActionListener
          The listener interface for receiving seeAllVersionAction events.
 
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
config, OBJECTID, UICOMPONENT, uiparent
 
Constructor Summary
UIPublicationPanel()
          Instantiates a new uI publication panel.
 
Method Summary
 java.util.List<javax.jcr.Node> getAllRevisions(javax.jcr.Node node)
          Gets the all revisions.
 javax.jcr.Node getCurrentNode()
          Gets the current node.
 javax.jcr.Node getCurrentRevision()
          Gets the current revision.
 java.lang.String getRevisionAuthor(javax.jcr.Node revision)
          Gets the revision author.
 javax.jcr.Node getRevisionByUUID(java.lang.String revisionUUID)
          Gets the revision by uuid.
 java.lang.String getRevisionCreatedDate(javax.jcr.Node revision)
          Gets the revision created date.
 java.util.List<javax.jcr.Node> getRevisions()
          Gets the revisions.
 java.lang.String getRevisionState(javax.jcr.Node revision)
          Gets the revision state.
 void init(javax.jcr.Node node)
          Inits the.
 void setCurrentRevision(javax.jcr.Node revision)
          Sets the current revision.
 void setRevisions(java.util.List<javax.jcr.Node> revisions)
          Sets the revisions.
 void updatePanel()
          Update panel.
 
Methods inherited from class org.exoplatform.webui.form.UIForm
addUIComponentInput, addUIFormInput, addUIFormInput, begin, end, event, event, event, getActions, getLabel, getLabel, getSubmitAction, 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, renderChildren, renderChildren, renderUIComponent, replaceChild, replaceChild, setChildren, setRenderedChild, setRenderedChild, setRenderedChildrenOfTypes, visit
 
Methods inherited from class org.exoplatform.webui.core.UIComponent
broadcast, createEvent, createUIComponent, createUIComponent, createUIComponent, event, getAncestorOfType, getApplicationComponent, getComponentConfig, getId, getName, getParent, getTemplate, getTemplateResourceResolver, isRendered, loadConfirmMesssage, processAction, processDecode, setComponentConfig, setComponentConfig, setId, setParent, setRendered, setRenderSibbling, url, url
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
Inits the.

Parameters:
node - the node
Throws:
java.lang.Exception - the exception

getAllRevisions

public java.util.List<javax.jcr.Node> getAllRevisions(javax.jcr.Node node)
                                               throws java.lang.Exception
Gets the all revisions.

Parameters:
node - the node
Returns:
the all revisions
Throws:
java.lang.Exception - the exception

getCurrentNode

public javax.jcr.Node getCurrentNode()
Gets the current node.

Returns:
the current node

getCurrentRevision

public javax.jcr.Node getCurrentRevision()
Gets the current revision.

Returns:
the current revision

getRevisionAuthor

public java.lang.String getRevisionAuthor(javax.jcr.Node revision)
                                   throws java.lang.Exception
Gets the revision author.

Parameters:
revision - the revision
Returns:
the revision author
Throws:
java.lang.Exception - the exception

getRevisionByUUID

public javax.jcr.Node getRevisionByUUID(java.lang.String revisionUUID)
                                 throws java.lang.Exception
Gets the revision by uuid.

Parameters:
revisionUUID - the revision uuid
Returns:
the revision by uuid
Throws:
java.lang.Exception - the exception

getRevisionCreatedDate

public java.lang.String getRevisionCreatedDate(javax.jcr.Node revision)
                                        throws java.lang.Exception
Gets the revision created date.

Parameters:
revision - the revision
Returns:
the revision created date
Throws:
java.lang.Exception - the exception

getRevisions

public java.util.List<javax.jcr.Node> getRevisions()
Gets the revisions.

Returns:
the revisions

getRevisionState

public java.lang.String getRevisionState(javax.jcr.Node revision)
                                  throws java.lang.Exception
Gets the revision state.

Parameters:
revision - the revision
Returns:
the revision state
Throws:
java.lang.Exception - the exception

setCurrentRevision

public void setCurrentRevision(javax.jcr.Node revision)
Sets the current revision.

Parameters:
revision - the new current revision

setRevisions

public void setRevisions(java.util.List<javax.jcr.Node> revisions)
Sets the revisions.

Parameters:
revisions - the new revisions

updatePanel

public void updatePanel()
                 throws java.lang.Exception
Update panel.

Throws:
java.lang.Exception - the exception


Copyright © 2010 eXo Platform SAS. All Rights Reserved.