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

java.lang.Object
  extended by org.infoglue.cms.applications.common.actions.WebworkAbstractAction
      extended by org.infoglue.cms.applications.common.actions.InfoGlueAbstractAction
          extended by org.infoglue.cms.applications.contenttool.actions.UnpublishContentVersionAction
All Implemented Interfaces:
java.io.Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.ServletRequestAware, webwork.action.ServletResponseAware

public class UnpublishContentVersionAction
extends InfoGlueAbstractAction

Author:
Stefan Sik Present a list of contentVersion under a given content, recursing down in the hierarcy
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.infoglue.cms.applications.common.actions.InfoGlueAbstractAction
colorScheme
 
Fields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
UnpublishContentVersionAction()
           
 
Method Summary
 java.lang.String doExecute()
          This method gets called when calling this action.
 java.lang.String doInput()
           
 java.lang.String doInputChooseContents()
           
 java.lang.String doUnpublishAll()
          This method will try to unpublish all liver versions of this content.
 java.lang.Integer getContentId()
           
 java.util.List getContents()
           
 java.util.List getContentVersionId()
           
 java.util.List getContentVersions()
           
 java.lang.Integer getLanguageId()
           
 boolean getOverrideVersionModifyer()
           
 java.lang.Integer getRepositoryId()
           
 java.lang.Integer getStateId()
           
 java.lang.String getVersionComment()
           
 void setAttemptDirectPublishing(java.lang.String attemptDirectPublishing)
           
 void setContentId(java.lang.Integer contentId)
           
 void setLanguageId(java.lang.Integer languageId)
           
 void setOverrideVersionModifyer(boolean overrideVersionModifyer)
           
 void setRepositoryId(java.lang.Integer repositoryId)
           
 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, commitTransaction, encode, getAnonymousPrincipal, getCMSBaseUrl, getColorScheme, getComponentRendererAction, getComponentRendererUrl, getCurrentURL, getLanguageCode, getLocale, getLogger, getLogoutURL, getOriginalFullURL, getParameter, getPrincipalPropertyHashValues, getPrincipalPropertyValue, getPrincipalPropertyValue, getSessionTimeout, getSingleParameter, getThis, getToolId, getToolLocales, getURLBase, getUserName, hasAccessTo, hasAccessTo, rollbackTransaction, setColorScheme, setLanguageCode, setToolId
 
Methods inherited from class org.infoglue.cms.applications.common.actions.WebworkAbstractAction
doDefault, execute, getBrowserBean, getCurrentUrl, getError, getErrors, getHttpSession, getInfoGluePrincipal, getLocalizedString, getRequest, getResponse, getRoot, getSession, setCommand, setError, setServletRequest, setServletResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnpublishContentVersionAction

public UnpublishContentVersionAction()
Method Detail

doInput

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

doInputChooseContents

public java.lang.String doInputChooseContents()
                                       throws java.lang.Exception
Throws:
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.

Specified by:
doExecute in class WebworkAbstractAction
Throws:
java.lang.Exception

doUnpublishAll

public java.lang.String doUnpublishAll()
                                throws java.lang.Exception
This method will try to unpublish all liver versions of this content.

Throws:
java.lang.Exception

getContentVersions

public java.util.List getContentVersions()

getContents

public java.util.List getContents()

getContentId

public java.lang.Integer getContentId()

setContentId

public void setContentId(java.lang.Integer contentId)

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

getContentVersionId

public java.util.List getContentVersionId()
Returns:

setAttemptDirectPublishing

public void setAttemptDirectPublishing(java.lang.String attemptDirectPublishing)

setRepositoryId

public void setRepositoryId(java.lang.Integer repositoryId)

getOverrideVersionModifyer

public boolean getOverrideVersionModifyer()

setOverrideVersionModifyer

public void setOverrideVersionModifyer(boolean overrideVersionModifyer)


Copyright © 2005 InfoGlue.org All Rights Reserved.