org.infoglue.cms.applications.managementtool.actions
Class ViewContentTypeDefinitionAction

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.managementtool.actions.ViewContentTypeDefinitionAction
All Implemented Interfaces:
java.io.Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.ServletRequestAware, webwork.action.ServletResponseAware
Direct Known Subclasses:
UpdateContentTypeDefinitionAction

public class ViewContentTypeDefinitionAction
extends InfoGlueAbstractAction

This class implements the action class for viewContentTypeDefinition. The use-case lets the user see all information about a specific site/contentTypeDefinition.

Author:
Mattias Bogeblad
See Also:
Serialized Form

Field Summary
static java.lang.String USE_EDITOR
           
 
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
ViewContentTypeDefinitionAction()
           
ViewContentTypeDefinitionAction(ContentTypeDefinitionVO contentTypeDefinitionVO)
           
 
Method Summary
 java.lang.String doDeleteAssetKey()
           
 java.lang.String doDeleteAttribute()
           
 java.lang.String doDeleteAttributeParameterValue()
           
 java.lang.String doDeleteAttributeValidator()
           
 java.lang.String doDeleteCategoryKey()
           
 java.lang.String doExecute()
          The main method that fetches the Value-object for this use-case
 java.lang.String doInsertAssetKey()
           
 java.lang.String doInsertAttribute()
           
 java.lang.String doInsertAttributeParameterValue()
           
 java.lang.String doInsertAttributeValidator()
           
 java.lang.String doInsertCategoryKey()
           
 java.lang.String doMoveAssetKeyDown()
          This method moves an content type asset key down one step.
 java.lang.String doMoveAssetKeyUp()
          This method moves an content type assetKey up one step.
 java.lang.String doMoveAttributeDown()
          This method moves an content type attribute down one step.
 java.lang.String doMoveAttributeUp()
          This method moves an content type attribute up one step.
 java.lang.String doUpdateAssetKey()
           
 java.lang.String doUpdateAttribute()
          We validate that ' ', '
 java.lang.String doUpdateAttributeParameterValue()
           
 java.lang.String doUpdateAttributeValidatorArguments()
           
 java.lang.String doUpdateCategoryKey()
           
 java.lang.String doUseEditor()
          The method that initializes all for the editor mode
 java.lang.String doUseSimple()
          The method that initializes all for the simple mode
 java.util.List getActivatedName()
           
 java.util.List getAllCategories()
          Gets the list of all system categories.
 java.lang.String getAllowedContentTypes()
           
 java.lang.String getAssetKey()
           
 java.lang.String getAttributeName()
           
 java.lang.String getAttributeParameterId()
           
 java.lang.String getAttributeParameterValueId()
           
 java.lang.String getAttributeParameterValueLabel()
           
 java.lang.String getAttributeParameterValueLocale()
           
 java.lang.String getAttributeToExpand()
           
 java.util.List getAvailableLanguages()
           
 CategoryController getCategoryController()
          Returns the CategoryController, used by the ContentTypeDefinitionEditor
 java.lang.String getCategoryKey()
           
 java.lang.String getCategoryName(java.lang.Integer id)
          Return the Category name, if we cannot find the category name (id not an int, bad id, etc) then do not barf, but return a user friendly name.
 java.util.List getContentTypeAttributes()
          This method returns the attributes in the content type definition for generation.
 java.lang.Integer getContentTypeDefinitionId()
           
 java.lang.String getCurrentContentTypeEditorViewLanguageCode()
           
 java.util.List getDefinedAssetKeys()
          Gets the list of defined assetKeys.
 java.util.List getDefinedCategoryKeys()
          Gets the list of defined categoryKeys, also populate the category name for the UI.
 java.lang.String getErrorKey()
           
 java.lang.String getImageHeight()
           
 java.lang.String getImageWidth()
           
 java.lang.String getInputTypeId()
           
 java.lang.Boolean getIsMandatory()
           
 java.lang.Integer getMaximumSize()
           
 java.lang.String getName()
           
 java.lang.String getNewAssetKey()
           
 java.lang.String getNewAttributeParameterValueId()
           
 java.lang.String getNewCategoryKey()
           
 java.lang.String getReturnAddress()
           
 java.lang.String getSchemaValue()
           
 java.lang.String getTitle()
           
 java.lang.Integer getType()
           
