public class

IssueSearchLimitsImpl

extends Object
implements IssueSearchLimits
java.lang.Object
   ↳ com.atlassian.jira.web.action.issue.IssueSearchLimitsImpl

Class Overview

Utility methods that allow you to get the limits that are imposed by JIRA configuration properties.

Summary

[Expand]
Inherited Constants
From interface com.atlassian.jira.web.action.issue.IssueSearchLimits
Public Constructors
IssueSearchLimitsImpl(ApplicationProperties applicationProperties)
Creates a new SearchLimits instance.
Public Methods
int getMaxResults()
Returns the maximum number of search results that this JIRA instance is configured to allow, by reading it from the
jira-application.properties
file.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.web.action.issue.IssueSearchLimits

Public Constructors

public IssueSearchLimitsImpl (ApplicationProperties applicationProperties)

Creates a new SearchLimits instance.

Parameters
applicationProperties an ApplicationProperties

Public Methods

public int getMaxResults ()

Returns the maximum number of search results that this JIRA instance is configured to allow, by reading it from the

jira-application.properties
file. If there is a problem reading the configured value, this method returns {@value #DEFAULT_MAX_RESULTS}.

Returns
  • an int containing the maximum number of search results to return