com.atlassian.jira.web.action
Class IssueActionSupport

java.lang.Object
  extended byActionSupport
      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
Direct Known Subclasses:
AbstractBrowser, AbstractBulkOperationAction, AbstractIssueSelectAction, Browser, Dashboard, DeleteComment, DeleteGroup, DeleteProject, DeleteProjectEntity, DeveloperWorkloadReport, ManageFilters, QuickSearch, RenameFilter, SaveAsFilter, SaveFilter, ShareFilter, TimeTrackingReport, ViewProfile, ViewUser

public class IssueActionSupport
extends ProjectActionSupport

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.atlassian.jira.web.action.ProjectActionSupport
savedFilters
 
Fields inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
ISSUE_NOT_FOUND_RESULT, PERMISSION_VIOLATION_RESULT, permissionManager, request
 
Fields inherited from class com.atlassian.jira.action.JiraActionSupport
log
 
Constructor Summary
IssueActionSupport()
           
IssueActionSupport(IssueManager issueManager, CustomFieldManager customFieldManager, ActionManager actionManager, AttachmentManager attachmentManager, ProjectManager projectManager)
           
 
Method Summary
 ActionManager getActionManager()
           
 AttachmentManager getAttachmentManager()
           
 CustomFieldManager getCustomFieldManager()
           
protected  int getDaysPerWeek()
           
protected  int getHoursPerDay()
           
 IssueManager getIssueManager()
           
 java.util.List getPossibleVersions(GenericValue project)
          Returns a list of versions applicable to this issue (unreleased first).
 java.util.List getPossibleVersionsReleasedFirst(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
 GenericValue getSelectedProject()
           
 java.lang.String getUrlEncoded(java.lang.String s)
           
 Workflow getWorkflow()
           
 boolean isCustomFieldHidden(java.lang.Long projectId, java.lang.Long customFieldId)
          Checks if the custom field is hidden in the project with id of projectId.
 boolean isFieldHidden(java.lang.Long projectId, java.lang.String id)
          Checks if the field is hidden in the project with id of projectId.
 boolean isFieldHidden(java.lang.String id)
          Checks if the field is hidden or visible across all the projects that the user can see (has the Permissions.BROWSE permission).
 void setCurrentIssue(GenericValue issue)
          Sets the current issue.
 void setSelectedProject(GenericValue project)
           
 void setSelectedProjectId(java.lang.Long id)
           
 
Methods inherited from class com.atlassian.jira.web.action.ProjectActionSupport
getBrowseableProjects, getBrowseableProjectsInCategory, getSavedFilters
 
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
getAssignableUsers, getAssignableUsers, getCachedGroups, getComponentManager, getConstantsManager, getDefaultAssignee, getField, getLocale, getOutlookDate, getProjectManager, getPropertySet, getRedirect, getRemoteUser, getText, getText, getText, getText, getUserFullName, getUserPreferences, isDefaultAssignee, isDefaultAssignee, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isHasProjectPermission, processDefaultAssignee, processDefaultAssignee
 
Methods inherited from class com.atlassian.jira.action.JiraActionSupport
addErrorMessages, addErrors, execute, getActionName, getApplicationProperties, getDelegator, getLocaleUtils, getResult, isIndexing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IssueActionSupport

public IssueActionSupport(IssueManager issueManager,
                          CustomFieldManager customFieldManager,
                          ActionManager actionManager,
                          AttachmentManager attachmentManager,
                          ProjectManager projectManager)

IssueActionSupport

public IssueActionSupport()
Method Detail

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


getSelectedProject

public GenericValue getSelectedProject()
                                throws PermissionException
Throws:
PermissionException

setSelectedProject

public void setSelectedProject(GenericValue project)

setSelectedProjectId

public void setSelectedProjectId(java.lang.Long id)

setCurrentIssue

public void setCurrentIssue(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(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(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 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
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)
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)
Checks if the field is hidden in the project with id of projectId.

Parameters:
projectId -
id - fieldId
Returns: