com.atlassian.jira.web.action.project
Class EditVersion
java.lang.Object
ActionSupport
com.atlassian.jira.action.JiraActionSupport
com.atlassian.jira.web.action.JiraWebActionSupport
com.atlassian.jira.web.action.ProjectActionSupport
com.atlassian.jira.web.action.project.AbstractProjectAction
com.atlassian.jira.web.action.project.ViewProject
com.atlassian.jira.web.action.project.EditProjectEntity
com.atlassian.jira.web.action.project.EditVersion
- public class EditVersion
- extends EditProjectEntity
This class is used to edit the name of a Project Version.
- See Also:
- Serialized Form
Method Summary |
java.lang.String |
getEditAction()
|
GenericValue |
getEditedEntity()
Returns a Version with the new Version name so that the new name can be retrieved in the case of an error or validation. |
GenericValue |
getExistingEntity()
Returns the existing Version |
java.lang.String |
getNiceName()
Return the human readable name of this component. |
protected boolean |
isDuplicateName()
Checks if a version in the current project already exists with the same name |
void |
setEditedEntity(GenericValue editedEntity)
|
Methods inherited from class com.atlassian.jira.web.action.project.ViewProject |
doDefault, getIssueSecuritySchemes, getPermissionSchemes, getPid, getProject, getProjectCategory, getSchemes, getStringSet, hasAdminPermission, hasProjectAdminPermission, setPid |
Methods inherited from class com.atlassian.jira.web.action.project.AbstractProjectAction |
getDescription, getIssueSecurityScheme, getKey, getLead, getNotificationScheme, getPermissionScheme, getUrl, setDescription, setIssueSecurityScheme, setKey, setLead, setNotificationScheme, setPermissionScheme, setUrl |
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport |
getCachedGroups, getConstantsManager, getGlobalColumns, getPropertySet, getRedirect, getRemoteUser, getUserPreferences, isHasIssuePermission, isHasPermission, isHasPermission, isHasProjectPermission |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
existingEntity
protected GenericValue existingEntity
editedEntity
protected GenericValue editedEntity
EditVersion
public EditVersion()
getEditedEntity
public GenericValue getEditedEntity()
- Returns a Version with the new Version name so that the new name can be retrieved in the case of an error or validation.
If the name hasn't been set yet then the existing version will be returned
- Specified by:
getEditedEntity
in class EditProjectEntity
- Returns:
- Version
setEditedEntity
public void setEditedEntity(GenericValue editedEntity)
getEditAction
public java.lang.String getEditAction()
- Specified by:
getEditAction
in class EditProjectEntity
- Returns:
- The class name of the Action to be called for editing the version
getNiceName
public java.lang.String getNiceName()
- Description copied from class:
EditProjectEntity
- Return the human readable name of this component.
- Specified by:
getNiceName
in class EditProjectEntity
getExistingEntity
public GenericValue getExistingEntity()
throws java.lang.Exception
- Returns the existing Version
- Specified by:
getExistingEntity
in class EditProjectEntity
- Returns:
- Version
- Throws:
java.lang.Exception
isDuplicateName
protected boolean isDuplicateName()
throws java.lang.Exception
- Checks if a version in the current project already exists with the same name
- Specified by:
isDuplicateName
in class EditProjectEntity
- Returns:
- True if a version with the same name already exists otherwise false
- Throws:
java.lang.Exception