com.atlassian.jira.web.action.project
Class EditVersion

java.lang.Object
  |
  +--webwork.action.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
All Implemented Interfaces:
webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware, java.io.Serializable

public class EditVersion
extends EditProjectEntity

This class is used to edit the name of a Project Version.

See Also:
Serialized Form

Field Summary
protected  org.ofbiz.core.entity.GenericValue editedEntity
           
protected  org.ofbiz.core.entity.GenericValue existingEntity
           
 
Fields inherited from class com.atlassian.jira.web.action.ProjectActionSupport
savedFilters
 
Fields inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
PERMISSION_VIOLATION_RESULT, request
 
Fields inherited from class com.atlassian.jira.action.JiraActionSupport
log
 
Fields inherited from class webwork.action.ActionSupport
command, errorMap, errorMessages
 
Fields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
EditVersion()
           
 
Method Summary
 java.lang.String getEditAction()
           
 org.ofbiz.core.entity.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.
 org.ofbiz.core.entity.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(org.ofbiz.core.entity.GenericValue editedEntity)
           
 
Methods inherited from class com.atlassian.jira.web.action.project.EditProjectEntity
doExecute, doValidation, getId, getName, setId, setName
 
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.ProjectActionSupport
getBrowseableProjects, getProjectManager, getSavedFilters
 
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
getCachedGroups, getConstantsManager, getGlobalColumns, getPropertySet, getRedirect, getRemoteUser, getUserPreferences, isHasPermission, isHasPermission
 
Methods inherited from class com.atlassian.jira.action.JiraActionSupport
addErrorMessages, addErrorMessages, addErrors, execute, getActionName, getApplicationProperties, getDelegator, getResult, isIndexing
 
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
 

Field Detail

existingEntity

protected org.ofbiz.core.entity.GenericValue existingEntity

editedEntity

protected org.ofbiz.core.entity.GenericValue editedEntity
Constructor Detail

EditVersion

public EditVersion()
Method Detail

getEditedEntity

public org.ofbiz.core.entity.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(org.ofbiz.core.entity.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 org.ofbiz.core.entity.GenericValue getExistingEntity()
                                                     throws java.lang.Exception
Returns the existing Version

Specified by:
getExistingEntity in class EditProjectEntity
Returns:
Version
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


Copyright © 2002-2003 Atlassian. All Rights Reserved.