com.atlassian.jira.action.project
Class AbstractProjectEntityEdit

java.lang.Object
  extended byActionSupport
      extended bycom.atlassian.jira.action.JiraActionSupport
          extended bycom.atlassian.jira.action.JiraNonWebActionSupport
              extended bycom.atlassian.jira.action.project.AbstractProjectEntityEdit
Direct Known Subclasses:
ComponentEdit, VersionEdit

public class AbstractProjectEntityEdit
extends JiraNonWebActionSupport

This class is a common class for the editing of project entities. The classes used to edit individual entities (components, versions etc) should extend this class

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.atlassian.jira.action.JiraActionSupport
log
 
Constructor Summary
AbstractProjectEntityEdit()
           
 
Method Summary
protected  java.lang.String doExecute()
          Sets the name of the entity to the new name
protected  void doValidation()
          Carries out validation that the name must exist and a project be selected.
protected  void flushAffectedIssues(java.lang.String relation, GenericValue entity)
          Flush all issues from the cache that are affected by the change to this entity as they need to be refreshed
 GenericValue getEntity()
           
 java.lang.String getName()
           
 GenericValue getProject()
           
 void setEntity(GenericValue entity)
           
 void setName(java.lang.String name)
           
 void setProject(GenericValue project)
           
 
Methods inherited from class com.atlassian.jira.action.JiraNonWebActionSupport
doDefault, execute, getRemoteUser, isDispatchEvent, setDispatchEvent, setRemoteUser
 
Methods inherited from class com.atlassian.jira.action.JiraActionSupport
addErrorMessages, addErrors, getActionName, getApplicationProperties, getDelegator, getLocaleUtils, getResult, getText, isIndexing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractProjectEntityEdit

public AbstractProjectEntityEdit()
Method Detail

doValidation

protected void doValidation()
Carries out validation that the name must exist and a project be selected. if not then an ErrorMessage will be added to the webwork action


doExecute

protected java.lang.String doExecute()
                              throws java.lang.Exception
Sets the name of the entity to the new name

Returns:
String to indicate success of action
Throws:
java.lang.Exception

flushAffectedIssues

protected void flushAffectedIssues(java.lang.String relation,
                                   GenericValue entity)
                            throws GenericEntityException
Flush all issues from the cache that are affected by the change to this entity as they need to be refreshed

Parameters:
relation - relation to the project
entity - This is the project entity (version , component etc)
Throws:
GenericEntityException

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getProject

public GenericValue getProject()

setProject

public void setProject(GenericValue project)

getEntity

public GenericValue getEntity()

setEntity

public void setEntity(GenericValue entity)