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

java.lang.Object
  extended by com.atlassian.jira.web.action.issue.IssueSearchLimitsImpl
All Implemented Interfaces:
IssueSearchLimits

public class IssueSearchLimitsImpl
extends Object
implements 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
IssueSearchLimitsImpl(ApplicationProperties applicationProperties)
          Creates a new SearchLimits instance.
 
Method Summary
 int getMaxResults()
          Returns the maximum number of search results that this JIRA instance is configured to allow, by reading it from the
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IssueSearchLimitsImpl

public IssueSearchLimitsImpl(ApplicationProperties applicationProperties)
Creates a new SearchLimits instance.

Parameters:
applicationProperties - an ApplicationProperties
Method Detail

getMaxResults

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 .

Specified by:
getMaxResults in interface IssueSearchLimits
Returns:
an int containing the maximum number of search results to return


Copyright © 2002-2013 Atlassian. All Rights Reserved.