|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.confluence.search.contentnames.ResultTemplate
public class ResultTemplate
Class that allows clients to specify what categories of results to get back from any content name search. A default
configuration is available through DEFAULT
. To produce a custom configuration, use
addCategory(Category, int)
.
Field Summary | |
---|---|
static ResultTemplate |
DEFAULT
A default category configuration. |
Constructor Summary | |
---|---|
ResultTemplate()
|
Method Summary | |
---|---|
void |
addCategory(Category category,
int maxResultCount)
Add a category. |
boolean |
equals(Object o)
|
Set<Category> |
getCategories()
Returns the names of all categories defined in this configuration. |
int |
getMaximumResults()
|
int |
getMaxResultCount(Category category)
The maximum number of results for this category. |
int |
getNumberOfCategories()
Returns the number of categories defined in this configuration. |
boolean |
hasCategory(Category category)
Returns true if the specified category is defined, false otherwise. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final ResultTemplate DEFAULT
Constructor Detail |
---|
public ResultTemplate()
Method Detail |
---|
public void addCategory(Category category, int maxResultCount)
category
- name of categorymaxResultCount
- the maximum number of results for the specified categorypublic boolean hasCategory(Category category)
category
- name of category
public int getMaxResultCount(Category category)
category
- name of category
public int getNumberOfCategories()
public Set<Category> getCategories()
public int getMaximumResults()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |