Class RepositorySearchResults

java.lang.Object
com.sas.lsaf.content.repository.RepositorySearchResults
All Implemented Interfaces:
Serializable

public class RepositorySearchResults extends Object implements 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 Details

    • RepositorySearchResults

      public RepositorySearchResults(Set<RepositoryItem> searchResults, boolean limitReached)
      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

      public Set<RepositoryItem> getSearchResults()
      Gets search results based on the SearchQuery specified in to RepositoryService.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()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object