public class

IssueActionSupport

extends ProjectActionSupport
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
Known Direct Subclasses
Known Indirect Subclasses

Summary

[Expand]
Inherited Constants
From class com.atlassian.jira.web.action.JiraWebActionSupport
From interface webwork.action.Action
Fields
protected final AttachmentManager attachmentManager
[Expand]
Inherited Fields
From class com.atlassian.jira.web.action.ProjectActionSupport
From class com.atlassian.jira.web.action.JiraWebActionSupport
From class com.atlassian.jira.action.JiraActionSupport
From class webwork.action.ActionSupport
Public Constructors
IssueActionSupport(IssueManager issueManager, CustomFieldManager customFieldManager, AttachmentManager attachmentManager, ProjectManager projectManager, PermissionManager permissionManager, VersionManager versionManager, UserIssueHistoryManager userHistoryManager, TimeTrackingConfiguration timeTrackingConfiguration)
IssueActionSupport()
Public Methods
void clearSelectedIssue()
AttachmentManager getAttachmentManager()
String getCurrentFailedLoginCount(User user)
This can be called to get a the number of times the user currently failed to logged in
String getCurrentJQL()
Reutrns the JQL representation of the curren search erquest in the session.
CustomFieldManager getCustomFieldManager()
BigDecimal getDaysPerWeek()
boolean getEverLoggedIn(User user)
True if the user has ever logged in to JIRA
BigDecimal getHoursPerDay()
IssueManager getIssueManager()
String getLastFailedLogin(User user)
This can be called to get a description of the last time the user failed to logged in
String getLastLogin(User user)
This can be called to get a description of the last time the user logged in
String getLoginCount(User user)
This can be called to get a the number of times the user logged in
List<VersionProxy> getPossibleVersions(GenericValue project)
Returns a list of versions applicable to this issue (unreleased first).
List<VersionProxy> getPossibleVersionsReleasedFirst(GenericValue project)
Returns a list of versions applicable to this issue (released first).
String getPrettyDuration(Long v)
this formatting function is shared by the full view for navigator as well as view issue.
String getPreviousLogin(User user)
This can be called to get a description of the second last time the user logged in
SearchRequest getSearchRequest()
This method will return the one in the current search request, or return null if one does not exist
Long getSelectedIssueId()
SessionSearchObjectManagerFactory getSessionSearchRequestManagerFactory()
String getTotalFailedLoginCount(User user)
This can be called to get a the total number of times the user has failed to logged in
String getUrlEncoded(String s)
Workflow getWorkflow()
String getWorkflowTransitionDescription(ActionDescriptor descriptor)
String getWorkflowTransitionDisplayName(ActionDescriptor descriptor)
Get the i18n'ed name of a workflow action (eg.
boolean isCustomFieldHidden(Long projectId, Long customFieldId, String issueTypeId)
boolean isElevatedSecurityCheckRequired(User user)
True if the user requires an elevated security check on the next login
boolean isFieldHidden(Long projectId, String id, Integer issueTypeId)
boolean isFieldHidden(Long projectId, String id, String issueTypeId)
boolean isFieldHidden(String id)
This method is deprecated. Use isFieldHidden(com.opensymphony.user.User, java.lang.String) instead
boolean isTimeTrackingEnabled()
void setCurrentIssue(GenericValue issue)
Sets the current issue.
void setSelectedIssueId(Long selectedIssueId)
This method is deprecated. Use setCurrentObject(Object) instead
Protected Methods
SessionPagerFilterManager getSessionPagerFilterManager()
SessionSearchRequestManager getSessionSearchRequestManager()
SessionSelectedIssueManager getSessionSelectedIssueManager()
void setSearchRequest(SearchRequest searchRequest)
This method set the SearchRequest in the user's session
void updateSearchRequest()
[Expand]
Inherited Methods
From class com.atlassian.jira.web.action.ProjectActionSupport
From class com.atlassian.jira.web.action.JiraWebActionSupport
From class com.atlassian.jira.action.JiraActionSupport
From class webwork.action.ActionSupport
From class java.lang.Object
From interface com.atlassian.jira.util.ErrorCollection
From interface com.atlassian.jira.util.I18nHelper
From interface com.atlassian.jira.web.util.AuthorizationSupport
From interface webwork.action.Action
From interface webwork.action.CommandDriven
From interface webwork.action.IllegalArgumentAware

Fields

protected final AttachmentManager attachmentManager

Public Constructors

