|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.IssueActionSupport com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
An abstract action that should be extended by any action which wants to 'select' an issue
TODO: Test this class thoroughly - especially setKey()
Field Summary | |
protected Long |
id
|
Fields inherited from class com.atlassian.jira.web.action.IssueActionSupport |
attachmentManager |
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 | |
AbstractIssueSelectAction()
|
Method Summary | |
Long |
getDefaultSecurityLevel()
Get the default security level for issues within the current project |
Long |
getId()
Get Id of current issue. |
org.ofbiz.core.entity.GenericValue |
getIssue()
Gets the current issue's GenericValue. |
MutableIssue |
getIssueObject()
Returns the current Issue . |
Issue |
getIssueObjectNoSecurityCheck()
|
String |
getIssuePath()
Return a context-relative URL to this issue. |
protected String |
getKey()
Get key of current issue. |
org.ofbiz.core.entity.GenericValue |
getProject()
|
org.ofbiz.core.entity.GenericValue |
getSecurityLevel()
|
org.ofbiz.core.entity.GenericValue |
getSecurityLevel(Long id)
|
String |
getSecurityLevelName()
|
Map |
getSecurityLevels()
Get the different levels of security that can be set for this issue |
Map |
getSecurityLevels(org.ofbiz.core.entity.GenericValue project)
Get the different levels of security that can be set for this project |
String |
getViewIssueKey()
|
protected String |
getViewUrl()
|
boolean |
isEditable()
Determine whether the current user can edit or resolve this issue |
boolean |
isEditable(Issue issue)
Determine whether the current user can edit or resolve the passed issue. |
boolean |
isIssueExists()
|
protected boolean |
isWorkflowAllowsEdit(Issue issue)
|
protected String |
redirectToView()
|
protected void |
resetIssue()
|
void |
setId(Long id)
Set the the current issue by its id. |
void |
setIssue(org.ofbiz.core.entity.GenericValue issue)
|
void |
setKey(String key)
Set current issue by its key. |
void |
setViewIssueKey(String viewIssueKey)
|
Methods inherited from class com.atlassian.jira.web.action.IssueActionSupport |
getActionManager, getAttachmentManager, getCustomFieldManager, getDaysPerWeek, getHoursPerDay, getIssueManager, getPossibleVersions, getPossibleVersionsReleasedFirst, getPrettyDuration, getSearchRequest, getUrlEncoded, getWorkflow, getWorkflowTransitionDescription, getWorkflowTransitionDisplayName, isCustomFieldHidden, isFieldHidden, isFieldHidden, isFieldHidden, setCurrentIssue |
Methods inherited from class com.atlassian.jira.web.action.ProjectActionSupport |
getBrowseableProjects, getBrowseableProjectsInCategory, getSelectedProjectId, setSelectedProject |
Methods inherited from class com.atlassian.jira.action.JiraActionSupport |
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, execute, getActionName, getApplicationProperties, getDefaultResourceBundle, getDelegator, getJiraLocaleUtils, getLocale, getResult, getText, getText, getText, getText, getText, getUnescapedText, getUserPreferences, getWatcherManager, hasAnyErrors, isEnterprise, isIndexing, isProfessional, isStandard, removeKeyOrAddError |
Methods inherited from class webwork.action.ActionSupport |
addError, addErrorMessage, doDefault, doExecute, doValidation, 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 |
protected Long id
Constructor Detail |
public AbstractIssueSelectAction()
Method Detail |
public boolean isIssueExists()
public org.ofbiz.core.entity.GenericValue getIssue()
getIssueObject()
public void setIssue(org.ofbiz.core.entity.GenericValue issue)
protected void resetIssue()
public Long getId() throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
public void setId(Long id)
id
- Eg. from Issue.getId()
protected String getKey() throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
public void setKey(String key)
key
- Issue key.public org.ofbiz.core.entity.GenericValue getProject()
public String getSecurityLevelName() throws Exception
Exception
public org.ofbiz.core.entity.GenericValue getSecurityLevel() throws Exception
Exception
public org.ofbiz.core.entity.GenericValue getSecurityLevel(Long id) throws Exception
Exception
public Map getSecurityLevels() throws Exception
Exception
public Map getSecurityLevels(org.ofbiz.core.entity.GenericValue project) throws Exception
Exception
public Long getDefaultSecurityLevel() throws Exception
Exception
public String getViewIssueKey()
public void setViewIssueKey(String viewIssueKey)
protected String redirectToView() throws Exception
Exception
protected String getViewUrl()
public String getIssuePath()
public boolean isEditable()
public boolean isEditable(Issue issue)
protected boolean isWorkflowAllowsEdit(Issue issue)
public MutableIssue getIssueObject()
Issue
.
getIssue()
public Issue getIssueObjectNoSecurityCheck() throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |