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

java.lang.Object
  extended bywebwork.action.ActionSupport
      extended bycom.atlassian.jira.action.JiraActionSupport
          extended bycom.atlassian.jira.web.action.JiraWebActionSupport
              extended bycom.atlassian.jira.web.action.ProjectActionSupport
                  extended bycom.atlassian.jira.web.action.IssueActionSupport
                      extended bycom.atlassian.jira.web.action.project.DeleteVersion
All Implemented Interfaces:
webwork.action.Action, webwork.action.CommandDriven, ErrorCollection, I18nHelper, webwork.action.IllegalArgumentAware, Serializable

public class DeleteVersion
extends IssueActionSupport

See Also:
Serialized Form

Field Summary
(package private)  String affectsAction
          Decide whether to move all these issues to a new affects version, or whether to just remove this affects version from them.
(package private)  Collection affectsIssues
           
(package private)  Long affectsSwapVersionId
          The version to swap the affects version to (if action = swap)
(package private)  String fixAction
          Action for fix versions - as above for affects versions.
(package private)  Collection fixForIssues
           
(package private)  Long fixSwapVersionId
          The version to swap the fix version to (if action = swap)
(package private)  Long versionId
           
 
Fields inherited from class com.atlassian.jira.web.action.IssueActionSupport
attachmentManager
 
Fields inherited from class com.atlassian.jira.web.action.ProjectActionSupport
projectManager
 
Fields inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
ISSUE_NOT_FOUND_RESULT, PERMISSION_VIOLATION_RESULT, request, savedFilters, selectedProject
 
Fields inherited from class com.atlassian.jira.action.JiraActionSupport
log
 
Fields inherited from class webwork.action.ActionSupport
command, errorMap, errorMessages
 
Fields inherited from interface com.atlassian.jira.util.I18nHelper
DEFAULT_RESOURCE_BUNDLE
 
Fields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
DeleteVersion(VersionManager versionManager, PermissionManager permissionManager)
           
 
Method Summary
 String doDefault()
           
protected  String doExecute()
           
protected  void doValidation()
           
 String getAffectsAction()
           
 Collection getAffectsIssues()
           
 Long getAffectsSwapVersionId()
           
 String getFixAction()
           
 Collection getFixIssues()
           
 Long getFixSwapVersionId()
           
 Collection getOtherUnarchivedVersions()
          Return all other versions in the project except this one
 org.ofbiz.core.entity.GenericValue getProject()
           
 Version getVersion()
           
 Long getVersionId()
           
protected  boolean hasPermission()
           
 void setAffectsAction(String affectsAction)
           
 void setAffectsSwapVersionId(Long affectsSwapVersionId)
           
 void setFixAction(String fixAction)
           
 void setFixSwapVersionId(Long fixSwapVersionId)
           
 void setVersionId(Long versionId)
           
 
Methods inherited from class com.atlassian.jira.web.action.IssueActionSupport
getAttachmentManager, getCustomFieldManager, getDaysPerWeek, getHoursPerDay, getIssueManager, getPossibleVersions, getPossibleVersionsReleasedFirst, getPrettyDuration, getSearchRequest, getUrlEncoded, getWorkflow, getWorkflowTransitionDescription, getWorkflowTransitionDisplayName, isCustomFieldHidden, isFieldHidden, isFieldHidden, isFieldHidden, setCurrentIssue
 
Methods inherited from class com.atlassian.jira.web.action.ProjectActionSupport
getBrowseableProjects, getBrowseableProjectsInCategory, getSelectedProjectId, setSelectedProject
 
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
addErrorCollection, forceRedirect, getAssignableUsers, getAssignableUsers, getCachedGroups, getCalendarTranslationFilenameForLanguage, getComponentManager, getConstantsManager, getDateFormat, getDateTimeFormat, getDescTranslation, getExternalLinkUtils, getField, getFlushedErrorMessages, getLanguage, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getPropertySet, getRedirect, getRemoteUser, getReturnUrl, getSavedFilters, getSelectedProject, getServerId, getText, getTimeFormat, getUserFullName, getVersionManager, getWebworkStack, getWebworkStack, isHasCalendarTranslationForLanguage, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isHasProjectPermission, setReturnUrl, setSelectedProjectId
 
Methods inherited from class com.atlassian.jira.action.JiraActionSupport
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, execute, getActionName, getApplicationProperties, getDefaultResourceBundle, getDelegator, getJiraLocaleUtils, getLocale, getResult, getText, getText, getText, getText, getText, getUnescapedText, getUserPreferences, getWatcherManager, hasAnyErrors, isEnterprise, isIndexing, isProfessional, isProfessionalOrEnterprise, isStandard, removeKeyOrAddError
 
Methods inherited from class webwork.action.ActionSupport
addError, addErrorMessage, getErrorMessages, getErrors, getHasErrorMessages, getHasErrors, getPropertyEditorMessage, getTexts, getTexts, getTimezone, 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 com.atlassian.jira.util.ErrorCollection
addError, addErrorMessage, addErrorMessages, addErrors, getErrorMessages, getErrors, hasAnyErrors, setErrorMessages
 
Methods inherited from interface webwork.action.CommandDriven
setCommand
 

Field Detail

versionId

Long versionId

fixForIssues

Collection fixForIssues

affectsIssues

Collection affectsIssues

affectsAction

String affectsAction
Decide whether to move all these issues to a new affects version, or whether to just remove this affects version from them.

Possible values are "remove" and "swap"

"swap" requires another version to swap these issues to


fixAction

String fixAction
Action for fix versions - as above for affects versions.


affectsSwapVersionId

Long affectsSwapVersionId
The version to swap the affects version to (if action = swap)


fixSwapVersionId

Long fixSwapVersionId
The version to swap the fix version to (if action = swap)

Constructor Detail

DeleteVersion

public DeleteVersion(VersionManager versionManager,
                     PermissionManager permissionManager)
Method Detail

hasPermission

protected boolean hasPermission()
                         throws Exception
Throws:
Exception

doExecute

protected String doExecute()
                    throws Exception
Throws:
Exception

doValidation

protected void doValidation()

doDefault

public String doDefault()
                 throws Exception
Throws:
Exception

getAffectsIssues

public Collection getAffectsIssues()
                            throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

getFixIssues

public Collection getFixIssues()
                        throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

getOtherUnarchivedVersions

public Collection getOtherUnarchivedVersions()
                                      throws org.ofbiz.core.entity.GenericEntityException
Return all other versions in the project except this one

Throws:
org.ofbiz.core.entity.GenericEntityException

getProject

public org.ofbiz.core.entity.GenericValue getProject()

getVersion

public Version getVersion()

getVersionId

public Long getVersionId()

setVersionId

public void setVersionId(Long versionId)

getAffectsAction

public String getAffectsAction()

setAffectsAction

public void setAffectsAction(String affectsAction)

getAffectsSwapVersionId

public Long getAffectsSwapVersionId()

setAffectsSwapVersionId

public void setAffectsSwapVersionId(Long affectsSwapVersionId)

getFixAction

public String getFixAction()

setFixAction

public void setFixAction(String fixAction)

getFixSwapVersionId

public Long getFixSwapVersionId()

setFixSwapVersionId

public void setFixSwapVersionId(Long fixSwapVersionId)


Copyright © 2002-2007 Atlassian. All Rights Reserved.