com.atlassian.jira.action.project
Class AbstractProjectEntityEdit
java.lang.Object
|
+--webwork.action.ActionSupport
|
+--com.atlassian.jira.action.JiraActionSupport
|
+--com.atlassian.jira.action.JiraNonWebActionSupport
|
+--com.atlassian.jira.action.project.AbstractProjectEntityEdit
- All Implemented Interfaces:
- webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware, java.io.Serializable
- 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
Fields inherited from class webwork.action.ActionSupport |
command, errorMap, errorMessages |
Fields inherited from interface webwork.action.Action |
ERROR, INPUT, LOGIN, NONE, SUCCESS |
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,
org.ofbiz.core.entity.GenericValue entity)
Flush all issues from the cache that are affected by the change to this entity as they need to be refreshed |
org.ofbiz.core.entity.GenericValue |
getEntity()
|
java.lang.String |
getName()
|
org.ofbiz.core.entity.GenericValue |
getProject()
|
void |
setEntity(org.ofbiz.core.entity.GenericValue entity)
|
void |
setName(java.lang.String name)
|
void |
setProject(org.ofbiz.core.entity.GenericValue project)
|
Methods inherited from class webwork.action.ActionSupport |
addError, addErrorMessage, addIllegalArgumentException, getErrorMessages, getErrors, getHasErrorMessages, getHasErrors, getLocale, getText, getTexts, getTexts, invalidInput, invokeCommand, isCommand, setCommand, setErrorMessages, setErrors, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface webwork.action.CommandDriven |
setCommand |
AbstractProjectEntityEdit
public AbstractProjectEntityEdit()
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
- Overrides:
doValidation
in class webwork.action.ActionSupport
doExecute
protected java.lang.String doExecute()
throws java.lang.Exception
- Sets the name of the entity to the new name
- Overrides:
doExecute
in class webwork.action.ActionSupport
- Returns:
- String to indicate success of action
- Throws:
java.lang.Exception
flushAffectedIssues
protected void flushAffectedIssues(java.lang.String relation,
org.ofbiz.core.entity.GenericValue entity)
throws org.ofbiz.core.entity.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 projectentity
- This is the project entity (version , component etc)
- Throws:
org.ofbiz.core.entity.GenericEntityException
getName
public java.lang.String getName()
setName
public void setName(java.lang.String name)
getProject
public org.ofbiz.core.entity.GenericValue getProject()
setProject
public void setProject(org.ofbiz.core.entity.GenericValue project)
getEntity
public org.ofbiz.core.entity.GenericValue getEntity()
setEntity
public void setEntity(org.ofbiz.core.entity.GenericValue entity)
Copyright © 2002-2003 Atlassian. All Rights Reserved.