com.atlassian.jira.web.action
Class IssueActionSupport
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
- All Implemented Interfaces:
- ErrorCollection, I18nHelper, java.io.Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware
- Direct Known Subclasses:
- AbstractBrowser, AbstractBulkOperationAction, AbstractIssueSelectAction, Dashboard, DeleteComment, DeleteEmail, DeleteGroup, DeleteProject, DeleteProjectEntity, DeleteVersion, ManageFilters, RenameFilter, SaveAsFilter, SaveFilter, ShareFilter, ViewProfile, ViewUser
public class IssueActionSupport
- extends ProjectActionSupport
- See Also:
- Serialized Form
Fields inherited from class webwork.action.ActionSupport |
command, errorMap, errorMessages |
Fields inherited from interface webwork.action.Action |
ERROR, INPUT, LOGIN, NONE, SUCCESS |
Method Summary |
ActionManager |
getActionManager()
|
AttachmentManager |
getAttachmentManager()
|
CustomFieldManager |
getCustomFieldManager()
|
protected int |
getDaysPerWeek()
|
protected int |
getHoursPerDay()
|
IssueManager |
getIssueManager()
|
java.util.List |
getPossibleVersions(org.ofbiz.core.entity.GenericValue project)
Returns a list of versions applicable to this issue (unreleased first). |
java.util.List |
getPossibleVersionsReleasedFirst(org.ofbiz.core.entity.GenericValue project)
Returns a list of versions applicable to this issue (released first). |
java.lang.String |
getPrettyDuration(java.lang.Long v)
this formatting function is shared by the full view for navigator
as well as view issue. |
SearchRequest |
getSearchRequest()
This method will return the one in the current search request, or return null if one does not exist |
java.lang.String |
getUrlEncoded(java.lang.String s)
|
com.opensymphony.workflow.Workflow |
getWorkflow()
|
boolean |
isCustomFieldHidden(java.lang.Long projectId,
java.lang.Long customFieldId,
java.lang.String issueTypeId)
Deprecated. Use FieldVisibilityBean.isCustomFieldHidden(java.lang.Long, java.lang.Long, java.lang.String) instead. |
boolean |
isFieldHidden(java.lang.Long projectId,
java.lang.String id,
java.lang.Integer issueTypeId)
|
boolean |
isFieldHidden(java.lang.Long projectId,
java.lang.String id,
java.lang.String issueTypeId)
Deprecated. Use FieldVisibilityBean.isFieldHidden(java.lang.Long, java.lang.String, java.lang.String) instead. |
boolean |
isFieldHidden(java.lang.String id)
Deprecated. Use FieldVisibilityBean.isFieldHidden(com.opensymphony.user.User, java.lang.String) instead |
void |
setCurrentIssue(org.ofbiz.core.entity.GenericValue issue)
Sets the current issue. |
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 webwork.action.CommandDriven |
setCommand |
attachmentManager
protected final AttachmentManager attachmentManager
IssueActionSupport
public IssueActionSupport(IssueManager issueManager,
CustomFieldManager customFieldManager,
ActionManager actionManager,
AttachmentManager attachmentManager,
ProjectManager projectManager,
PermissionManager permissionManager,
VersionManager versionManager)
IssueActionSupport
public IssueActionSupport()
getIssueManager
public IssueManager getIssueManager()
getCustomFieldManager
public CustomFieldManager getCustomFieldManager()
getActionManager
public ActionManager getActionManager()
getAttachmentManager
public AttachmentManager getAttachmentManager()
getSearchRequest
public SearchRequest getSearchRequest()
- This method will return the one in the current search request, or return null if one does not exist
setCurrentIssue
public void setCurrentIssue(org.ofbiz.core.entity.GenericValue issue)
- Sets the current issue. This is similar to setting the current project - so that we can
make things more convenient for users.
At the moment - the only use is for the user history popup.
- Parameters:
issue
- The issue that you are currently viewing.
getPossibleVersions
public java.util.List getPossibleVersions(org.ofbiz.core.entity.GenericValue project)
throws java.lang.Exception
- Returns a list of versions applicable to this issue (unreleased first).
- Throws:
java.lang.Exception
getPossibleVersionsReleasedFirst
public java.util.List getPossibleVersionsReleasedFirst(org.ofbiz.core.entity.GenericValue project)
throws java.lang.Exception
- Returns a list of versions applicable to this issue (released first).
- Throws:
java.lang.Exception
getUrlEncoded
public java.lang.String getUrlEncoded(java.lang.String s)
getWorkflow
public com.opensymphony.workflow.Workflow getWorkflow()
getHoursPerDay
protected int getHoursPerDay()
getDaysPerWeek
protected int getDaysPerWeek()
getPrettyDuration
public java.lang.String getPrettyDuration(java.lang.Long v)
- this formatting function is shared by the full view for navigator
as well as view issue.
- Parameters:
v
- duration in seconds
- Returns:
isFieldHidden
public boolean isFieldHidden(java.lang.String id)
throws FieldLayoutStorageException
- Deprecated. Use
FieldVisibilityBean.isFieldHidden(com.opensymphony.user.User, java.lang.String)
instead
- Checks if the field is hidden or visible across all the projects
that the user can see (has the
Permissions.BROWSE
permission).
- Parameters:
id
- id of the FieldConfiguration
- Returns:
-
- Throws:
FieldLayoutStorageException
isCustomFieldHidden
public boolean isCustomFieldHidden(java.lang.Long projectId,
java.lang.Long customFieldId,
java.lang.String issueTypeId)
- Deprecated. Use
FieldVisibilityBean.isCustomFieldHidden(java.lang.Long, java.lang.Long, java.lang.String)
instead.
- Checks if the custom field is hidden in the project with id of projectId.
- Parameters:
projectId
- customFieldId
- the data store id of the custom field
- Returns:
isFieldHidden
public boolean isFieldHidden(java.lang.Long projectId,
java.lang.String id,
java.lang.String issueTypeId)
- Deprecated. Use
FieldVisibilityBean.isFieldHidden(java.lang.Long, java.lang.String, java.lang.String)
instead.
- Checks if the field is hidden in the project with id of projectId.
- Parameters:
projectId
- id
- fieldId
- Returns:
isFieldHidden
public boolean isFieldHidden(java.lang.Long projectId,
java.lang.String id,
java.lang.Integer issueTypeId)
Copyright © 2002-2006 Atlassian. All Rights Reserved.