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

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

public class UnpublishSiteNodeVersionAction
extends InfoGlueAbstractAction

Author:
Mattias Bogeblad Present a list of siteNodeVersion under a given siteNode, recursing down in the hierarcy
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
UnpublishSiteNodeVersionAction()
           
 
Method Summary
 java.lang.String doExecute()
          This method gets called when calling this action.
 java.lang.String doInput()
           
 java.lang.Integer getLanguageId()
           
 java.lang.Integer getRepositoryId()
           
 java.lang.Integer getSiteNodeId()
           
 java.lang.Integer getSiteNodeVersionId()
           
 java.util.List getSiteNodeVersionIdList()
           
 java.util.List getSiteNodeVersions()
           
 java.lang.Integer getStateId()
           
 java.lang.String getVersionComment()
           
 void setAttemptDirectPublishing(java.lang.String attemptDirectPublishing)
           
 void setLanguageId(java.lang.Integer languageId)
           
 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 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

UnpublishSiteNodeVersionAction

public UnpublishSiteNodeVersionAction()
Method Detail

doInput

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

doExecute

public java.lang.String doExecute()
                           throws java.lang.Exception
This method gets called when calling this action. If the stateId is 2 which equals that the user tries to prepublish the page. If so we ask the user for a comment as this is to be regarded as a new version.

Overrides:
doExecute in class WebworkAbstractAction
java.lang.Exception

getSiteNodeVersions

public java.util.List getSiteNodeVersions()

getSiteNodeId

public java.lang.Integer getSiteNodeId()

setSiteNodeId

public void setSiteNodeId(java.lang.Integer siteNodeId)

getRepositoryId

public java.lang.Integer getRepositoryId()

getLanguageId

public java.lang.Integer getLanguageId()

setLanguageId

public void setLanguageId(java.lang.Integer languageId)

setStateId

public void setStateId(java.lang.Integer stateId)

setVersionComment

public void setVersionComment(java.lang.String versionComment)

getVersionComment

public java.lang.String getVersionComment()

getStateId

public java.lang.Integer getStateId()

getSiteNodeVersionIdList

public java.util.List getSiteNodeVersionIdList()
Returns:

setAttemptDirectPublishing

public void setAttemptDirectPublishing(java.lang.String attemptDirectPublishing)

setRepositoryId

public void setRepositoryId(java.lang.Integer repositoryId)

getSiteNodeVersionId

public java.lang.Integer getSiteNodeVersionId()

setSiteNodeVersionId

public void setSiteNodeVersionId(java.lang.Integer siteNodeVersionId)