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

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

public class ViewSiteNodePageComponentsAction
extends InfoGlueAbstractAction

See Also:
Serialized Form

Field Summary
static java.lang.String CATEGORY_TREE
           
static java.lang.String CATEGORY_TREE_MULTIPLE
           
 
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
ViewSiteNodePageComponentsAction()
           
 
Method Summary
 java.lang.String doAddComponent()
          This method adds a component to the page.
 java.lang.String doAddComponentPropertyBinding()
          This method shows the user a list of Components(HTML Templates).
 java.lang.String doAddComponentPropertyBindingWithQualifyer()
          This method shows the user a list of Components(HTML Templates).
 java.lang.String doAddPageTemplate()
          This method adds a page template to a sitenode.
 java.lang.String doDeleteComponent()
          This method shows the user a list of Components(HTML Templates).
 java.lang.String doDeleteComponentBinding()
          This method shows the user a list of Components(HTML Templates).
 java.lang.String doDeleteComponentPropertyValue()
          This method deletes a component property value.
 java.lang.String doExecute()
          This method which is the default one only serves to show a list of tasks to the user so he/she can select one to run.
 java.lang.String doListComponents()
          This method shows the user a list of Components(HTML Templates).
 java.lang.String doListComponentsForPalette()
          This method shows the user a list of Components(HTML Templates).
 java.lang.String doMoveComponent()
          This method moves the component up a step if possible within the same slot.
 java.lang.String doShowCategoryTree()
          This method shows the user a list of Categories.
 java.lang.String doShowCategoryTreeForMultipleBinding()
          This method shows the user a list of Categories to chose multiple.
 java.lang.String doShowContentTree()
          This method shows the user a list of Contents.
 java.lang.String doShowContentTreeForMultipleBinding()
          This method shows the user a interface to choose multiple contents.
 java.lang.String doShowStructureTree()
          This method shows the user a list of SiteNodes.
 java.lang.String doShowStructureTreeForMultipleBinding()
          This method shows the user a interface to choose multiple sitenodes.
 java.lang.String doUpdateComponentProperties()
          This method updates the given properties with new values.
 java.lang.String[] getAllowedComponentNames()
           
 java.lang.String getAllowedComponentNamesAsUrlEncodedString()
           
 java.lang.String[] getAllowedContentTypeIds()
           
 java.lang.String getAllowedContentTypeIdsAsUrlEncodedString()
           
 java.util.List getComponentBindings()
          This method shows the user a list of Components(HTML Templates).
 java.lang.Integer getComponentId()
           
 java.lang.String getContentAttribute(java.lang.Integer contentId, java.lang.String attributeName)
           
 java.lang.Integer getContentId()
           
 java.lang.String getCurrentAction()
           
 java.lang.String getDigitalAssetUrl(java.lang.Integer contentId, java.lang.String key)
          This method fetches an url to the asset for the component.
 java.lang.Integer getDirection()
           
 java.lang.String[] getDisallowedComponentNames()
           
 java.lang.String getDisallowedComponentNamesAsUrlEncodedString()
           
 java.lang.Integer getFilterRepositoryId()
           
 java.lang.Integer getLanguageId()
           
 LanguageVO getMasterLanguageVO()
           
 java.lang.Integer getPageTemplateContentId()
           
 java.lang.Integer getParentComponentId()
           
 java.lang.String getPath()
           
 java.lang.String getPropertyName()
           
 java.util.List getRepositories()
           
 java.lang.Integer getRepositoryId()
           
 boolean getShowSimple()
           
 java.lang.Integer getSiteNodeId()
           
 java.lang.String getSlotId()
           
 java.util.List getSortedComponents(java.lang.String sortProperty)
          This method returns the contents that are of contentTypeDefinition "HTMLTemplate" sorted on the property given.
 java.lang.String getSortProperty()
           
 java.lang.String getSpecifyBaseTemplate()
           
 java.lang.String getUrl()
           
 void setAllowedComponentNames(java.lang.String[] allowedComponentNames)
           
 void setAllowedContentTypeIds(java.lang.String[] allowedContentTypeIds)
           
 void setComponentId(java.lang.Integer componentId)
           
 void setContentId(java.lang.Integer integer)
           
 void setDirection(java.lang.Integer direction)
           
 void setDisallowedComponentNames(java.lang.String[] disallowedComponentNames)
           
 void setFilterRepositoryId(java.lang.Integer filterRepositoryId)
           
 void setLanguageId(java.lang.Integer languageId)
           
 void setPageTemplateContentId(java.lang.Integer pageTemplateContentId)
           
 void setParentComponentId(java.lang.Integer parentComponentId)
           
 void setPath(java.lang.String path)
           
 void setPropertyName(java.lang.String propertyName)
           
 void setRepositoryId(java.lang.Integer repositoryId)
           
 void setShowSimple(boolean showSimple)
           
 void setSiteNodeId(java.lang.Integer siteNodeId)
           
 void setSlotId(java.lang.String slotId)
           
 void setSortProperty(java.lang.String sortProperty)
           
 void setSpecifyBaseTemplate(java.lang.String specifyBaseTemplate)
           
 
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

CATEGORY_TREE

public static final java.lang.String CATEGORY_TREE
See Also:
Constant Field Values

CATEGORY_TREE_MULTIPLE

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

ViewSiteNodePageComponentsAction

public ViewSiteNodePageComponentsAction()
Method Detail

doExecute

public java.lang.String doExecute()
                           throws java.lang.Exception
This method which is the default one only serves to show a list of tasks to the user so he/she can select one to run.

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

doListComponents

public java.lang.String doListComponents()
                                  throws java.lang.Exception
This method shows the user a list of Components(HTML Templates).

Throws:
java.lang.Exception

doListComponentsForPalette

public java.lang.String doListComponentsForPalette()
                                            throws java.lang.Exception
This method shows the user a list of Components(HTML Templates).

Throws:
java.lang.Exception

doShowContentTree

public java.lang.String doShowContentTree()
                                   throws java.lang.Exception
This method shows the user a list of Contents.

Throws:
java.lang.Exception

doShowContentTreeForMultipleBinding

public java.lang.String doShowContentTreeForMultipleBinding()
                                                     throws java.lang.Exception
This method shows the user a interface to choose multiple contents.

Throws:
java.lang.Exception

doShowStructureTree

public java.lang.String doShowStructureTree()
                                     throws java.lang.Exception
This method shows the user a list of SiteNodes.

Throws:
java.lang.Exception

doShowStructureTreeForMultipleBinding

public java.lang.String doShowStructureTreeForMultipleBinding()
                                                       throws java.lang.Exception
This method shows the user a interface to choose multiple sitenodes.

Throws:
java.lang.Exception

doShowCategoryTree

public java.lang.String doShowCategoryTree()
                                    throws java.lang.Exception
This method shows the user a list of Categories.

Throws:
java.lang.Exception

doShowCategoryTreeForMultipleBinding

public java.lang.String doShowCategoryTreeForMultipleBinding()
                                                      throws java.lang.Exception
This method shows the user a list of Categories to chose multiple.

Throws:
java.lang.Exception

getRepositories

public java.util.List getRepositories()

getCurrentAction

public java.lang.String getCurrentAction()

getContentAttribute

public java.lang.String getContentAttribute(java.lang.Integer contentId,
                                            java.lang.String attributeName)
                                     throws java.lang.Exception
Throws:
java.lang.Exception

doAddPageTemplate

public java.lang.String doAddPageTemplate()
                                   throws java.lang.Exception
This method adds a page template to a sitenode.

Throws:
java.lang.Exception

doAddComponent

public java.lang.String doAddComponent()
                                throws java.lang.Exception
This method adds a component to the page.

Throws:
java.lang.Exception

doMoveComponent

public java.lang.String doMoveComponent()
                                 throws java.lang.Exception
This method moves the component up a step if possible within the same slot.

Throws:
java.lang.Exception

doUpdateComponentProperties

public java.lang.String doUpdateComponentProperties()
                                             throws java.lang.Exception
This method updates the given properties with new values.

Throws:
java.lang.Exception

doDeleteComponent

public java.lang.String doDeleteComponent()
                                   throws java.lang.Exception
This method shows the user a list of Components(HTML Templates).

Throws:
java.lang.Exception

doAddComponentPropertyBinding

public java.lang.String doAddComponentPropertyBinding()
                                               throws java.lang.Exception
This method shows the user a list of Components(HTML Templates).

Throws:
java.lang.Exception

doAddComponentPropertyBindingWithQualifyer

