org.infoglue.cms.applications.contenttool.wizards.actions
Class CreateContentWizardAction

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.wizards.actions.CreateContentWizardAction
All Implemented Interfaces:
java.io.Serializable, ViewContentTreeActionInterface, webwork.action.Action, webwork.action.CommandDriven, webwork.action.ServletRequestAware, webwork.action.ServletResponseAware

public class CreateContentWizardAction
extends InfoGlueAbstractAction
implements ViewContentTreeActionInterface

This action represents the CreateContent with help of a wizard. It guides the user through creating a new content and allows a developer to control it's flow and basic parameters a bit so it steers the user to make correct descisions.

See Also:
Serialized Form

Field Summary
 java.util.List attributes
           
 java.util.List availableLanguages
           
 ContentTypeDefinitionVO contentTypeDefinitionVO
           
 
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
CreateContentWizardAction()
           
CreateContentWizardAction(ContentVO contentVO)
           
 
Method Summary
 java.lang.String doCreateContent()
           
 java.lang.String doExecute()
          Subclasses implement this
 java.lang.String doInput()
          This method presents the user with the initial input screen for creating a content.
 java.lang.String[] getAllowedContentTypeDefinitionId()
           
 java.util.List getAttributes()
           
 java.util.List getAvailableLanguages()
           
 java.lang.Integer getContentId()
           
 java.util.List getContentTypeAttributes()
          This method returns the attributes in the content type definition for generation.
 java.lang.Integer getContentTypeDefinitionId()
           
 java.util.List getContentTypeDefinitions()
           
 ContentTypeDefinitionVO getContentTypeDefinitionVO()
           
 java.lang.Integer getContentVersionId()
           
 ContentVersionVO getContentVersionVO()
           
 ContentVO getContentVO()
           
 java.lang.Integer getCurrentEditorId()
           
 java.lang.String getExpireDateTime()
           
 long getExpireDateTimeAsLong()
           
 java.lang.String getHideLeafs()
           
 java.lang.Boolean getIsBranch()
           
 java.lang.Integer getLanguageId()
           
 java.lang.String getName()
           
 java.lang.Integer getNewContentId()
           
 ContentVO getNewContentVO()
           
 java.lang.Integer getParentContentId()
           
 java.lang.String getPublishDateTime()
           
 long getPublishDateTimeAsLong()
           
 java.lang.Integer getRepositoryId()
          Returns the repositoryId either sent in or last used by the user or lastly the top one.
 java.lang.String getTextAreaId()
           
 java.lang.Integer getTopRepositoryId()
           
 java.lang.String getTree()
           
protected  void initialize(java.lang.Integer contentVersionId, java.lang.Integer contentId, java.lang.Integer languageId)
           
 void setAllowedContentTypeDefinitionId(java.lang.String[] strings)
           
 void setAttributes(java.util.List list)
           
 void setAvailableLanguages(java.util.List list)
           
 void setContentId(java.lang.Integer contentId)
           
 void setContentTypeDefinitionId(java.lang.Integer contentTypeDefinitionId)
           
 void setContentTypeDefinitionVO(ContentTypeDefinitionVO definitionVO)
           
 void setContentVersionId(java.lang.Integer contentVersionId)
           
 void setContentVersionVO(ContentVersionVO versionVO)
           
 void setContentVO(ContentVO contentVO)
           
 void setCurrentEditorId(java.lang.Integer integer)
           
 void setExpireDateTime(java.lang.String expireDateTime)
           
 void setHideLeafs(java.lang.String hideLeafs)
           
 void setIsBranch(java.lang.Boolean isBranch)
           
 void setLanguageId(java.lang.Integer integer)
           
 void setName(java.lang.String name)
           
 void setNewContentVO(ContentVO contentVO)
           
 void setParentContentId(java.lang.Integer parentContentId)
           
 void setPublishDateTime(java.lang.String publishDateTime)
           
 void setRepositoryId(java.lang.Integer repositoryId)
           
 void setTextAreaId(java.lang.String string)
           
 void setTree(java.lang.String tree)
           
 
Methods inherited from class org.infoglue.cms.applications.common.actions.InfoGlueAbstractAction
beginTransaction, closeDatabase, closeTransaction, commitTransaction, encode, getAllowPublicationEventFilter, getAnonymousPrincipal, getCMSBaseUrl, getColorScheme, getComponentRendererAction, getComponentRendererUrl, getCurrentURL, getDisableImageEditor, getInfoGluePrincipal, getLanguageCode, getLocale, 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
 

Field Detail

contentTypeDefinitionVO

public ContentTypeDefinitionVO contentTypeDefinitionVO

availableLanguages

public java.util.List availableLanguages

attributes

public java.util.List attributes
Constructor Detail

CreateContentWizardAction