protected  void initialize(java.lang.Integer contentTypeDefinitionId)
           
 void setAllowedContentTypes(java.lang.String assetContentType)
           
 void setAssetKey(java.lang.String s)
           
 void setAttributeName(java.lang.String attributeName)
           
 void setAttributeParameterId(java.lang.String string)
           
 void setAttributeParameterValueId(java.lang.String string)
           
 void setAttributeParameterValueLabel(java.lang.String string)
           
 void setAttributeParameterValueLocale(java.lang.String string)
           
 void setAttributeToExpand(java.lang.String string)
           
 void setCategoryKey(java.lang.String s)
           
 void setContentTypeDefinitionId(java.lang.Integer contentTypeDefinitionId)
           
 void setCurrentContentTypeEditorViewLanguageCode(java.lang.String string)
           
 void setDescription(java.lang.String description)
           
 void setImageHeight(java.lang.String imageHeight)
           
 void setImageWidth(java.lang.String imageWidth)
           
 void setInputTypeId(java.lang.String string)
           
 void setIsMandatory(java.lang.Boolean isMandatory)
           
 void setMaximumSize(java.lang.Integer maximumSize)
           
 void setNewAssetKey(java.lang.String s)
           
 void setNewAttributeName(java.lang.String newAttributeName)
           
 void setNewAttributeParameterValueId(java.lang.String string)
           
 void setNewCategoryKey(java.lang.String s)
           
 void setTitle(java.lang.String title)
           
 
Methods inherited from class org.infoglue.cms.applications.common.actions.InfoGlueAbstractAction
beginTransaction, closeDatabase, closeTransaction, commitTransaction, encode, getAllowPublicationEventFilter, getAnonymousPrincipal, getCMSBaseUrl, getColorScheme, getComponentRendererAction, getComponentRendererUrl, getCurrentURL, getDisableCustomIcons, getDisableImageEditor, getEnableDateTimeDirectEditing, 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

USE_EDITOR

public static final java.lang.String USE_EDITOR
See Also:
Constant Field Values
Constructor Detail

ViewContentTypeDefinitionAction

public ViewContentTypeDefinitionAction()

ViewContentTypeDefinitionAction

public ViewContentTypeDefinitionAction(ContentTypeDefinitionVO contentTypeDefinitionVO)
Method Detail

initialize

protected void initialize(java.lang.Integer contentTypeDefinitionId)
                   throws java.lang.Exception
Throws:
java.lang.Exception

doExecute

public java.lang.String doExecute()
                           throws java.lang.Exception
The main method that fetches the Value-object for this use-case

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

doUseEditor

public java.lang.String doUseEditor()
                             throws java.lang.Exception
The method that initializes all for the editor mode

Throws:
java.lang.Exception

doUseSimple

public java.lang.String doUseSimple()
                             throws java.lang.Exception
The method that initializes all for the simple mode

Throws:
java.lang.Exception

doInsertAttribute

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

doDeleteAttribute

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

doMoveAttributeUp

public java.lang.String doMoveAttributeUp()
                                   throws java.lang.Exception
This method moves an content type attribute up one step.

Throws:
java.lang.Exception

doMoveAttributeDown

public java.lang.String doMoveAttributeDown()
                                     throws java.lang.Exception
This method moves an content type attribute down one step.

Throws:
java.lang.Exception

doMoveAssetKeyUp

public java.lang.String doMoveAssetKeyUp()
                                  throws java.lang.Exception
This method moves an content type assetKey up one step.

Throws:
java.lang.Exception

doMoveAssetKeyDown

public java.lang.String doMoveAssetKeyDown()
                                    throws java.lang.Exception
This method moves an content type asset key down one step.

Throws:
java.lang.Exception

doDeleteAttributeParameterValue

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

doInsertAttributeParameterValue

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

doUpdateAttribute

public java.lang.String doUpdateAttribute()
                                   throws java.lang.Exception
