com.atlassian.jira.web.action.issue
Class IssueNavigatorToolsHelper

java.lang.Object
  extended by com.atlassian.jira.web.action.issue.IssueNavigatorToolsHelper

public class IssueNavigatorToolsHelper
extends Object

Utility for determining tool options to display on the issue navigator


Nested Class Summary
static class IssueNavigatorToolsHelper.SearchRequestInfo
           
static class IssueNavigatorToolsHelper.SearchResultInfo
           
 
Constructor Summary
IssueNavigatorToolsHelper(JiraAuthenticationContext authContext, PermissionManager permissionManager, ApplicationProperties applicationProperties, ColumnLayoutManager columnLayoutManager, IssueNavigatorToolsHelper.SearchRequestInfo searchRequestInfo, IssueNavigatorToolsHelper.SearchResultInfo searchResultInfo)
           
 
Method Summary
 int getBulkEditMax()
          Returns the maximum number of issues the user is allowed to bulk edit.
 List<ToolOptionGroup> getToolOptions()
           
 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.
 boolean isHasBulkChangePermission()
          Checks to see if the current user has the global BULK CHANGE permission
 boolean isHasSearchRequestColumnLayout()
          Determines if the current search request has a column layout.
 boolean isOwnerOfSearchRequest()
           
 boolean isShowOverrideColumnLayout()
          Determines whether the "Use Your Columns" link should be shown to the user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IssueNavigatorToolsHelper

public IssueNavigatorToolsHelper(JiraAuthenticationContext authContext,
                                 PermissionManager permissionManager,
                                 ApplicationProperties applicationProperties,
                                 ColumnLayoutManager columnLayoutManager,
                                 IssueNavigatorToolsHelper.SearchRequestInfo searchRequestInfo,
                                 IssueNavigatorToolsHelper.SearchResultInfo searchResultInfo)
Method Detail

getToolOptions

public List<ToolOptionGroup> getToolOptions()
                                     throws ColumnLayoutStorageException
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 by APKeys.JIRA_BULK_EDIT_LIMIT_ISSUE_COUNT if it is set to a positive number.

Returns:
the number of issues that can be bulk edited.

isHasSearchRequestColumnLayout

public boolean isHasSearchRequestColumnLayout()
                                       throws ColumnLayoutStorageException
Determines if the current search request has a column layout. Used in the header of the IssueNavigator

Throws:
ColumnLayoutStorageException

isOwnerOfSearchRequest

public boolean isOwnerOfSearchRequest()

isShowOverrideColumnLayout

public boolean isShowOverrideColumnLayout()
                                   throws ColumnLayoutStorageException
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


Copyright © 2002-2014 Atlassian. All Rights Reserved.