public IssueActionSupport (IssueManager issueManager, CustomFieldManager customFieldManager, AttachmentManager attachmentManager, ProjectManager projectManager, PermissionManager permissionManager, VersionManager versionManager, UserIssueHistoryManager userHistoryManager, TimeTrackingConfiguration timeTrackingConfiguration)

public IssueActionSupport ()

Public Methods

public void clearSelectedIssue ()

public AttachmentManager getAttachmentManager ()

public String getCurrentFailedLoginCount (User user)

This can be called to get a the number of times the user currently failed to logged in

Parameters
user the user in play (not the current user but any user)
Returns
  • a string of their number of times they have currently failed to logged in or a not recorded message

public String getCurrentJQL ()

Reutrns the JQL representation of the curren search erquest in the session.

Returns
  • the jql of the SearchRequest in the session, empty string otherwise.

public CustomFieldManager getCustomFieldManager ()

public BigDecimal getDaysPerWeek ()

public boolean getEverLoggedIn (User user)

True if the user has ever logged in to JIRA

Parameters
user the user in play (not the current user but any user)
Returns
  • true if they have ever logged into JIRA

public BigDecimal getHoursPerDay ()

public IssueManager getIssueManager ()

public String getLastFailedLogin (User user)

This can be called to get a description of the last time the user failed to logged in

Parameters
user the user in play (not the current user but any user)
Returns
  • a string of their last failed login time or a not recorded message

public String getLastLogin (User user)

This can be called to get a description of the last time the user logged in

Parameters
user the user in play (not the current user but any user)
Returns
  • a string of their last login time or a not recorded message

public String getLoginCount (User user)

This can be called to get a the number of times the user logged in

Parameters
user the user in play (not the current user but any user)
Returns
  • a string of their number of times they have logged in or a not recorded message

public List<VersionProxy> getPossibleVersions (GenericValue project)

Returns a list of versions applicable to this issue (unreleased first).

Throws
Exception

public List<VersionProxy> getPossibleVersionsReleasedFirst (GenericValue project)

Returns a list of versions applicable to this issue (released first).

Throws
Exception

public String getPrettyDuration (Long v)

this formatting function is shared by the full view for navigator as well as view issue.

Parameters
v duration in seconds

public String getPreviousLogin (User user)

This can be called to get a description of the second last time the user logged in

Parameters
user the user in play (not the current user but any user)
Returns
  • a string of their last login time or a not recorded message

public SearchRequest getSearchRequest ()

This method will return the one in the current search request, or return null if one does not exist

public Long getSelectedIssueId ()

public SessionSearchObjectManagerFactory getSessionSearchRequestManagerFactory ()

public String getTotalFailedLoginCount (User user)

This can be called to get a the total number of times the user has failed to logged in

Parameters
user the user in play (not the current user but any user)
Returns
  • a string of their total number of times they have failed to logged in or a not recorded message

public String getUrlEncoded (String s)

public Workflow getWorkflow ()

public String getWorkflowTransitionDescription (ActionDescriptor descriptor)

public String getWorkflowTransitionDisplayName (ActionDescriptor descriptor)

Get the i18n'ed name of a workflow action (eg. 'Start Progress').

Parameters
descriptor Descriptor eg. from getDescriptor()

public boolean isCustomFieldHidden (Long projectId, Long customFieldId, String issueTypeId)

This method is deprecated.
Use 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
customFieldId the data store id of the custom field

public boolean isElevatedSecurityCheckRequired (User user)

True if the user requires an elevated security check on the next login

Parameters
user the user in play (not the current user but any user)
Returns
  • true if the user requires an elevated security check on the next login

public boolean isFieldHidden (Long projectId, String id, Integer issueTypeId)

public boolean isFieldHidden (Long projectId, String id, String issueTypeId)

This method is deprecated.
Use 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
id fieldId

public boolean isFieldHidden (String id)

This method is deprecated.
Use 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 BROWSE permission).

Parameters
id id of the FieldConfiguration

public boolean isTimeTrackingEnabled ()

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.

Parameters
issue The issue that you are currently viewing.

public void setSelectedIssueId (Long selectedIssueId)

This method is deprecated.
Use setCurrentObject(Object) instead

Since v4.2 this method invocation does nothing

Parameters
selectedIssueId id of the currently saelected issue

Protected Methods

protected SessionPagerFilterManager getSessionPagerFilterManager ()

protected SessionSearchRequestManager getSessionSearchRequestManager ()

protected SessionSelectedIssueManager getSessionSelectedIssueManager ()

protected void setSearchRequest (SearchRequest searchRequest)

This method set the SearchRequest in the user's session

Parameters
searchRequest The seerachRequest to place in the session

protected void updateSearchRequest ()