|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectwebwork.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
public abstract class AbstractIssueSelectAction
An abstract action that should be extended by any action which wants to 'select' an issue
TODO: Test this class thoroughly - especially setKey()
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.atlassian.jira.util.I18nHelper |
|---|
I18nHelper.BeanFactory |
| 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, RETURN_URL_PARAMETER, savedFilters |
| Fields inherited from class com.atlassian.jira.action.JiraActionSupport |
|---|
log |
| Fields inherited from class webwork.action.ActionSupport |
|---|
command, errorMap, errorMessages |
| Fields inherited from interface webwork.action.Action |
|---|
ERROR, INPUT, LOGIN, NONE, SUCCESS |
| Constructor Summary | |
|---|---|
AbstractIssueSelectAction()
|
|
| Method Summary | |
|---|---|
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. |
IssueSummaryLayoutBean |
getLayoutBean()
Get the default layout bean for most actions. |
org.ofbiz.core.entity.GenericValue |
getProject()
|
org.ofbiz.core.entity.GenericValue |
getSecurityLevel()
|
org.ofbiz.core.entity.GenericValue |
getSecurityLevel(Long id)
|
String |
getSecurityLevelName()
|
Issue |
getSummaryIssue()
This is used by the issue summary decorator to add the left-hand side decoration. |
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 |
isHasEditIssuePermission(Issue issue)
|
boolean |
isIssueExists()
|
boolean |
isIssueValid()
In comparison to isIssueExists() this method performs a permission check and returns true if the issue exists and the user has sufficient permissions. |
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.ProjectActionSupport |
|---|
getBrowseableProjects, getBrowseableProjectsInCategory, getSelectedProjectId, setSelectedProject, 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, getText, getText, getText0, getUnescapedText, getUserPreferences, getWatcherManager, hasAnyErrors, isEnterprise, isIndexing, isProfessional, isProfessionalOrEnterprise, 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.web.action.issue.IssueSummaryAware |
|---|
getRemoteUser |
| 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 boolean isIssueValid()
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.GenericEntityExceptionpublic void setId(Long id)
id - Eg. from Issue.getId()
protected String getKey()
throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityExceptionpublic 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
Exceptionpublic String getViewIssueKey()
public void setViewIssueKey(String viewIssueKey)
protected String redirectToView()
throws Exception
Exceptionprotected String getViewUrl()
public String getIssuePath()
public boolean isEditable()
public boolean isEditable(Issue issue)
public boolean isHasEditIssuePermission(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.GenericEntityExceptionpublic Issue getSummaryIssue()
getSummaryIssue in interface IssueSummaryAwarepublic IssueSummaryLayoutBean getLayoutBean()
getLayoutBean in interface IssueSummaryAware
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||