org.infoglue.cms.applications.structuretool.actions
Class ViewSiteNodeAction

java.lang.Object
  |
  +--org.infoglue.cms.applications.common.actions.WebworkAbstractAction
        |
        +--org.infoglue.cms.applications.common.actions.InfoGlueAbstractAction
              |
              +--org.infoglue.cms.applications.structuretool.actions.ViewSiteNodeAction
All Implemented Interfaces:
webwork.action.Action, webwork.action.CommandDriven, java.io.Serializable, webwork.action.ServletRequestAware, webwork.action.ServletResponseAware
Direct Known Subclasses:
UpdateSiteNodeAction

public class ViewSiteNodeAction
extends InfoGlueAbstractAction

This class represents the view of a siteNode to the user. In fact - it presents the view of the siteNode as well as the view of the latest siteNodeVersion as well.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
ViewSiteNodeAction()
           
ViewSiteNodeAction(SiteNodeVO siteNodeVO, SiteNodeVersionVO siteNodeVersionVO)
           
 
Method Summary
 java.lang.String doChangeState()
           
 java.lang.String doCommentVersion()
           
 java.lang.String doExecute()
           
 java.util.List getAvailableServiceBindings()
           
 java.lang.Integer getChangeTypeId()
           
 java.lang.String getContentType()
           
 java.lang.String getDest()
           
 java.lang.Integer getDisableEditOnSight()
           
 java.lang.Integer getDisablePageCache()
           
 java.lang.String getExpireDateTime()
           
 long getExpireDateTimeAsLong()
           
 java.lang.Boolean getIsBranch()
           
 java.lang.Integer getIsProtected()
           
 boolean getIsSiteNodeTypeDefinitionAssigned()
           
 java.util.List getListPreparedQualifyers(java.lang.Integer serviceBindingId)
           
 java.lang.String getName()
           
 java.lang.String getPublishDateTime()
           
 long getPublishDateTimeAsLong()
           
 java.lang.String getQualifyerDescription(java.lang.Integer serviceBindingId)
          This method fetches a description of the qualifyer.
 java.util.List getReferenceBeanList()
           
 java.lang.Integer getRepositoryId()
           
 java.util.List getServiceBindings()
           
 java.lang.String getShowComponentsFirst()
           
 EventVO getSiteNodeEvent(java.lang.Integer siteNodeId)
           
 java.lang.Integer getSiteNodeId()
           
 SiteNodeTypeDefinitionVO getSiteNodeTypeDefinition()
           
 java.util.List getSiteNodeTypeDefinitions()
          This method fetches the list of SiteNodeTypeDefinitions
 SiteNodeVersionVO getSiteNodeVersion()
           
 EventVO getSiteNodeVersionEvent(java.lang.Integer siteNodeVersionId)
           
 java.lang.Integer getSiteNodeVersionId()
           
 SiteNodeVersionVO getSiteNodeVersionVO()
           
 java.util.List getSortedAvailableContentServiceBindings()
          This method sorts a list of available service bindings on the name of the binding.
 java.util.List getSortedAvailableServiceBindings()
          This method sorts a list of available service bindings on the name of the binding.
 java.util.List getSortedAvailableStructureServiceBindings()
          This method sorts a list of available service bindings on the name of the binding.
 java.lang.String getStateDescription(java.lang.Integer siteNodeId, java.lang.Integer languageId)
           
 java.lang.Integer getStateId()
           
 java.lang.String getStay()
           
 java.lang.Integer getUnrefreshedSiteNodeId()
           
 java.lang.String getVersionComment()
           
 void setChangeTypeId(java.lang.Integer changeTypeId)
           
 void setContentType(java.lang.String contentType)
           
 void setDisableEditOnSight(java.lang.Integer disableEditOnSight)
           
 void setDisablePageCache(java.lang.Integer disablePageCache)
           
 void setIsProtected(java.lang.Integer isProtected)
           
 void setRepositoryId(java.lang.Integer repositoryId)
           
 void setSiteNodeId(java.lang.Integer siteNodeId)
           
 void setSiteNodeVersionId(java.lang.Integer siteNodeVersionId)
           
 void setStateId(java.lang.Integer stateId)
           
 void setStay(java.lang.String stay)
           
 void setUnrefreshedSiteNodeId(java.lang.Integer unrefreshedSiteNodeId)
           
 void setVersionComment(java.lang.String versionComment)
           
 
Methods inherited from class org.infoglue.cms.applications.common.actions.InfoGlueAbstractAction
beginTransaction, closeDatabase, closeTransaction, encode, getCMSBaseUrl, getColorScheme, getComponentRendererAction, getComponentRendererUrl, getCurrentURL, getLanguageCode, getLocale, getPrincipalPropertyHashValues, getPrincipalPropertyValue, getPrincipalPropertyValue, getSessionTimeout, getThis, getURLBase, getUserName, hasAccessTo, hasAccessTo, rollbackTransaction, setColorScheme
 
Methods inherited from class org.infoglue.cms.applications.common.actions.WebworkAbstractAction
doDefault, execute, getBrowserBean, getCurrentUrl, getError, getErrors, getInfoGluePrincipal, getLocalizedString, getRoot, getSession, setCommand, setServletRequest, setServletResponse
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewSiteNodeAction

public ViewSiteNodeAction()

ViewSiteNodeAction

public ViewSiteNodeAction(SiteNodeVO siteNodeVO,
                          SiteNodeVersionVO siteNodeVersionVO)
Method Detail

doExecute

public java.lang.String doExecute()
                           throws java.lang.Exception
Overrides:
doExecute in class WebworkAbstractAction
java.lang.Exception

doChangeState

public java.lang.String doChangeState()
                               throws java.lang.Exception
java.lang.Exception

doCommentVersion

public java.lang.String doCommentVersion()
                                  throws java.lang.Exception
java.lang.Exception

getSiteNodeId

public java.lang.Integer getSiteNodeId()

getIsSiteNodeTypeDefinitionAssigned

public boolean getIsSiteNodeTypeDefinitionAssigned()

setSiteNodeId

public void setSiteNodeId(java.lang.Integer siteNodeId)

getRepositoryId

public java.lang.Integer getRepositoryId()

setRepositoryId

public void setRepositoryId(java.lang.Integer repositoryId)

getUnrefreshedSiteNodeId

public java.lang.Integer getUnrefreshedSiteNodeId()

setUnrefreshedSiteNodeId

public void setUnrefreshedSiteNodeId(java.lang.Integer unrefreshedSiteNodeId)

getChangeTypeId

public java.lang.Integer getChangeTypeId()

setChangeTypeId

public void setChangeTypeId(java.lang.Integer changeTypeId)

getName

public java.lang.String getName()

getPublishDateTime

public java.lang.String getPublishDateTime()

getExpireDateTime

public java.lang.String getExpireDateTime()

getPublishDateTimeAsLong

public long getPublishDateTimeAsLong()

getExpireDateTimeAsLong

public long getExpireDateTimeAsLong()

getIsBranch

public java.lang.Boolean getIsBranch()

getContentType

public java.lang.String getContentType()

setContentType

public void setContentType(java.lang.String contentType)

getDisableEditOnSight

public java.lang.Integer getDisableEditOnSight()

setDisableEditOnSight

public void setDisableEditOnSight(java.lang.Integer disableEditOnSight)

getDisablePageCache

public java.lang.Integer getDisablePageCache()

setDisablePageCache

public void setDisablePageCache(java.lang.Integer disablePageCache)

getIsProtected

public java.lang.Integer getIsProtected()

setIsProtected

public void setIsProtected(java.lang.Integer isProtected)

setStateId

public void setStateId(java.lang.Integer stateId)

getStateId

public java.lang.Integer getStateId()

getSiteNodeVersion

public SiteNodeVersionVO getSiteNodeVersion()

getSiteNodeVersionId

public java.lang.Integer getSiteNodeVersionId()

setSiteNodeVersionId

public void setSiteNodeVersionId(java.lang.Integer siteNodeVersionId)

setVersionComment

public void setVersionComment(java.lang.String versionComment)

getVersionComment

public java.lang.String getVersionComment()

getSiteNodeTypeDefinition

public SiteNodeTypeDefinitionVO getSiteNodeTypeDefinition()

getAvailableServiceBindings

public java.util.List getAvailableServiceBindings()

getShowComponentsFirst

public java.lang.String getShowComponentsFirst()

getSortedAvailableServiceBindings

public java.util.List getSortedAvailableServiceBindings()
This method sorts a list of available service bindings on the name of the binding.


getSortedAvailableContentServiceBindings

public java.util.List getSortedAvailableContentServiceBindings()
This method sorts a list of available service bindings on the name of the binding.


getSortedAvailableStructureServiceBindings

public java.util.List getSortedAvailableStructureServiceBindings()
This method sorts a list of available service bindings on the name of the binding.


getServiceBindings

public java.util.List getServiceBindings()

getStateDescription

public java.lang.String getStateDescription(java.lang.Integer siteNodeId,
                                            java.lang.Integer languageId)

getQualifyerDescription

public java.lang.String getQualifyerDescription(java.lang.Integer serviceBindingId)
                                         throws java.lang.Exception
This method fetches a description of the qualifyer.

java.lang.Exception

getListPreparedQualifyers

public java.util.List getListPreparedQualifyers(java.lang.Integer serviceBindingId)
                                         throws java.lang.Exception
java.lang.Exception

getSiteNodeTypeDefinitions

public java.util.List getSiteNodeTypeDefinitions()
                                          throws java.lang.Exception
This method fetches the list of SiteNodeTypeDefinitions

java.lang.Exception

getSiteNodeVersionEvent

public EventVO getSiteNodeVersionEvent(java.lang.Integer siteNodeVersionId)

getSiteNodeEvent

public EventVO getSiteNodeEvent(java.lang.Integer siteNodeId)

getSiteNodeVersionVO

public SiteNodeVersionVO getSiteNodeVersionVO()

getStay

public java.lang.String getStay()

setStay

public void setStay(java.lang.String stay)

getDest

public java.lang.String getDest()

getReferenceBeanList

public java.util.List getReferenceBeanList()