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

java.lang.Object
  extended by webwork.action.ActionSupport
      extended by com.atlassian.jira.action.JiraActionSupport
          extended by com.atlassian.jira.web.action.JiraWebActionSupport
              extended by com.atlassian.jira.web.action.ProjectActionSupport
                  extended by com.atlassian.jira.web.action.project.AbstractProjectAction
                      extended by com.atlassian.jira.web.action.project.ViewProject
                          extended by com.atlassian.jira.web.action.project.EditVersionReleases
All Implemented Interfaces:
ErrorCollection, I18nHelper, Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware

public class EditVersionReleases
extends ViewProject

See Also:
Serialized Form

Field Summary
(package private)  String affectsAction
           
(package private)  Long affectsSwapVersionId
           
(package private)  boolean commit
          if there are unresolved issues: switched to true when user selects ignore or versions have been swapped if all issues have already been resolved: switched to true
(package private)  Collection released
           
(package private)  Collection unreleased
           
 
Fields inherited from class com.atlassian.jira.web.action.project.ViewProject
pid, project
 
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
EditVersionReleases(VersionManager versionManager, IssueManager issueManager, IssueFactory issueFactory)
           
 
Method Summary
 String doCheckUnrelease()
           
protected  String doExecute()
           
 String doRelease()
           
 String doUnrelease()
           
protected  void doValidation()
           
 String getAffectsAction()
           
 Long getAffectsSwapVersionId()
           
 String getEditedReleaseDate()
           
 Date getExistingReleaseDate()
          Returns the existing due date
 String getExistingReleaseDateFormatted()
           
 Collection getOtherUnreleasedVersions()
          Return all unreleased versions except the one being released
 String getResult()
          Get a definitive result.
 List getUnresolvedIssues()
          Return a list of issues that have not been resolved for the current fix for version selected for release
 Long getVersionId()
           
 Version getVersionToRelease()
           
 Version getVersionToUnrelease()
           
 void setAffectsAction(String affectsAction)
           
 void setAffectsSwapVersionId(Long affectsSwapVersionId)
           
 void setReleaseDate(String releaseDate)
           
 void setVersionId(Long versionId)
           
 
Methods inherited from class com.atlassian.jira.web.action.project.ViewProject
doDefault, getFieldLayoutScheme, getFieldLayoutScheme, getFieldLayoutSchemes, getFieldScreenScheme, getIssueSecuritySchemes, getIssueTypeScheme, getIssueTypeScreenScheme, getPermissionSchemes, getPid, getProject, getProjectCategory, getProjectEmail, getRepositories, getSchemes, getStandardIssueTypes, getStringSet, getSubTaskIssueTypes, getVersionsReversed, getWorkflowScheme, hasAdminPermission, hasAssociateRolesPermission, hasProjectAdminPermission, isDefaultAssigneeAssignable, isHasDefaultSMTPMailServer, isSubTaskEnabled, isVersionArchived, isVersionReleased, setPid
 
Methods inherited from class com.atlassian.jira.web.action.project.AbstractProjectAction
getAssigneeType, getAssigneeTypes, getDescription, getIssueSecurityScheme, getKey, getLead, getName, getNotificationScheme, getPermissionScheme, getPrettyAssigneeType, getUrl, setAssigneeType, setDescription, setIssueSecurityScheme, setKey, setLead, setName, setNotificationScheme, setPermissionScheme, setUrl
 
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, getJiraServiceContext, 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, isUserExists, setReturnUrl, setSelectedProjectId
 
Methods inherited from class com.atlassian.jira.action.JiraActionSupport
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, execute, getActionName, getApplicationProperties, getDefaultResourceBundle, getDelegator, getJiraLocaleUtils, getLocale, 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

commit

boolean commit
if there are unresolved issues: switched to true when user selects ignore or versions have been swapped if all issues have already been resolved: switched to true


affectsAction

String affectsAction

affectsSwapVersionId

Long affectsSwapVersionId

unreleased

Collection unreleased

released

Collection released
Constructor Detail

EditVersionReleases

public EditVersionReleases(VersionManager versionManager,
                           IssueManager issueManager,
                           IssueFactory issueFactory)
Method Detail

doValidation

protected void doValidation()
Overrides:
doValidation in class ViewProject

doExecute

protected String doExecute()
                    throws Exception
Overrides:
doExecute in class ViewProject
Throws:
Exception

doRelease

public String doRelease()
                 throws Exception
Throws:
Exception

doCheckUnrelease

public String doCheckUnrelease()
                        throws Exception
Throws:
Exception

doUnrelease

public String doUnrelease()
                   throws Exception
Throws:
Exception

getResult

public String getResult()
Description copied from class: JiraActionSupport
Get a definitive result. Returns Action.ERROR if there are error messages, otherwise success.

Overrides:
getResult in class JiraActionSupport

getVersionToUnrelease

public Version getVersionToUnrelease()
                              throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

getVersionToRelease

public Version getVersionToRelease()
                            throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

getUnresolvedIssues

public List getUnresolvedIssues()
Return a list of issues that have not been resolved for the current fix for version selected for release


getOtherUnreleasedVersions

public Collection getOtherUnreleasedVersions()
                                      throws Exception
Return all unreleased versions except the one being released

Throws:
Exception

getAffectsAction

public String getAffectsAction()

setAffectsAction

public void setAffectsAction(String affectsAction)

getAffectsSwapVersionId

public Long getAffectsSwapVersionId()

setAffectsSwapVersionId

public void setAffectsSwapVersionId(Long affectsSwapVersionId)

getVersionId

public Long getVersionId()

setVersionId

public void setVersionId(Long versionId)

setReleaseDate

public void setReleaseDate(String releaseDate)

getEditedReleaseDate

public String getEditedReleaseDate()
                            throws org.ofbiz.core.entity.GenericEntityException,
                                   ParseException
Throws:
org.ofbiz.core.entity.GenericEntityException
ParseException

getExistingReleaseDate

public Date getExistingReleaseDate()
                            throws org.ofbiz.core.entity.GenericEntityException
Returns the existing due date

Throws:
org.ofbiz.core.entity.GenericEntityException

getExistingReleaseDateFormatted

public String getExistingReleaseDateFormatted()
                                       throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException


Copyright © 2002-2007 Atlassian. All Rights Reserved.