Interface PagedCollectionResource<T,​C extends BaseCollectionRepresentation<T>>

    • Method Detail

      • get

        C get​(QueryParam... queryParams)
        throws SDKException
        The method returns the first page.
        Parameters:
        queryParams - query parameters
        Returns:
        BaseCollectionRepresentation type of BaseCollectionRepresentation.
        Throws:
        SDKException - if the query failed
      • get

        C get​(int pageSize,
              QueryParam... queryParams)
        throws SDKException
        The method returns the first page.
        Parameters:
        pageSize - - page size
        queryParams - query parameters
        Returns:
        BaseCollectionRepresentation type of BaseCollectionRepresentation.
        Throws:
        SDKException - if the query failed
      • getPage

        C getPage​(BaseCollectionRepresentation collectionRepresentation,
                  int pageNumber)
           throws SDKException
        The method returns the specified page number.
        Parameters:
        collectionRepresentation - It uses the BaseCollectionRepresentation.getSelf() URL to find the collection.
        pageNumber - - page number
        Returns:
        BaseCollectionRepresentation type of BaseCollectionRepresentation.
        Throws:
        SDKException - if the query failed
      • getPage

        C getPage​(BaseCollectionRepresentation collectionRepresentation,
                  int pageNumber,
                  int pageSize)
           throws SDKException
        The method returns the specified page number.
        Parameters:
        collectionRepresentation - It uses the BaseCollectionRepresentation.getSelf() URL to find the collection.
        pageNumber - - page number
        pageSize - - page size
        Returns:
        BaseCollectionRepresentation type of BaseCollectionRepresentation.
        Throws:
        SDKException - if the query failed
      • getNextPage

        C getNextPage​(BaseCollectionRepresentation collectionRepresentation)
               throws SDKException
        The method returns the next page from the collection.
        Parameters:
        collectionRepresentation - It uses the BaseCollectionRepresentation.getNext() URL to find the collection.
        Returns:
        collectionRepresentation type of BaseCollectionRepresentation.
        Throws:
        SDKException - if the query failed
      • getPreviousPage

        C getPreviousPage​(BaseCollectionRepresentation collectionRepresentation)
                   throws SDKException
        This method returns the previous page in the collection.
        Parameters:
        collectionRepresentation - - It uses the BaseCollectionRepresentation.getPrevious() URL to find the collection.
        Returns:
        BaseCollectionRepresentation type of BaseCollectionRepresentation.
        Throws:
        SDKException - if the query failed