Class IssueNavigatorToolsHelper
java.lang.Object
com.atlassian.jira.web.action.issue.IssueNavigatorToolsHelper
Utility for determining tool options to display on the issue navigator
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
ConstructorsConstructorDescriptionIssueNavigatorToolsHelper(JiraAuthenticationContext authContext, PermissionManager permissionManager, ApplicationProperties applicationProperties, ColumnLayoutManager columnLayoutManager, IssueNavigatorToolsHelper.SearchRequestInfo searchRequestInfo, IssueNavigatorToolsHelper.SearchResultInfo searchResultInfo) -
Method Summary
Modifier and TypeMethodDescriptionintReturns the maximum number of issues the user is allowed to bulk edit.booleanTells whether the bulk edit limit property is currently restricting the number of issues in the current search that may be bulk edited.booleanChecks to see if the current user has the global BULK CHANGE permissionbooleanDetermines if the current search request has a column layout.booleanbooleanDetermines whether the "Use Your Columns" link should be shown to the user.
-
Constructor Details
-
Method Details
-
getToolOptions
- Throws:
ColumnLayoutStorageException
-
isHasBulkChangePermission
public boolean isHasBulkChangePermission()Checks to see if the current user has the global BULK CHANGE permission -
isBulkEditLimited
public boolean isBulkEditLimited()Tells whether the bulk edit limit property is currently restricting the number of issues in the current search that may be bulk edited.- Returns:
- true only if the bulk edit limit is restricting.
-
getBulkEditMax
public int getBulkEditMax()Returns the maximum number of issues the user is allowed to bulk edit. Possibly the number of search results that were returned, but no more than the number configured byAPKeys.JIRA_BULK_EDIT_LIMIT_ISSUE_COUNTif it is set to a positive number.- Returns:
- the number of issues that can be bulk edited.
-
isHasSearchRequestColumnLayout
Determines if the current search request has a column layout. Used in the header of the IssueNavigator- Throws:
ColumnLayoutStorageException
-
isOwnerOfSearchRequest
public boolean isOwnerOfSearchRequest() -
isShowOverrideColumnLayout
Determines whether the "Use Your Columns" link should be shown to the user. This will happen IF the search request has its own column layout AND If the user has NOT chosen to override the search request's column layout- Throws:
ColumnLayoutStorageException
-