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

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.issue.AbstractIssueSelectAction
All Implemented Interfaces:
webwork.action.Action, webwork.action.CommandDriven, ErrorCollection, I18nHelper, webwork.action.IllegalArgumentAware, java.io.Serializable
Direct Known Subclasses:
AbstractViewIssue, CreateIssue, ManageWatchers, SimpleWorkflowAction, ViewVoters

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.IssueActionSupport
attachmentManager
 
Fields inherited from class com.atlassian.jira.web.action.ProjectActionSupport
projectManager, savedFilters
 
Fields inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
ISSUE_NOT_FOUND_RESULT, PERMISSION_VIOLATION_RESULT, request
 
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
AbstractIssueSelectAction()
           
 
Method Summary
 java.lang.Long getDefaultSecurityLevel()
          Get the default security level for issues within the current project
 java.lang.Long getId()
           
 org.ofbiz.core.entity.GenericValue getIssue()
           
 java.lang.String getIssuePath()
          Return a context-relative URL to this issue.
protected  java.lang.String getKey()
           
 org.ofbiz.core.entity.GenericValue getProject()
           
 org.ofbiz.core.entity.GenericValue getSecurityLevel()
           
 org.ofbiz.core.entity.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(org.ofbiz.core.entity.GenericValue project)
          Get the different levels of security that can be set for this project
 java.lang.String getViewIssueKey()
           
protected  java.lang.String getViewUrl()
           
 boolean isEditable()
          Determine whether the current user can edit or resolve this issue
 boolean isEditable(org.ofbiz.core.entity.GenericValue issue)
          Determine whether the current user can edit or resolve the passed issue.
 boolean isIssueExists()
           
protected  java.lang.String redirectToView()
           
protected  void resetIssue()
           
 void setId(java.lang.Long id)
           
 void setIssue(org.ofbiz.core.entity.GenericValue issue)
           
 void setKey(java.lang.String key)
           
 void setViewIssueKey(java.lang.String viewIssueKey)
           
 
Methods inherited from class com.atlassian.jira.web.action.IssueActionSupport
getActionManager, getAttachmentManager, getCustomFieldManager, getDaysPerWeek, getHoursPerDay, getIssueManager, getPossibleVersions, getPossibleVersionsReleasedFirst, getPrettyDuration, getSearchRequest, getUrlEncoded, getWorkflow, isCustomFieldHidden, isFieldHidden, isFieldHidden, isFieldHidden, setCurrentIssue
 
Methods inherited from class com.atlassian.jira.web.action.ProjectActionSupport
getBrowseableProjects, getBrowseableProjectsInCategory, getSavedFilters, getSelectedProject, isEnterprise, setSelectedProject, setSelectedProjectId
 
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
addErrorCollection, getAssignableUsers, getAssignableUsers, getCachedGroups, getColumnViewHtml, getComponentManager, getConstantsManager, getCustomFieldHtml, getCustomFieldXML, getDefaultAssignee, getDefaultResourceBundle, getField, getLocale, getOutlookDate, getPermissionManager, getProjectManager, getPropertySet, getRedirect, getRemoteUser, getReturnUrl, getText, getText, getText, getText, getText, getUserFullName, getUserPreferences, getVersionManager, isDefaultAssignee, isDefaultAssignee, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isHasProjectPermission, processDefaultAssignee, processDefaultAssignee, processDefaultAssignee, setReturnUrl
 
Methods inherited from class com.atlassian.jira.action.JiraActionSupport
addErrorMessages, addErrorMessages, addErrors, execute, getActionName, getApplicationProperties, getDelegator, getLocaleUtils, getResult, getUnescapedText, getWatcherManager, hasAnyErrors, isIndexing
 
Methods inherited from class webwork.action.ActionSupport
addError, addErrorMessage, addIllegalArgumentException, doDefault, doExecute, doValidation, getErrorMessages, getErrors, getHasErrorMessages, getHasErrors, getPropertyEditorMessage, getTexts, getTexts, 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
 
Methods inherited from interface webwork.action.CommandDriven
setCommand
 

Field Detail

id

protected java.lang.Long id
Constructor Detail

AbstractIssueSelectAction

public AbstractIssueSelectAction()
Method Detail

isIssueExists

public boolean isIssueExists()

getIssue

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

setIssue

public void setIssue(org.ofbiz.core.entity.GenericValue issue)

resetIssue

protected void resetIssue()

getId

public java.lang.Long getId()
                     throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

setId

public void setId(java.lang.Long id)

getKey

protected java.lang.String getKey()
                           throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

setKey

public void setKey(java.lang.String key)

getProject

public org.ofbiz.core.entity.GenericValue getProject()
                                              throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

getSecurityLevelName

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

getSecurityLevel

public org.ofbiz.core.entity.GenericValue getSecurityLevel()
                                                    throws java.lang.Exception
Throws:
java.lang.Exception

getSecurityLevel

public org.ofbiz.core.entity.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(org.ofbiz.core.entity.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

getViewIssueKey

public java.lang.String getViewIssueKey()

setViewIssueKey

public void setViewIssueKey(java.lang.String viewIssueKey)

redirectToView

protected java.lang.String redirectToView()
                                   throws java.lang.Exception
Throws:
java.lang.Exception

getViewUrl

protected java.lang.String getViewUrl()

getIssuePath

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


isEditable

public boolean isEditable()
Determine whether the current user can edit or resolve this issue


isEditable

public boolean isEditable(org.ofbiz.core.entity.GenericValue issue)
Determine whether the current user can edit or resolve the passed issue.



Copyright © 2002-2005 Atlassian. All Rights Reserved.