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, AbstractIssueSelectAction, Browser, BulkEdit, Dashboard, DeleteComment, DeleteGroup, DeleteProject, DeleteProjectEntity, 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
PERMISSION_VIOLATION_RESULT, request
 
Fields inherited from class com.atlassian.jira.action.JiraActionSupport
log
 
Constructor Summary
IssueActionSupport()
           
 
Method Summary
 ActionManager getActionManager()
           
 java.util.Collection getAssignableUsers(GenericValue entity)
           
 AttachmentManager getAttachmentManager()
           
 CustomFieldManager getCustomFieldManager()
           
protected  int getDaysPerWeek()
           
protected  int getHoursPerDay()
           
 IssueManager getIssueManager()
           
 java.util.List getPossibleVersions(GenericValue project)
           
 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)
           
 java.util.List getVisibleCustomFields()
           
 java.util.List getVisibleFields()
          retrieves the field configuration for the create issue and edit issue forms.
 Workflow getWorkflow()
           
 boolean isFieldHidden(java.lang.String id)
          checks if the field configuration is hidden or visible
 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, getProjectManager, getSavedFilters
 
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
getCachedGroups, getConstantsManager, getGlobalColumns, getPropertySet, getRedirect, getRemoteUser, getUserPreferences, isHasIssuePermission, isHasPermission, isHasPermission, isHasProjectPermission
 
Methods inherited from class com.atlassian.jira.action.JiraActionSupport
addErrorMessages, addErrors, execute, getActionName, getApplicationProperties, getDelegator, 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()
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)

getAssignableUsers

public java.util.Collection getAssignableUsers(GenericValue entity)
                                        throws java.lang.Exception
Throws:
java.lang.Exception

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
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:

getVisibleFields

public java.util.List getVisibleFields()
retrieves the field configuration for the create issue and edit issue forms. this configuration consists of a list of FieldConfigurations and basically specifies the order in which these fields appear as well as whether they are hidden or visible

Returns:

getVisibleCustomFields

public java.util.List getVisibleCustomFields()

isFieldHidden

public boolean isFieldHidden(java.lang.String id)
checks if the field configuration is hidden or visible

Parameters:
id - id of the FieldConfiguration
Returns: