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

java.lang.Object
  |
  +--org.infoglue.cms.applications.common.actions.WebworkAbstractAction
        |
        +--org.infoglue.cms.applications.contenttool.actions.ViewRelationEditorAction
All Implemented Interfaces:
webwork.action.Action, webwork.action.CommandDriven, java.io.Serializable, webwork.action.ServletRequestAware, webwork.action.ServletResponseAware
Direct Known Subclasses:
ViewContentRelationEditorAction, ViewStructureRelationEditorAction

public abstract class ViewRelationEditorAction
extends WebworkAbstractAction

This action is the base action for all relation editors.

See Also:
Serialized Form

Field Summary
 
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
 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.WebworkAbstractAction
doDefault, execute, getBrowserBean, getCurrentUrl, getError, getErrors, getInfoGluePrincipal, getLocalizedString, getRoot, getSession, setCommand, setServletRequest, setServletResponse
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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)

doExecute

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

Overrides:
doExecute in class WebworkAbstractAction
java.lang.Exception

doChangeRepository

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

doUpdateQualifyer

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

java.lang.Exception

doUpdateQualifyerInEntityProperties

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

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.

java.lang.Exception