com.atlassian.jira.web.action.project
Class EditVersionReleases
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.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
Fields inherited from class webwork.action.ActionSupport |
command, errorMap, errorMessages |
Fields inherited from interface webwork.action.Action |
ERROR, INPUT, LOGIN, NONE, SUCCESS |
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.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 webwork.action.CommandDriven |
setCommand |
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
EditVersionReleases
public EditVersionReleases(VersionManager versionManager,
IssueManager issueManager,
IssueFactory issueFactory)
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.