Class ContentNameSearchResult
- java.lang.Object
-
- com.atlassian.confluence.search.actions.json.ContentNameSearchResult
-
- All Implemented Interfaces:
Serializable
public class ContentNameSearchResult extends Object implements Serializable
The json bean for performing a ContentNameSearch.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ContentNameSearchResult(String query)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMatchGroup(List<ContentNameMatch> matchGroup)
Add a grouped list of matches.List<List<ContentNameMatch>>
getContentNameMatches()
Each sub-list within the returned list will have results of the same 'category'.String
getQuery()
List<String>
getQueryTokens()
The individual tokens from the query String that these results are for.String
getStatusMessage()
A message indicating information about the search.int
getTotalSize()
void
setQueryTokens(List<QueryToken> queryTokens)
void
setStatusMessage(String statusMessage)
String
toString()
-
-
-
Constructor Detail
-
ContentNameSearchResult
public ContentNameSearchResult(String query)
-
-
Method Detail
-
getQueryTokens
public List<String> getQueryTokens()
The individual tokens from the query String that these results are for. You might use these tokens to highlight matches in the results when displaying them.- Returns:
- the individual tokens from the query String.
-
setQueryTokens
public void setQueryTokens(List<QueryToken> queryTokens)
-
getStatusMessage
public String getStatusMessage()
A message indicating information about the search. For example, if there were no results then this is explicitly stated by this status message. A client can assume that if there is a statusMessage then they should not expect any contentNameMatches.- Returns:
- a status message or null if there are no explicit messages.
-
setStatusMessage
public void setStatusMessage(String statusMessage)
-
addMatchGroup
public void addMatchGroup(List<ContentNameMatch> matchGroup)
Add a grouped list of matches.
-
getContentNameMatches
public List<List<ContentNameMatch>> getContentNameMatches()
Each sub-list within the returned list will have results of the same 'category'. The ordering of the className groupings within the top level list is defined by the defaultResultTemplate
.- Returns:
- a List of Lists of ContentNameMatch
- See Also:
ResultTemplate.DEFAULT
-
getTotalSize
public int getTotalSize()
-
getQuery
public String getQuery()
-
-