public java.lang.String doAddComponentPropertyBindingWithQualifyer()
                                                            throws java.lang.Exception
This method shows the user a list of Components(HTML Templates).

Throws:
java.lang.Exception

doDeleteComponentBinding

public java.lang.String doDeleteComponentBinding()
                                          throws java.lang.Exception
This method shows the user a list of Components(HTML Templates).

Throws:
java.lang.Exception

getComponentBindings

public java.util.List getComponentBindings()
                                    throws java.lang.Exception
This method shows the user a list of Components(HTML Templates).

Throws:
java.lang.Exception

doDeleteComponentPropertyValue

public java.lang.String doDeleteComponentPropertyValue()
                                                throws java.lang.Exception
This method deletes a component property value. This is to enable users to quickly remove a property value no matter what type.

Throws:
java.lang.Exception

getSortedComponents

public java.util.List getSortedComponents(java.lang.String sortProperty)
                                   throws java.lang.Exception
This method returns the contents that are of contentTypeDefinition "HTMLTemplate" sorted on the property given.

Throws:
java.lang.Exception

getDigitalAssetUrl

public java.lang.String getDigitalAssetUrl(java.lang.Integer contentId,
                                           java.lang.String key)
                                    throws java.lang.Exception
This method fetches an url to the asset for the component.

Throws:
java.lang.Exception

getContentId

public java.lang.Integer getContentId()

setContentId

public void setContentId(java.lang.Integer integer)

getComponentId

public java.lang.Integer getComponentId()

setComponentId

public void setComponentId(java.lang.Integer componentId)

getParentComponentId

public java.lang.Integer getParentComponentId()

setParentComponentId

public void setParentComponentId(java.lang.Integer parentComponentId)

getLanguageId

public java.lang.Integer getLanguageId()

getSiteNodeId

public java.lang.Integer getSiteNodeId()

setLanguageId

public void setLanguageId(java.lang.Integer languageId)

setSiteNodeId

public void setSiteNodeId(java.lang.Integer siteNodeId)

getSlotId

public java.lang.String getSlotId()

setSlotId

public void setSlotId(java.lang.String slotId)

getRepositoryId

public java.lang.Integer getRepositoryId()

setRepositoryId

public void setRepositoryId(java.lang.Integer repositoryId)

getFilterRepositoryId

public java.lang.Integer getFilterRepositoryId()

setFilterRepositoryId

public void setFilterRepositoryId(java.lang.Integer filterRepositoryId)

getSpecifyBaseTemplate

public java.lang.String getSpecifyBaseTemplate()

setSpecifyBaseTemplate

public void setSpecifyBaseTemplate(java.lang.String specifyBaseTemplate)

getPropertyName

public java.lang.String getPropertyName()

setPropertyName

public void setPropertyName(java.lang.String propertyName)

getPath

public java.lang.String getPath()

setPath

public void setPath(java.lang.String path)

getMasterLanguageVO

public LanguageVO getMasterLanguageVO()

getUrl

public java.lang.String getUrl()

getSortProperty

public java.lang.String getSortProperty()

setSortProperty

public void setSortProperty(java.lang.String sortProperty)

getDirection

public java.lang.Integer getDirection()

setDirection

public void setDirection(java.lang.Integer direction)

getAllowedContentTypeIds

public java.lang.String[] getAllowedContentTypeIds()

setAllowedContentTypeIds

public void setAllowedContentTypeIds(java.lang.String[] allowedContentTypeIds)

getAllowedContentTypeIdsAsUrlEncodedString

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

getShowSimple

public boolean getShowSimple()

setShowSimple

public void setShowSimple(boolean showSimple)

getPageTemplateContentId

public java.lang.Integer getPageTemplateContentId()

setPageTemplateContentId

public void setPageTemplateContentId(java.lang.Integer pageTemplateContentId)

getAllowedComponentNames

public java.lang.String[] getAllowedComponentNames()

setAllowedComponentNames

public void setAllowedComponentNames(java.lang.String[] allowedComponentNames)

getDisallowedComponentNames

public java.lang.String[] getDisallowedComponentNames()

setDisallowedComponentNames

public void setDisallowedComponentNames(java.lang.String[] disallowedComponentNames)

getAllowedComponentNamesAsUrlEncodedString

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

getDisallowedComponentNamesAsUrlEncodedString

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


Copyright © 2005 InfoGlue.org All Rights Reserved.