Class AbstractSearchSetResponse<T>

java.lang.Object
com.iland.core.web.rest.response.common.SetResponse<T>
com.iland.core.web.rest.response.vbo.AbstractSearchSetResponse<T>
Type Parameters:
T - the search hit type
All Implemented Interfaces:
Serializable, Iterable<T>
Direct Known Subclasses:
O365MailItemSearchSetResponse, O365SharePointItemSearchSetResponse

public abstract class AbstractSearchSetResponse<T> extends SetResponse<T>
Base class for paginated search result sets. Carries the search session uuid and the resolved offset/limit for "fetch until empty" paging (Veeam exposes no total count).
See Also:
  • Constructor Details

    • AbstractSearchSetResponse

      protected AbstractSearchSetResponse(String searchSessionUuid, int offset, int limit, Set<T> data)
      Create a search set response.
      Parameters:
      searchSessionUuid - the search session uuid
      offset - the result offset applied to this page
      limit - the result limit applied to this page
      data - the search results
  • Method Details

    • getSearchSessionUuid

      public String getSearchSessionUuid()
      Returns the search session uuid.
      Returns:
      the search session uuid
    • getOffset

      public int getOffset()
      Returns the result offset applied to this page.
      Returns:
      the offset
    • getLimit

      public int getLimit()
      Returns the result limit applied to this page.
      Returns:
      the limit
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class SetResponse<T>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class SetResponse<T>