Package com.atlassian.jira.web.action
Class IssueActionSupport
java.lang.Object
webwork.action.ActionSupport
com.atlassian.jira.web.action.JiraWebActionSupport
com.atlassian.jira.web.action.ProjectActionSupport
com.atlassian.jira.web.action.IssueActionSupport
- All Implemented Interfaces:
ErrorCollection
,I18nHelper
,HttpServletVariables
,AuthorizationSupport
,Serializable
,webwork.action.Action
,webwork.action.CommandDriven
,webwork.action.IllegalArgumentAware
- Direct Known Subclasses:
AbstractBrowser
,AbstractBulkOperationAction
,AbstractIssueSelectAction
,AbstractPluggableTabPanelAction
,ArchiveProject
,DeleteGroup
,DeleteProject
,SearchDescriptionEnabledAction
,ViewUser
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
JiraWebActionSupport.MessageType
Nested classes/interfaces inherited from interface com.atlassian.jira.util.ErrorCollection
ErrorCollection.Reason
Nested classes/interfaces inherited from interface com.atlassian.jira.util.I18nHelper
I18nHelper.BeanFactory
-
Field Summary
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, log, PERMISSION_VIOLATION_RESULT, request, RETURN_URL_PARAMETER, savedFilters, SECURITY_BREACH_RESULT
Fields inherited from class webwork.action.ActionSupport
command, errorMap, errorMessages
Fields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
-
Constructor Summary
ConstructorDescriptionIssueActionSupport
(IssueManager issueManager, CustomFieldManager customFieldManager, AttachmentManager attachmentManager, ProjectManager projectManager, PermissionManager permissionManager, VersionManager versionManager, UserIssueHistoryManager userHistoryManager, TimeTrackingConfiguration timeTrackingConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addIssueToHistory
(Issue issueObj) Sets the current issue.This method returns YYYY/MM/dd HH:mm:ss string for logged in user using English locale.This can be called to get a the number of times the user currently failed to logged inDeprecated.Since 7.1.boolean
True if the user has ever logged in to JIRAThis can be called to get a description of the last time the user failed to logged ingetLastLogin
(ApplicationUser user) This can be called to get a description of the last time the user logged ingetLoginCount
(ApplicationUser user) This can be called to get a the number of times the user logged ingetPossibleVersions
(Project project) Returns a list of versions applicable to this issue (unreleased first).getPossibleVersionsReleasedFirst
(Project project) Returns a list of versions applicable to this issue (released first).this formatting function is shared by the full view for navigator as well as view issue.This can be called to get a description of the second last time the user logged inDeprecated.Since 7.1.Deprecated.Since 7.1.protected SessionPagerFilterManager
Deprecated.Since 7.1.protected SessionSearchRequestManager
Deprecated.Storing information on the httpsession is obsoleted.Deprecated.Since 7.1.protected SessionSelectedIssueManager
Deprecated.Since 7.1.This can be called to get a the total number of times the user has failed to logged incom.opensymphony.workflow.Workflow
getWorkflowTransitionDescription
(com.opensymphony.workflow.loader.ActionDescriptor descriptor) getWorkflowTransitionDisplayName
(com.opensymphony.workflow.loader.ActionDescriptor descriptor) Get the i18n'ed name of a workflow action (eg.boolean
isCustomFieldHidden
(Long projectId, Long customFieldId, String issueTypeId) Deprecated.boolean
True if the user requires an elevated security check on the next loginboolean
isFieldHidden
(Long projectId, String id, Integer issueTypeId) boolean
isFieldHidden
(Long projectId, String id, String issueTypeId) Deprecated.boolean
void
setFormToken
(String formToken) protected void
setSearchRequest
(SearchRequest searchRequest) Deprecated.Storing information on the httpsession is obsoleted.void
setSelectedIssueId
(Long selectedIssueId) Deprecated.protected void
Methods inherited from class com.atlassian.jira.web.action.ProjectActionSupport
getBrowsableProjects, getSelectedProjectId, setSelectedProject, setSelectedProject
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
addError, addErrorCollection, addErrorMessage, addErrorMessageByKeyIfAbsent, addErrorMessageIfAbsent, addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, addMessageToResponse, addReason, addReasons, checkIfUrlIsAllowed, execute, forceRedirect, getActionName, getAdministratorContactLink, getApplicationProperties, getAuthorizationSupport, getComponentInstanceOfType, getConglomerateCookieValue, getConstantsManager, getDateFormat, getDateTimeFormat, getDateTimeFormatter, getDefaultResourceBundle, getDescTranslation, getDescTranslation, getDmyDateFormatter, getEmptyResponse, getErrorMessages, getErrors, getField, getFlushedErrorMessages, getGlobalPermissionManager, getHint, getHintManager, getHttpRequest, getHttpResponse, getHttpSession, getI18nHelper, getJiraContactHelper, getJiraServiceContext, getKeysForPrefix, getLanguage, getLocale, getLoggedInApplicationUser, getLoggedInUser, getNameTranslation, getNameTranslation, getOfBizDelegator, getOutboundWhitelistProvider, getOutlookDate, getPermissionManager, getProjectManager, getRandomHint, getReasons, getRedirect, getRedirect, getRedirectSanitiser, getRequestSourceType, getResourceBundle, getResult, getReturnUrl, getReturnUrlForCancelLink, getSearchSortDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getServletContext, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTimeFormat, getUnescapedText, getUntransformedRawText, getUriValidator, getUserFullName, getUserManager, getUserPreferences, getUserProjectHistoryManager, getVersionManager, getWebworkStack, getWebworkStack, getXsrfToken, hasAnyErrors, hasErrorMessage, hasErrorMessageByKey, hasGlobalPermission, hasGlobalPermission, hasIssuePermission, hasIssuePermission, hasIssuePermission, hasPermission, hasProjectPermission, hasProjectPermission, htmlEncode, insertContextPath, isAdministrator, isIndexing, isInlineDialogMode, isKeyDefined, isSystemAdministrator, isUserExists, isUserExistsByKey, isUserExistsByName, removeKeyOrAddError, returnComplete, returnComplete, returnCompleteWithInlineRedirect, returnCompleteWithInlineRedirectAndMsg, returnCompleteWithInlineRedirectAndMsg, returnMsgToUser, returnMsgToUser, setConglomerateCookieValue, setInline, setReasons, setReturnUrl, setSelectedProjectId, tagMauEventWithApplication, tagMauEventWithProject, urlEncode
Methods inherited from class webwork.action.ActionSupport
addError, addErrorMessage, doDefault, doExecute, doValidation, getCommandName, 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 webwork.action.CommandDriven
getCommandName, setCommand
Methods inherited from interface com.atlassian.jira.util.ErrorCollection
addError, addErrorMessage, setErrorMessages
-
Field Details
-
attachmentManager
-
-
Constructor Details
-
IssueActionSupport
public IssueActionSupport(IssueManager issueManager, CustomFieldManager customFieldManager, AttachmentManager attachmentManager, ProjectManager projectManager, PermissionManager permissionManager, VersionManager versionManager, UserIssueHistoryManager userHistoryManager, TimeTrackingConfiguration timeTrackingConfiguration) -
IssueActionSupport
public IssueActionSupport()
-
-
Method Details
-
getIssueManager
-
getCustomFieldManager
-
getAttachmentManager
-
getSearchRequest
Deprecated.Since 7.1. Storing information on the httpsession is obsoleted. Please move this functionality to the frontend or other type of storage. This method will be removed in 8.0.This method will return the one in the current search request, or return null if one does not exist -
getCurrentJQL
Deprecated.Since 7.1. Storing information on the httpsession is obsoleted. Please move this functionality to the frontend or other type of storage. This method will be removed in 8.0.Reutrns the JQL representation of the curren search erquest in the session.- Returns:
- the jql of the SearchRequest in the session, empty string otherwise.
-
setSearchRequest
Deprecated.Storing information on the httpsession is obsoleted. Please move this functionality to the frontend or other type of storage. This method will be removed in 8.0. Since 7.1This method set the SearchRequest in the user's session- Parameters:
searchRequest
- The seerachRequest to place in the session
-
getSessionSearchRequestManager
Deprecated.Storing information on the httpsession is obsoleted. Please move this functionality to the frontend or other type of storage. This method will be removed in 8.0. Since 7.1 -
getSessionSelectedIssueManager
Deprecated.Since 7.1. Storing information on the httpsession is obsoleted. Please move this functionality to the frontend or other type of storage. This method will be removed in 8.0. -
getSessionPagerFilterManager
Deprecated.Since 7.1. Storing information on the httpsession is obsoleted. Please move this functionality to the frontend or other type of storage. This method will be removed in 8.0. -
getSessionSearchRequestManagerFactory
Deprecated.Since 7.1. Storing information on the httpsession is obsoleted. Please move this functionality to the frontend or other type of storage. This method will be removed in 8.0. -
updateSearchRequest
protected void updateSearchRequest() -
addIssueToHistory
Sets the current issue. This is similar to setting the current project - so that we can make things more convenient for users.- Parameters:
issueObj
- The issue that you are currently viewing.
-
getPossibleVersions
Returns a list of versions applicable to this issue (unreleased first).- Throws:
Exception
-
getPossibleVersionsReleasedFirst
Returns a list of versions applicable to this issue (released first).- Throws:
Exception
-
getUrlEncoded
-
getWorkflow
public com.opensymphony.workflow.Workflow getWorkflow() -
getHoursPerDay
-
getDaysPerWeek
-
isTimeTrackingEnabled
public boolean isTimeTrackingEnabled() -
getPrettyDuration
this formatting function is shared by the full view for navigator as well as view issue.- Parameters:
v
- duration in seconds
-
setSelectedIssueId
Deprecated.Since v4.2 this method invocation does nothing- Parameters:
selectedIssueId
- id of the currently saelected issue
-
getSelectedIssueId
Deprecated.Since 7.1. Storing information on the httpsession is obsoleted. Please move this functionality to the frontend or other type of storage. This method will be removed in 8.0. -
isCustomFieldHidden
@Deprecated public boolean isCustomFieldHidden(Long projectId, Long customFieldId, String issueTypeId) Deprecated.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
-
isFieldHidden
Deprecated.Checks if the field is hidden in the project with id of projectId.- Parameters:
projectId
-id
- fieldId
-
isFieldHidden
-
getWorkflowTransitionDisplayName
public String getWorkflowTransitionDisplayName(com.opensymphony.workflow.loader.ActionDescriptor descriptor) Get the i18n'ed name of a workflow action (eg. 'Start Progress').- Parameters:
descriptor
- Descriptor eg. fromJiraWorkflow.getDescriptor()
-
getWorkflowTransitionDescription
public String getWorkflowTransitionDescription(com.opensymphony.workflow.loader.ActionDescriptor descriptor) -
getLastLogin
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
-
getPreviousLogin
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
-
getLastFailedLogin
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
-
getLoginCount
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
-
getCurrentFailedLoginCount
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
-
getTotalFailedLoginCount
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
-
isElevatedSecurityCheckRequired
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
-
getEverLoggedIn
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
-
getFormToken
-
setFormToken
-
getCurrentDateTimeInUsersTimezone
This method returns YYYY/MM/dd HH:mm:ss string for logged in user using English locale. This date-time format is safe to be parsed on all versions of Chrome, Firefox and IE. The date is the current date-time of the logged in user as per timezone configured in that user's profile. It should be used to initialise both date-only and date-time fields.- Returns:
- current date-time for logged in user.
-