public CreateContentWizardAction()

CreateContentWizardAction

public CreateContentWizardAction(ContentVO contentVO)
Method Detail

initialize

protected void initialize(java.lang.Integer contentVersionId,
                          java.lang.Integer contentId,
                          java.lang.Integer languageId)
                   throws java.lang.Exception
Throws:
java.lang.Exception

doInput

public java.lang.String doInput()
                         throws java.lang.Exception
This method presents the user with the initial input screen for creating a content.

Returns:
Throws:
java.lang.Exception

doCreateContent

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

doExecute

public java.lang.String doExecute()
                           throws java.lang.Exception
Description copied from class: WebworkAbstractAction
Subclasses implement this

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

getTopRepositoryId

public java.lang.Integer getTopRepositoryId()
                                     throws ConstraintException,
                                            SystemException,
                                            Bug
Throws:
ConstraintException
SystemException
Bug

setContentId

public void setContentId(java.lang.Integer contentId)
Specified by:
setContentId in interface ViewContentTreeActionInterface

getContentId

public java.lang.Integer getContentId()
Specified by:
getContentId in interface ViewContentTreeActionInterface

setHideLeafs

public void setHideLeafs(java.lang.String hideLeafs)
Specified by:
setHideLeafs in interface ViewContentTreeActionInterface

getHideLeafs

public java.lang.String getHideLeafs()
Specified by:
getHideLeafs in interface ViewContentTreeActionInterface

getTree

public java.lang.String getTree()
Specified by:
getTree in interface ViewContentTreeActionInterface

setTree

public void setTree(java.lang.String tree)
Specified by:
setTree in interface ViewContentTreeActionInterface

setParentContentId

public void setParentContentId(java.lang.Integer parentContentId)

getParentContentId

public java.lang.Integer getParentContentId()

setRepositoryId

public void setRepositoryId(java.lang.Integer repositoryId)
Specified by:
setRepositoryId in interface ViewContentTreeActionInterface

getRepositoryId

public java.lang.Integer getRepositoryId()
Returns the repositoryId either sent in or last used by the user or lastly the top one.

Specified by:
getRepositoryId in interface ViewContentTreeActionInterface

setContentTypeDefinitionId

public void setContentTypeDefinitionId(java.lang.Integer contentTypeDefinitionId)

getContentTypeDefinitionId

public java.lang.Integer getContentTypeDefinitionId()

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

setName

public void setName(java.lang.String name)

setPublishDateTime

public void setPublishDateTime(java.lang.String publishDateTime)

setExpireDateTime

public void setExpireDateTime(java.lang.String expireDateTime)

setIsBranch

public void setIsBranch(java.lang.Boolean isBranch)

getNewContentId

public java.lang.Integer getNewContentId()

getContentTypeDefinitions

public java.util.List getContentTypeDefinitions()
                                         throws java.lang.Exception
Throws:
java.lang.Exception

getAllowedContentTypeDefinitionId

public java.lang.String[] getAllowedContentTypeDefinitionId()

setAllowedContentTypeDefinitionId

public void setAllowedContentTypeDefinitionId(java.lang.String[] strings)

getContentVersionId

public java.lang.Integer getContentVersionId()

setContentVersionId

public void setContentVersionId(java.lang.Integer contentVersionId)

getAttributes

public java.util.List getAttributes()

getAvailableLanguages

public java.util.List getAvailableLanguages()

getContentTypeDefinitionVO

public ContentTypeDefinitionVO getContentTypeDefinitionVO()

getContentVersionVO

public ContentVersionVO getContentVersionVO()

getContentVO

public ContentVO getContentVO()

getCurrentEditorId

public java.lang.Integer getCurrentEditorId()

getLanguageId

public java.lang.Integer getLanguageId()

getNewContentVO

public ContentVO getNewContentVO()

getTextAreaId

public java.lang.String getTextAreaId()

setAttributes

public void setAttributes(java.util.List list)

getContentTypeAttributes

public java.util.List getContentTypeAttributes()
This method returns the attributes in the content type definition for generation.


setAvailableLanguages

public void setAvailableLanguages(java.util.List list)

setContentTypeDefinitionVO

public void setContentTypeDefinitionVO(ContentTypeDefinitionVO definitionVO)

setContentVersionVO

public void setContentVersionVO(ContentVersionVO versionVO)

setContentVO

public void setContentVO(ContentVO contentVO)

setCurrentEditorId

public void setCurrentEditorId(java.lang.Integer integer)

setLanguageId

public void setLanguageId(java.lang.Integer integer)

setNewContentVO

public void setNewContentVO(ContentVO contentVO)

setTextAreaId

public void setTextAreaId(java.lang.String string)


Copyright © 2005 InfoGlue.org All Rights Reserved.