org.infoglue.cms.applications.contenttool.actions
Class ChangeContentStateAction

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

public class ChangeContentStateAction
extends WebworkAbstractAction

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
ChangeContentStateAction()
           
 
Method Summary
 java.lang.String doExecute()
          This method gets called when calling this action.
 java.lang.String doStandalone()
           
 java.lang.String getAttributeName()
           
 java.lang.Integer getContentId()
           
 java.lang.Integer getContentVersionId()
           
 java.lang.Integer getLanguageId()
           
 java.lang.Integer getStateId()
           
 java.lang.String getVersionComment()
           
 void setAttributeName(java.lang.String attributeName)
           
 void setContentId(java.lang.Integer contentId)
           
 void setContentVersionId(java.lang.Integer contentVersionId)
           
 void setLanguageId(java.lang.Integer languageId)
           
 void setStateId(java.lang.Integer stateId)
           
 void setVersionComment(java.lang.String versionComment)
           
 
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

ChangeContentStateAction

public ChangeContentStateAction()
Method Detail

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

doStandalone

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

getContentVersionId

public java.lang.Integer getContentVersionId()

setContentVersionId

public void setContentVersionId(java.lang.Integer contentVersionId)

getContentId

public java.lang.Integer getContentId()

setContentId

public void setContentId(java.lang.Integer contentId)

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()

getAttributeName

public java.lang.String getAttributeName()

setAttributeName

public void setAttributeName(java.lang.String attributeName)