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

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.ViewRelationEditorAction
All Implemented Interfaces:
java.io.Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.ServletRequestAware, webwork.action.ServletResponseAware
Direct Known Subclasses:
ViewContentRelationEditorAction, ViewStructureRelationEditorAction

public abstract class ViewRelationEditorAction
extends InfoGlueAbstractAction

This action is the base action for all relation editors.

See Also:
Serialized Form

Field Summary
protected  java.lang.String attributeName
           
protected  ConstraintExceptionBuffer ceb
           
protected  java.lang.String changeRepositoryAction
           
protected  java.lang.String currentAction
           
protected  java.lang.String currentEntity
           
protected  java.lang.String currentEntityIdentifyer
           
protected  java.lang.Integer entityId
           
protected  java.lang.String entityName
           
protected  java.lang.String path
           
protected  java.util.List qualifyers
           
protected  java.lang.String qualifyerXML
           
protected  java.lang.String relationXML
           
protected  java.util.List repositories
           
protected  java.lang.Integer repositoryId
           
protected  java.lang.String tree
           
protected  java.lang.String updateAction
           
 
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
ViewRelationEditorAction()
           
 
Method Summary
 java.lang.String doChangeRepository()
           
 java.lang.String doExecute()
          This is the default method which just initializes the view.
 java.lang.String doUpdateQualifyer()
          Updates the qualifyer in the normal content version stucture.
 java.lang.String doUpdateQualifyerInEntityProperties()
          Updates the qualifyer in the EntityProperties stucture.
 java.lang.String getAttributeName()
           
 java.lang.String getChangeRepositoryAction()
           
 java.lang.String getCurrentAction()
           
 java.lang.String getCurrentEntity()
           
 java.lang.String getCurrentEntityIdentifyer()
           
 java.lang.Integer getEntityId()
           
 java.lang.String getEntityName()
           
abstract  java.lang.String getQualifyerPath(java.lang.String entityId)
           
 java.util.List getQualifyers()
           
 java.lang.String getQualifyerXML()
           
 java.util.List getRepositories()
           
 java.lang.Integer getRepositoryId()
           
 java.lang.String getTree()
           
 java.lang.String getUpdateAction()
           
 java.lang.String getXML()
          A method that gets the XML that is the relations
protected  void initialize()
          This method initializes the repositories-list and selects the first one if no other is selected.
 void setAttributeName(java.lang.String attributeName)
           
 void setCurrentEntity(java.lang.String currentEntity)
           
 void setCurrentEntityIdentifyer(java.lang.String currentEntityIdentifyer)
           
 void setEntityId(java.lang.Integer entityId)
           
 void setEntityName(java.lang.String entityName)
           
 void setPath(java.lang.String path)
           
 void setQualifyerXML(java.lang.String qualifyerXML)
           
 void setRepositoryId(java.lang.Integer repositoryId)
           
 void setTree(java.lang.String tree)
           
 void setUpdateAction(java.lang.String updateAction)
           
 void updateAttributeValue()
          This method is the common update method which assumes that the update is in a contentVersion.
 
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

entityId

protected java.lang.Integer entityId

entityName

protected java.lang.String entityName

attributeName

protected java.lang.String attributeName

updateAction

protected java.lang.String updateAction

repositoryId

protected java.lang.Integer repositoryId

ceb

protected ConstraintExceptionBuffer ceb

qualifyerXML

protected java.lang.String qualifyerXML

relationXML

protected java.lang.String relationXML

tree

protected java.lang.String tree

repositories

protected java.util.List repositories

path

protected java.lang.String path

qualifyers

protected java.util.List qualifyers

currentAction

protected java.lang.String currentAction

changeRepositoryAction

protected java.lang.String changeRepositoryAction

currentEntity

protected java.lang.String currentEntity

currentEntityIdentifyer

protected java.lang.String currentEntityIdentifyer
Constructor Detail

ViewRelationEditorAction

public ViewRelationEditorAction()
Method Detail

setEntityId

public void setEntityId(java.lang.Integer entityId)

getEntityId

public java.lang.Integer getEntityId()

getAttributeName

public java.lang.String getAttributeName()

setAttributeName

public void setAttributeName(java.lang.String attributeName)

setRepositoryId

public void setRepositoryId(java.lang.Integer repositoryId)

setPath

public void setPath(java.lang.String path)

getRepositoryId

public java.lang.Integer getRepositoryId()

setQualifyerXML

public void setQualifyerXML(java.lang.String qualifyerXML)

getQualifyerXML

public java.lang.String getQualifyerXML()

getTree

public java.lang.String getTree()

setTree

public void setTree(java.lang.String tree)

getQualifyers

public java.util.List getQualifyers()

getCurrentEntity

public java.lang.String getCurrentEntity()

setCurrentEntity

public void setCurrentEntity(java.lang.String currentEntity)

getCurrentEntityIdentifyer

public java.lang.String getCurrentEntityIdentifyer()

setCurrentEntityIdentifyer

public void setCurrentEntityIdentifyer(java.lang.String currentEntityIdentifyer)

getCurrentAction

public java.lang.String getCurrentAction()

getChangeRepositoryAction

public java.lang.String getChangeRepositoryAction()

getRepositories

public java.util.List getRepositories()

getUpdateAction

public java.lang.String getUpdateAction()

setUpdateAction

public void setUpdateAction(java.lang.String updateAction)

getEntityName

public java.lang.String getEntityName()

setEntityName

public void setEntityName(java.lang.String entityName)

getQualifyerPath

public abstract java.lang.String getQualifyerPath(java.lang.String entityId)

initialize

protected void initialize()
                   throws java.lang.Exception
This method initializes the repositories-list and selects the first one if no other is selected. It also reads the relationXML from the content-version.

Throws:
java.lang.Exception

doExecute

public java.lang.String doExecute()
                           throws java.lang.Exception
This is the default method which just initializes the view.

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

doChangeRepository

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

doUpdateQualifyer

public java.lang.String doUpdateQualifyer()
                                   throws java.lang.Exception
Updates the qualifyer in the normal content version stucture.

Throws:
java.lang.Exception

doUpdateQualifyerInEntityProperties

public java.lang.String doUpdateQualifyerInEntityProperties()
                                                     throws java.lang.Exception
Updates the qualifyer in the EntityProperties stucture.

Throws:
java.lang.Exception

getXML

public java.lang.String getXML()
A method that gets the XML that is the relations


updateAttributeValue

public void updateAttributeValue()
                          throws java.lang.Exception
This method is the common update method which assumes that the update is in a contentVersion.

Throws:
java.lang.Exception


Copyright © 2005 InfoGlue.org All Rights Reserved.