public class IssueActionSupport extends ProjectActionSupport
JiraWebActionSupport.MessageType
ErrorCollection.Reason
I18nHelper.BeanFactory
Modifier and Type | Field and Description |
---|---|
protected AttachmentManager |
attachmentManager |
projectManager
ISSUE_NOT_FOUND_RESULT, PERMISSION_VIOLATION_RESULT, request, RETURN_URL_PARAMETER, savedFilters, SECURITY_BREACH_RESULT
log
Constructor and Description |
---|
IssueActionSupport() |
IssueActionSupport(IssueManager issueManager,
CustomFieldManager customFieldManager,
AttachmentManager attachmentManager,
ProjectManager projectManager,
PermissionManager permissionManager,
VersionManager versionManager,
UserIssueHistoryManager userHistoryManager,
TimeTrackingConfiguration timeTrackingConfiguration) |
Modifier and Type | Method and Description |
---|---|
void |
addIssueToHistory(Issue issueObj)
Sets the current issue.
|
AttachmentManager |
getAttachmentManager() |
String |
getCurrentDateTimeInUsersTimezone()
This method returns YYYY/MM/dd HH:mm:ss string for logged in user using English locale.
|
String |
getCurrentFailedLoginCount(ApplicationUser user)
This can be called to get a the number of times the user currently failed to logged in
|
String |
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.
|
CustomFieldManager |
getCustomFieldManager() |
BigDecimal |
getDaysPerWeek() |
boolean |
getEverLoggedIn(ApplicationUser user)
True if the user has ever logged in to JIRA
|
String |
getFormToken() |
BigDecimal |
getHoursPerDay() |
IssueManager |
getIssueManager() |
String |
getLastFailedLogin(ApplicationUser user)
This can be called to get a description of the last time the user failed to logged in
|
String |
getLastLogin(ApplicationUser user)
This can be called to get a description of the last time the user logged in
|
String |
getLoginCount(ApplicationUser user)
This can be called to get a the number of times the user logged in
|
List<VersionProxy> |
getPossibleVersions(Project project)
Returns a list of versions applicable to this issue (unreleased first).
|
List<VersionProxy> |
getPossibleVersionsReleasedFirst(Project 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(ApplicationUser user)
This can be called to get a description of the second last time the user logged in
|
SearchRequest |
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.
|
Long |
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.
|
protected SessionPagerFilterManager |
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.
|
protected SessionSearchRequestManager |
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
|
SessionSearchObjectManagerFactory |
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.
|
protected SessionSelectedIssueManager |
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.
|
String |
getTotalFailedLoginCount(ApplicationUser user)
This can be called to get a the total number of times the user has failed to logged in
|
String |
getUrlEncoded(String s) |
com.opensymphony.workflow.Workflow |
getWorkflow() |
String |
getWorkflowTransitionDescription(com.opensymphony.workflow.loader.ActionDescriptor descriptor) |
String |
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 |
isElevatedSecurityCheckRequired(ApplicationUser 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)
Deprecated.
|
boolean |
isTimeTrackingEnabled() |
void |
setFormToken(String formToken) |
protected void |
setSearchRequest(SearchRequest searchRequest)
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
|
void |
setSelectedIssueId(Long selectedIssueId)
Deprecated.
|
protected void |
updateSearchRequest() |
getBrowsableProjects, getSelectedProjectId, setSelectedProject, setSelectedProject
addError, addErrorCollection, addErrorMessage, addErrorMessageByKeyIfAbsent, addErrorMessageIfAbsent, addMessageToResponse, addReason, addReasons, forceRedirect, getAdministratorContactLink, getApplicationProperties, getAuthorizationSupport, getConglomerateCookieValue, getConstantsManager, getDateFormat, getDateTimeFormat, getDateTimeFormatter, getDescTranslation, getDescTranslation, getDmyDateFormatter, getEmptyResponse, getErrorMessages, getErrors, getField, getFlushedErrorMessages, getGlobalPermissionManager, getHint, getHintManager, getHttpRequest, getHttpResponse, getHttpSession, getJiraContactHelper, getJiraServiceContext, getLanguage, getLoggedInApplicationUser, getLoggedInUser, getNameTranslation, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getRandomHint, getReasons, getRedirect, getRedirect, getRedirectSanitiser, getRequestSourceType, getReturnUrl, getReturnUrlForCancelLink, getSearchSortDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getServletContext, getTimeFormat, getUriValidator, getUserFullName, getUserManager, getUserProjectHistoryManager, getVersionManager, getWebworkStack, getWebworkStack, getXsrfToken, hasErrorMessage, hasErrorMessageByKey, hasGlobalPermission, hasGlobalPermission, hasIssuePermission, hasIssuePermission, hasIssuePermission, hasPermission, hasProjectPermission, hasProjectPermission, htmlEncode, insertContextPath, isInlineDialogMode, isSystemAdministrator, isUserExists, isUserExistsByKey, isUserExistsByName, returnComplete, returnComplete, returnCompleteWithInlineRedirect, returnCompleteWithInlineRedirectAndMsg, returnCompleteWithInlineRedirectAndMsg, returnMsgToUser, returnMsgToUser, setConglomerateCookieValue, setInline, setReasons, setReturnUrl, setSelectedProjectId, tagMauEventWithApplication, tagMauEventWithProject, urlEncode
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, execute, getActionName, getComponentInstanceOfType, getDefaultResourceBundle, getI18nHelper, getKeysForPrefix, getLocale, getOfBizDelegator, getResourceBundle, getResult, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getUnescapedText, getUntransformedRawText, getUserPreferences, hasAnyErrors, isIndexing, isKeyDefined, removeKeyOrAddError
addError, addErrorMessage, doDefault, doExecute, doValidation, getCommandName, getHasErrorMessages, getHasErrors, getPropertyEditorMessage, getTexts, getTexts, getTimezone, invalidInput, invokeCommand, isCommand, setCommand, setErrorMessages, setErrors, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addError, addErrorMessage, addErrorMessages, addErrors, hasAnyErrors, setErrorMessages
protected final AttachmentManager attachmentManager
public IssueActionSupport(IssueManager issueManager, CustomFieldManager customFieldManager, AttachmentManager attachmentManager, ProjectManager projectManager, PermissionManager permissionManager, VersionManager versionManager, UserIssueHistoryManager userHistoryManager, TimeTrackingConfiguration timeTrackingConfiguration)
public IssueActionSupport()
public IssueManager getIssueManager()
public CustomFieldManager getCustomFieldManager()
public AttachmentManager getAttachmentManager()
@Deprecated public SearchRequest getSearchRequest()
@Deprecated public String getCurrentJQL()
@Deprecated protected void setSearchRequest(SearchRequest searchRequest)
searchRequest
- The seerachRequest to place in the session@Deprecated protected SessionSearchRequestManager getSessionSearchRequestManager()
@Deprecated protected SessionSelectedIssueManager getSessionSelectedIssueManager()
@Deprecated protected SessionPagerFilterManager getSessionPagerFilterManager()
@Deprecated public SessionSearchObjectManagerFactory getSessionSearchRequestManagerFactory()
protected void updateSearchRequest()
public void addIssueToHistory(Issue issueObj)
issueObj
- The issue that you are currently viewing.public List<VersionProxy> getPossibleVersions(Project project) throws Exception
Exception
public List<VersionProxy> getPossibleVersionsReleasedFirst(Project project) throws Exception
Exception
public com.opensymphony.workflow.Workflow getWorkflow()
public BigDecimal getHoursPerDay()
public BigDecimal getDaysPerWeek()
public boolean isTimeTrackingEnabled()
public String getPrettyDuration(Long v)
v
- duration in seconds@Deprecated public void setSelectedIssueId(Long selectedIssueId)
SessionSearchObjectManager.setCurrentObject(Object)
insteadselectedIssueId
- id of the currently saelected issue@Deprecated public Long getSelectedIssueId()
@Deprecated public boolean isCustomFieldHidden(Long projectId, Long customFieldId, String issueTypeId)
FieldVisibilityManager.isCustomFieldHidden(java.lang.Long, java.lang.Long,
java.lang.String)
instead.projectId
- customFieldId
- the data store id of the custom field@Deprecated public boolean isFieldHidden(Long projectId, String id, String issueTypeId)
FieldVisibilityManager.isFieldHidden(java.lang.Long, java.lang.String, java.lang.String)
instead.projectId
- id
- fieldIdpublic String getWorkflowTransitionDisplayName(com.opensymphony.workflow.loader.ActionDescriptor descriptor)
descriptor
- Descriptor eg. from JiraWorkflow.getDescriptor()
public String getWorkflowTransitionDescription(com.opensymphony.workflow.loader.ActionDescriptor descriptor)
public String getLastLogin(ApplicationUser user)
user
- the user in play (not the current user but any user)public String getPreviousLogin(ApplicationUser user)
user
- the user in play (not the current user but any user)public String getLastFailedLogin(ApplicationUser user)
user
- the user in play (not the current user but any user)public String getLoginCount(ApplicationUser user)
user
- the user in play (not the current user but any user)public String getCurrentFailedLoginCount(ApplicationUser user)
user
- the user in play (not the current user but any user)public String getTotalFailedLoginCount(ApplicationUser user)
user
- the user in play (not the current user but any user)public boolean isElevatedSecurityCheckRequired(ApplicationUser user)
user
- the user in play (not the current user but any user)public boolean getEverLoggedIn(ApplicationUser user)
user
- the user in play (not the current user but any user)public String getFormToken()
public void setFormToken(String formToken)
public String getCurrentDateTimeInUsersTimezone()
Copyright © 2002-2022 Atlassian. All Rights Reserved.