com.atlassian.jira.web.action
Class IssueActionSupport

java.lang.Object
  extended by webwork.action.ActionSupport
      extended by com.atlassian.jira.action.JiraActionSupport
          extended by com.atlassian.jira.web.action.JiraWebActionSupport
              extended by com.atlassian.jira.web.action.ProjectActionSupport
                  extended by com.atlassian.jira.web.action.IssueActionSupport
All Implemented Interfaces:
ErrorCollection, I18nHelper, java.io.Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware
Direct Known Subclasses:
AbstractBrowser, AbstractBulkOperationAction, AbstractIssueSelectAction, DeleteGroup, DeleteProject, DeleteProjectEntity, DeleteVersion, SearchDescriptionEnabledAction, ViewProfile, ViewUser

public class IssueActionSupport
extends ProjectActionSupport

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.util.I18nHelper
I18nHelper.BeanFactory
 
Field Summary
protected  AttachmentManager attachmentManager
           
 
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, PERMISSION_VIOLATION_RESULT, request, RETURN_URL_PARAMETER, savedFilters
 
Fields inherited from class com.atlassian.jira.action.JiraActionSupport
log
 
Fields inherited from class webwork.action.ActionSupport
command, errorMap, errorMessages
 
Fields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
IssueActionSupport()
           