We validate that ' ', '.', ''', '"' is not used in the attribute name as that will break the javascripts later.

Throws:
java.lang.Exception

doUpdateAttributeParameterValue

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

doInsertAttributeValidator

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

doUpdateAttributeValidatorArguments

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

doDeleteAttributeValidator

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

getDefinedAssetKeys

public java.util.List getDefinedAssetKeys()
Gets the list of defined assetKeys.


getDefinedCategoryKeys

public java.util.List getDefinedCategoryKeys()
                                      throws java.lang.Exception
Gets the list of defined categoryKeys, also populate the category name for the UI.

Throws:
java.lang.Exception

getCategoryName

public java.lang.String getCategoryName(java.lang.Integer id)
Return the Category name, if we cannot find the category name (id not an int, bad id, etc) then do not barf, but return a user friendly name. This can happen if someone removes a category that is references by a content type definition.


doInsertAssetKey

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

doInsertCategoryKey

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

doUpdateAssetKey

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

doUpdateCategoryKey

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

doDeleteAssetKey

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

doDeleteCategoryKey

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

getCategoryController

public CategoryController getCategoryController()
Returns the CategoryController, used by the ContentTypeDefinitionEditor


getAllCategories

public java.util.List getAllCategories()
                                throws SystemException
Gets the list of all system categories.

Throws:
SystemException

getContentTypeDefinitionId

public java.lang.Integer getContentTypeDefinitionId()

setContentTypeDefinitionId

public void setContentTypeDefinitionId(java.lang.Integer contentTypeDefinitionId)
                                throws java.lang.Exception
Throws:
java.lang.Exception

getTitle

public java.lang.String getTitle()

setTitle

public void setTitle(java.lang.String title)

getName

public java.lang.String getName()

getSchemaValue

public java.lang.String getSchemaValue()

getType

public java.lang.Integer getType()

getContentTypeAttributes

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


getInputTypeId

public java.lang.String getInputTypeId()

setInputTypeId

public void setInputTypeId(java.lang.String string)

getAttributeName

public java.lang.String getAttributeName()

setAttributeName

public void setAttributeName(java.lang.String attributeName)

setNewAttributeName

public void setNewAttributeName(java.lang.String newAttributeName)

getAttributeParameterValueId

public java.lang.String getAttributeParameterValueId()

setAttributeParameterValueId

public void setAttributeParameterValueId(java.lang.String string)

getAttributeParameterId

public java.lang.String getAttributeParameterId()

setAttributeParameterId

public void setAttributeParameterId(java.lang.String string)

getAttributeParameterValueLabel

public java.lang.String getAttributeParameterValueLabel()

getNewAttributeParameterValueId

public java.lang.String getNewAttributeParameterValueId()

setAttributeParameterValueLabel

public void setAttributeParameterValueLabel(java.lang.String string)

setNewAttributeParameterValueId

public void setNewAttributeParameterValueId(java.lang.String string)

getAttributeParameterValueLocale

public java.lang.String getAttributeParameterValueLocale()

setAttributeParameterValueLocale

public void setAttributeParameterValueLocale(java.lang.String string)

getAttributeToExpand

public java.lang.String getAttributeToExpand()

setAttributeToExpand

public void setAttributeToExpand(java.lang.String string)

getCurrentContentTypeEditorViewLanguageCode

public java.lang.String getCurrentContentTypeEditorViewLanguageCode()

setCurrentContentTypeEditorViewLanguageCode

public void setCurrentContentTypeEditorViewLanguageCode(java.lang.String string)

getAvailableLanguages

public java.util.List getAvailableLanguages()

getAssetKey

public java.lang.String getAssetKey()

setAssetKey

public void setAssetKey(java.lang.String s)

getNewAssetKey

public java.lang.String getNewAssetKey()

setNewAssetKey

public void setNewAssetKey(java.lang.String s)

getCategoryKey

public java.lang.String getCategoryKey()

setCategoryKey

public void setCategoryKey(java.lang.String s)

getNewCategoryKey

public java.lang.String getNewCategoryKey()

setNewCategoryKey

public void setNewCategoryKey(java.lang.String s)

getErrorKey

public java.lang.String getErrorKey()

getReturnAddress

public java.lang.String getReturnAddress()

getAllowedContentTypes

public java.lang.String getAllowedContentTypes()

setAllowedContentTypes

public void setAllowedContentTypes(java.lang.String assetContentType)

getImageHeight

public java.lang.String getImageHeight()

setImageHeight

public void setImageHeight(java.lang.String imageHeight)

getImageWidth

public java.lang.String getImageWidth()

setImageWidth

public void setImageWidth(java.lang.String imageWidth)

getMaximumSize

public java.lang.Integer getMaximumSize()

setMaximumSize

public void setMaximumSize(java.lang.Integer maximumSize)

setDescription

public void setDescription(java.lang.String description)

getActivatedName

public java.util.List getActivatedName()

getIsMandatory

public java.lang.Boolean getIsMandatory()

setIsMandatory

public void setIsMandatory(java.lang.Boolean isMandatory)


Copyright © 2005 InfoGlue.org All Rights Reserved.