Package com.sas.lsaf.content.repository
Class RepositorySearchResults
java.lang.Object
com.sas.lsaf.content.repository.RepositorySearchResults
- All Implemented Interfaces:
Serializable
The class that represents the results of a repository search based on a search query. The
RepositoryItems
satisfy the search query specified in RepositoryService.search(SearchQuery).
However, items in the recycle bin and items for which the current user does not have read access are not returned.
If the server cannot process all of the items due to server limitations, the limitReached is set to True. If
true, more items might exist that satisfy the query but they cannot be returned.- Since:
- 2.1
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRepositorySearchResults(Set<RepositoryItem> searchResults, boolean limitReached) It is not intended or recommended that the consumer of this API construct these objects. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets search results based on theSearchQueryspecified in toRepositoryService.search(SearchQuery).inthashCode()booleanIndicates whether the server processed all of the repository items based as a result of the query.toString()
-
Constructor Details
-
RepositorySearchResults
It is not intended or recommended that the consumer of this API construct these objects. They should only deal with the user descriptors returned by the API.- Parameters:
searchResults- The results of a repository search.limitReached- Indicates whether the query results exceed the maximum number of items allowed on the server.
-
-
Method Details
-
getSearchResults
Gets search results based on theSearchQueryspecified in toRepositoryService.search(SearchQuery).- Returns:
- The repository items that match the query.
-
isLimitReached
public boolean isLimitReached()Indicates whether the server processed all of the repository items based as a result of the query. If True, this means that the query results returned are what the search processed before it had to terminate processing. Therefore, more items might exist that satisfy the query but they cannot be returned.- Returns:
- True, if the server can process all of the items based on the query, False otherwise.
-
hashCode
public int hashCode() -
equals
-
toString
-