IssueActionSupport(IssueManager issueManager, CustomFieldManager customFieldManager, AttachmentManager attachmentManager, ProjectManager projectManager, PermissionManager permissionManager, VersionManager versionManager, UserIssueHistoryManager userHistoryManager, TimeTrackingConfiguration timeTrackingConfiguration)
           
 
Method Summary
 void clearSelectedIssue()
           
 AttachmentManager getAttachmentManager()
           
 java.lang.String getCurrentFailedLoginCount(com.opensymphony.user.User user)
          This can be called to get a the number of times the user currently failed to logged in
 java.lang.String getCurrentJQL()
          Reutrns the JQL representation of the curren search erquest in the session.
 CustomFieldManager getCustomFieldManager()
           
 java.math.BigDecimal getDaysPerWeek()
           
 boolean getEverLoggedIn(com.opensymphony.user.User user)
          True if the user has ever logged in to JIRA
 java.math.BigDecimal getHoursPerDay()
           
 IssueManager getIssueManager()
           
 java.lang.String getLastFailedLogin(com.opensymphony.user.User user)
          This can be called to get a description of the last time the user failed to logged in
 java.lang.String getLastLogin(com.opensymphony.user.User user)
          This can be called to get a description of the last time the user logged in
 java.lang.String getLoginCount(com.opensymphony.user.User user)
          This can be called to get a the number of times the user logged in
 java.util.List<VersionProxy> getPossibleVersions(org.ofbiz.core.entity.GenericValue project)
          Returns a list of versions applicable to this issue (unreleased first).
 java.util.List<VersionProxy> getPossibleVersionsReleasedFirst(org.ofbiz.core.entity.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.
 java.lang.String getPreviousLogin(com.opensymphony.user.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
 java.lang.Long getSelectedIssueId()
           
protected  SessionPagerFilterManager getSessionPagerFilterManager()
           
protected  SessionSearchRequestManager getSessionSearchRequestManager()
           
 SessionSearchObjectManagerFactory getSessionSearchRequestManagerFactory()
           
protected  SessionSelectedIssueManager getSessionSelectedIssueManager()
           
 java.lang.String getTotalFailedLoginCount(com.opensymphony.user.User user)
          This can be called to get a the total number of times the user has failed to logged in
 java.lang.String getUrlEncoded(java.lang.String s)
           
 com.opensymphony.workflow.Workflow getWorkflow()
           
 java.lang.String getWorkflowTransitionDescription(com.opensymphony.workflow.loader.ActionDescriptor descriptor)
           
 java.lang.String getWorkflowTransitionDisplayName(com.opensymphony.workflow.loader.ActionDescriptor descriptor)
          Get the i18n'ed name of a workflow action (eg.
 boolean isCustomFieldHidden(java.lang.Long projectId, java.lang.Long customFieldId, java.lang.String issueTypeId)
          Deprecated. Use FieldVisibilityManager.isCustomFieldHidden(java.lang.Long, java.lang.Long, java.lang.String) instead.
 boolean isElevatedSecurityCheckRequired(com.opensymphony.user.User user)
          True if the user requires an elevated security check on the next login
 boolean isFieldHidden(java.lang.Long projectId, java.lang.String id, java.lang.Integer issueTypeId)
           
 boolean isFieldHidden(java.lang.Long projectId, java.lang.String id, java.lang.String issueTypeId)
          Deprecated. Use FieldVisibilityManager.isFieldHidden(java.lang.Long, java.lang.String, java.lang.String) instead.
 boolean isFieldHidden(java.lang.String id)
          Deprecated. Use FieldVisibilityManager.isFieldHidden(com.opensymphony.user.User, java.lang.String) instead
 boolean isTimeTrackingEnabled()
           
 void setCurrentIssue(org.ofbiz.core.entity.GenericValue issue)
          Sets the current issue.
protected  void setSearchRequest(SearchRequest searchRequest)
          This method set the SearchRequest in the user's session
 void setSelectedIssueId(java.lang.Long selectedIssueId)
          Deprecated. Use SessionSearchObjectManager.setCurrentObject(Object) instead
protected  void updateSearchRequest()
           
 
Methods inherited from class com.atlassian.jira.web.action.ProjectActionSupport
getBrowseableProjects, getBrowseableProjectsInCategory, getSelectedProjectId, setSelectedProject, setSelectedProject
 
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
addErrorCollection, addErrorMessageByKeyIfAbsent, addErrorMessageIfAbsent, forceRedirect, getApplicationProperties, getAssignableUsers, getAssignableUsers, getCachedGroups, getComponentManager, getConglomerateCookieValue, getConstantsManager, getDateFormat, getDateTimeFormat, getDescTranslation, getExternalLinkUtils, getField, getFlushedErrorMessages, getGlobalPermissionManager, getHint, getHintManager, getJiraServiceContext, getLanguage, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getPropertySet, getRandomHint, getRedirect, getRemoteUser, getReturnUrl, getReturnUrlForCancelLink, getSearchSortDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getText, getTimeFormat, getUriValidator, getUserFullName, getUserProjectHistoryManager, getVersionManager, getWebworkStack, getWebworkStack, getXsrfToken, hasErrorMessage, hasErrorMessageByKey, htmlEncode, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isHasProjectPermission, isInlineDialogMode, isSystemAdministrator, isUserExists, returnComplete, returnComplete, returnCompleteWithInlineRedirect, setConglomerateCookieValue, setInline, setReturnUrl, setSelectedProjectId
 
Methods inherited from class com.atlassian.jira.action.JiraActionSupport
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, execute, getActionName, getDefaultResourceBundle, getDelegator, getKeysForPrefix, getLocale, getResult, getText, getText, getText, getText, getText, getText, getText, getText, getText0, getUnescapedText, getUserPreferences, getWatcherManager, hasAnyErrors, isEnterprise, isIndexing, isProfessional, isProfessionalOrEnterprise, isStandard, removeKeyOrAddError
 
Methods inherited from class webwork.action.ActionSupport
addError, addErrorMessage, doDefault, doExecute, doValidation, getCommandName, getErrorMessages, getErrors, 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 com.atlassian.jira.util.ErrorCollection
addError, addErrorMessage, addErrorMessages, addErrors, getErrorMessages, getErrors, hasAnyErrors, setErrorMessages
 
Methods inherited from interface webwork.action.CommandDriven
getCommandName, setCommand
 

Field Detail

attachmentManager

protected final AttachmentManager attachmentManager
Constructor Detail

IssueActionSupport

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

IssueActionSupport

public IssueActionSupport()
Method Detail

getIssueManager

public IssueManager getIssueManager()

getCustomFieldManager

public CustomFieldManager getCustomFieldManager()

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


getCurrentJQL

public java.lang.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.

setSearchRequest

protected void setSearchRequest(SearchRequest searchRequest)
This method set the SearchRequest in the user's session

Parameters:
searchRequest - The seerachRequest to place in the session

getSessionSearchRequestManager

protected SessionSearchRequestManager getSessionSearchRequestManager()

getSessionSelectedIssueManager

protected SessionSelectedIssueManager getSessionSelectedIssueManager()

getSessionPagerFilterManager

protected SessionPagerFilterManager getSessionPagerFilterManager()

getSessionSearchRequestManagerFactory

public SessionSearchObjectManagerFactory getSessionSearchRequestManagerFactory()

updateSearchRequest

protected void updateSearchRequest()

setCurrentIssue

public void setCurrentIssue(org.ofbiz.core.entity.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.

getPossibleVersions

public java.util.List<VersionProxy> getPossibleVersions(org.ofbiz.core.entity.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<VersionProxy> getPossibleVersionsReleasedFirst(org.ofbiz.core.entity.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 com.opensymphony.workflow.Workflow getWorkflow()

getHoursPerDay

public java.math.BigDecimal getHoursPerDay()

getDaysPerWeek

public java.math.BigDecimal getDaysPerWeek()

isTimeTrackingEnabled

public boolean isTimeTrackingEnabled()

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

isFieldHidden

@Deprecated
public boolean isFieldHidden(java.lang.String id)
                      throws FieldLayoutStorageException
Deprecated. Use FieldVisibilityManager.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 Permissions.BROWSE permission).

Parameters:
id - id of the FieldConfiguration
Throws:
FieldLayoutStorageException

setSelectedIssueId

@Deprecated
public void setSelectedIssueId(java.lang.Long selectedIssueId)
Deprecated. Use SessionSearchObjectManager.setCurrentObject(Object) instead

Since v4.2 this method invocation does nothing

Parameters:
selectedIssueId - id of the currently saelected issue

clearSelectedIssue

public void clearSelectedIssue()

getSelectedIssueId

public java.lang.Long getSelectedIssueId()

isCustomFieldHidden

@Deprecated
public boolean isCustomFieldHidden(java.lang.Long projectId,
                                              java.lang.Long customFieldId,
                                              java.lang.String issueTypeId)
Deprecated. Use FieldVisibilityManager.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:
projectId -
customFieldId - the data store id of the custom field

isFieldHidden

@Deprecated
public boolean isFieldHidden(java.lang.Long projectId,
                                        java.lang.String id,
                                        java.lang.String issueTypeId)
Deprecated. Use FieldVisibilityManager.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:
projectId -
id - fieldId

isFieldHidden

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

getWorkflowTransitionDisplayName

public java.lang.String getWorkflowTransitionDisplayName(com.opensymphony.workflow.loader.ActionDescriptor descriptor)
Get the i18n'ed name of a workflow action (eg. 'Start Progress').

Parameters:
descriptor - Descriptor eg. from JiraWorkflow.getDescriptor()

getWorkflowTransitionDescription

public java.lang.String getWorkflowTransitionDescription(com.opensymphony.workflow.loader.ActionDescriptor descriptor)

getLastLogin

public java.lang.String getLastLogin(com.opensymphony.user.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

getPreviousLogin

public java.lang.String getPreviousLogin(com.opensymphony.user.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

getLastFailedLogin

public java.lang.String getLastFailedLogin(com.opensymphony.user.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

getLoginCount

public java.lang.String getLoginCount(com.opensymphony.user.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

getCurrentFailedLoginCount

public java.lang.String getCurrentFailedLoginCount(com.opensymphony.user.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

getTotalFailedLoginCount

public java.lang.String getTotalFailedLoginCount(com.opensymphony.user.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

isElevatedSecurityCheckRequired

public boolean isElevatedSecurityCheckRequired(com.opensymphony.user.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

getEverLoggedIn

public boolean getEverLoggedIn(com.opensymphony.user.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


Copyright © 2002-2010 Atlassian. All Rights Reserved.