Class RecycleBinSearchResults

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

public class RecycleBinSearchResults extends Object implements Serializable
The class that represents the results of a recycle bin search based on a search query. RecycleBinItems in the results satisfy the search query that is specified in RecycleBinService.search(RecycleBinQuery). If the server cannot process all of the items due to server limitations, limitReached are set to True. If True, more items that satisfy the query might exist, but they cannot be returned.
Since:
2.1
See Also:
  • Constructor Details

    • RecycleBinSearchResults

      public RecycleBinSearchResults(Set<RecycleBinItem> searchResults, boolean limitReached)
      It is not intended or recommended that the consumer of this API construct these objects. They should only deal with the results returned by the API.
      Parameters:
      searchResults - The results of the search.
      limitReached - Indicates whether the query results exceed the maximum number of items that are allowed on the server.
  • Method Details

    • getRecycleBinSearchResults

      public Set<RecycleBinItem> getRecycleBinSearchResults()
      Gets the search results that are based on the RecycleBinQuery that is specified in RecycleBinService.search(RecycleBinQuery).
      Returns:
      The recycle bin items that match the query.
    • isLimitReached

      public boolean isLimitReached()
      Indicates whether the server processed all of the repository items that are based on the query. If True, the query results returned are what the search processed before it had to terminate processing. Therefore, more items that satisfy the query might exist, but they cannot be returned.
      Returns:
      True, if the server had to terminate the search, possibly before all items were found. Otherwise, false.
    • 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