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
           
protected  GenericValue issue
           
protected  java.lang.String key
           
 
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
 
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()
           
 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
 void setId(java.lang.Long id)
           
 void setKey(java.lang.String key)
           
 
Methods inherited from class com.atlassian.jira.web.action.IssueActionSupport
getActionManager, getAssignableUsers, getAttachmentManager, getCustomFieldManager, getDaysPerWeek, getHoursPerDay, getIssueManager, getPossibleVersions, getPrettyDuration, getSearchRequest, getSelectedProject, getUrlEncoded, getVisibleCustomFields, getVisibleFields, getWorkflow, isFieldHidden, setCurrentIssue, setSelectedProject, setSelectedProjectId
 
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, isHasIssuePermission, isHasPermission, isHasPermission, isHasProjectPermission
 
Methods inherited from class com.atlassian.jira.action.JiraActionSupport
addErrorMessages, addErrors, execute, getActionName, getApplicationProperties, getDelegator, 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

issue

protected GenericValue issue

key

protected java.lang.String key
Constructor Detail

AbstractIssueSelectAction

public AbstractIssueSelectAction()
Method Detail

getIssue

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

getId

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

setId

public void setId(java.lang.Long id)

setKey

public void setKey(java.lang.String key)

getProject

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

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