com.atlassian.jira.web.action.issue
Class AbstractIssueSelectAction

java.lang.Object
  extended byActionSupport
      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.issue.AbstractIssueSelectAction
Direct Known Subclasses:
AbstractViewIssue, CreateIssue, SimpleWorkflowAction

public abstract class AbstractIssueSelectAction
extends IssueActionSupport

An abstract action that should be extended by any action which wants to 'select' an issue

TODO: Test this class thoroughly - especially setKey()

See Also:
Serialized Form

Field Summary
protected  java.lang.Long id
           
 
Fields inherited from class com.atlassian.jira.web.action.ProjectActionSupport
savedFilters
 
Fields inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
ISSUE_NOT_FOUND_RESULT, PERMISSION_VIOLATION_RESULT, permissionManager, request
 
Fields inherited from class com.atlassian.jira.action.JiraActionSupport
log
 
Constructor Summary
AbstractIssueSelectAction()
           
 
Method Summary
 java.lang.Long getDefaultSecurityLevel()
          Get the default security level for issues within the current project
 java.lang.Long getId()
           
 GenericValue getIssue()
           
 java.lang.String getIssuePath()
          Return a context-relative URL to this issue.
protected  java.lang.String getKey()
           
 GenericValue getProject()
           
 GenericValue getSecurityLevel()
           
 GenericValue getSecurityLevel(java.lang.Long id)
           
 java.lang.String getSecurityLevelName()
           
 java.util.Map getSecurityLevels()
          Get the different levels of security that can be set for this issue
 java.util.Map getSecurityLevels(GenericValue project)
          Get the different levels of security that can be set for this project
 boolean isIssueExists()
           
protected  void resetIssue()
           
 void setId(java.lang.Long id)
           
protected  void setIssue(GenericValue issue)
           
 void setKey(java.lang.String key)
           
 
Methods inherited from class com.atlassian.jira.web.action.IssueActionSupport
getActionManager, getAttachmentManager, getCustomFieldManager, getDaysPerWeek, getHoursPerDay, getIssueManager, getPossibleVersions, getPossibleVersionsReleasedFirst, getPrettyDuration, getSearchRequest, getSelectedProject, getUrlEncoded, getWorkflow, isCustomFieldHidden, isFieldHidden, isFieldHidden, setCurrentIssue, setSelectedProject, setSelectedProjectId
 
Methods inherited from class com.atlassian.jira.web.action.ProjectActionSupport
getBrowseableProjects, getBrowseableProjectsInCategory, getSavedFilters
 
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
getAssignableUsers, getAssignableUsers, getCachedGroups, getComponentManager, getConstantsManager, getDefaultAssignee, getField, getLocale, getOutlookDate, getProjectManager, getPropertySet, getRedirect, getRemoteUser, getText, getText, getText, getText, getUserFullName, getUserPreferences, isDefaultAssignee, isDefaultAssignee, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isHasProjectPermission, processDefaultAssignee, processDefaultAssignee
 
Methods inherited from class com.atlassian.jira.action.JiraActionSupport
addErrorMessages, addErrors, execute, getActionName, getApplicationProperties, getDelegator, getLocaleUtils, getResult, isIndexing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected java.lang.Long id
Constructor Detail

AbstractIssueSelectAction

public AbstractIssueSelectAction()
Method Detail

isIssueExists

public boolean isIssueExists()

getIssue

public GenericValue getIssue()

setIssue

protected void setIssue(GenericValue issue)

resetIssue

protected void resetIssue()

getId

public java.lang.Long getId()
                     throws GenericEntityException
Throws:
GenericEntityException

setId

public void setId(java.lang.Long id)

getKey

protected java.lang.String getKey()
                           throws GenericEntityException
Throws:
GenericEntityException

setKey

public void setKey(java.lang.String key)

getProject

public GenericValue getProject()
                        throws GenericEntityException
Throws:
GenericEntityException

getSecurityLevelName

public java.lang.String getSecurityLevelName()
                                      throws java.lang.Exception
Throws:
java.lang.Exception

getSecurityLevel

public GenericValue getSecurityLevel()
                              throws java.lang.Exception
Throws:
java.lang.Exception

getSecurityLevel

public GenericValue getSecurityLevel(java.lang.Long id)
                              throws java.lang.Exception
Throws:
java.lang.Exception

getSecurityLevels

public java.util.Map getSecurityLevels()
                                throws java.lang.Exception
Get the different levels of security that can be set for this issue

Returns:
Map containing the security levels
Throws:
java.lang.Exception

getSecurityLevels

public java.util.Map getSecurityLevels(GenericValue project)
                                throws java.lang.Exception
Get the different levels of security that can be set for this project

Returns:
Map containing the security levels
Throws:
java.lang.Exception

getDefaultSecurityLevel

public java.lang.Long getDefaultSecurityLevel()
                                       throws java.lang.Exception
Get the default security level for issues within the current project

Returns:
The id of the security level
Throws:
java.lang.Exception

getIssuePath

public java.lang.String getIssuePath()
Return a context-relative URL to this issue.