Class IssueSearchLimitsImpl
java.lang.Object
com.atlassian.jira.web.action.issue.IssueSearchLimitsImpl
- All Implemented Interfaces:
IssueSearchLimits
Utility methods that allow you to get the limits that are imposed by JIRA configuration properties.
- Since:
- v4.3
-
Field Summary
Fields inherited from interface com.atlassian.jira.web.action.issue.IssueSearchLimits
DEFAULT_MAX_RESULTS
-
Constructor Summary
ConstructorsConstructorDescriptionIssueSearchLimitsImpl
(ApplicationProperties applicationProperties) Creates a new SearchLimits instance. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the maximum number of search results that this JIRA instance is configured to allow, by reading it from the
-
Constructor Details
-
IssueSearchLimitsImpl
Creates a new SearchLimits instance.- Parameters:
applicationProperties
- an ApplicationProperties
-
-
Method Details
-
getMaxResults
public int getMaxResults()Returns the maximum number of search results that this JIRA instance is configured to allow, by reading it from thejira-application.properties
file. If there is a problem reading the configured value, this method returns 1000.- Specified by:
getMaxResults
in interfaceIssueSearchLimits
- Returns:
- an int containing the maximum number of search results to return
-