|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
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
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.atlassian.jira.util.I18nHelper |
---|
I18nHelper.BeanFactory |
Field Summary | |
---|---|
protected Long |
id
|
protected MutableIssue |
issueObject
|
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 | |
---|---|
protected |
AbstractIssueSelectAction()
Our terrible action hierarchy makes this call necessary |
protected |
AbstractIssueSelectAction(SubTaskManager subTaskManager)
|
Method Summary | |
---|---|
boolean |
cameFromIssue()
|
boolean |
cameFromParent()
|
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()
Gets the relative path to the current issue. |
protected String |
getKey()
Get key of current issue. |
IssueSummaryLayoutBean |
getLayoutBean()
Get the default layout bean for most actions. |
Issue |
getParentIssueObject()
Returns the parent of the current Issue |
org.ofbiz.core.entity.GenericValue |
getProject()
|
org.ofbiz.core.entity.GenericValue |
getSecurityLevel()
|
org.ofbiz.core.entity.GenericValue |
getSecurityLevel(Long id)
|
String |
getSecurityLevelName()
|
protected SubTaskManager |
getSubTaskManager()
|
Issue |
getSummaryIssue()
This is used by the issue summary decorator to add the left-hand side decoration. |
String |
getViewIssueKey()
|
String |
getViewUrl()
Gets the relative path to the current issue. |
boolean |
isEditable()
Determines whether the current user can edit or resolve this issue. |
boolean |
isEditable(Issue issue)
Determines whether the current user can edit or resolve an specified 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. |
boolean |
isSubTask()
Determines whether the issue is a sub task - i.e. |
boolean |
isSubTaskCreatable()
Tests whether the sub-tasks are turned on and whether the the current issue is a 'parent' issue, i.e. |
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, getComponentInstanceOfType, getDefaultResourceBundle, getDelegator, getI18nHelper, getKeysForPrefix, getLocale, getResult, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getUnescapedText, getUserPreferences, getWatcherManager, hasAnyErrors, isEnterprise, isIndexing, isProfessional, isProfessionalOrEnterprise, isStandard, removeKeyOrAddError |
Methods inherited from class webwork.action.ActionSupport |
---|
addError, addErrorMessage, doDefault, doExecute, doValidation, getCommandName, 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 |
---|
getCommandName, setCommand |
Field Detail |
---|
protected Long id
protected MutableIssue issueObject
Constructor Detail |
---|
protected AbstractIssueSelectAction()
protected AbstractIssueSelectAction(SubTaskManager subTaskManager)
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.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 String getViewIssueKey()
public void setViewIssueKey(String viewIssueKey)
protected String redirectToView() throws Exception
Exception
public String getViewUrl()
context path
.
public String getIssuePath()
context path
.
public boolean isEditable()
public boolean isEditable(Issue issue)
issue
- The issue in play.
public boolean isHasEditIssuePermission(Issue issue)
public boolean isWorkflowAllowsEdit(Issue issue)
public MutableIssue getIssueObject()
Issue
.
getIssue()
public Issue getIssueObjectNoSecurityCheck() throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
public boolean cameFromIssue()
public boolean cameFromParent()
public Issue getSummaryIssue()
getSummaryIssue
in interface IssueSummaryAware
public IssueSummaryLayoutBean getLayoutBean()
getLayoutBean
in interface IssueSummaryAware
protected SubTaskManager getSubTaskManager()
public boolean isSubTask()
public boolean isSubTaskCreatable()
Since 3.4, we also need to check whether the project has any sub-task issue types
public Issue getParentIssueObject()
Issue
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |