|
||||||||||
| 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(java.lang.Object o)
|
java.util.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 java.util.Set<Category> getCategories()
public int getMaximumResults()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||