Class ContentNameSearchResult
java.lang.Object
com.atlassian.confluence.search.actions.json.ContentNameSearchResult
- All Implemented Interfaces:
Serializable
The json bean for performing a ContentNameSearch.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMatchGroup
(List<ContentNameMatch> matchGroup) Add a grouped list of matches.Each sub-list within the returned list will have results of the same 'category'.getQuery()
The individual tokens from the query String that these results are for.A message indicating information about the search.int
void
setQueryTokens
(List<QueryToken> queryTokens) void
setStatusMessage
(String statusMessage) toString()
-
Constructor Details
-
ContentNameSearchResult
-
-
Method Details
-
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
-
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
-
addMatchGroup
Add a grouped list of matches. -
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:
-
getTotalSize
public int getTotalSize() -
getQuery
-
toString
-