Class ListResponse

java.lang.Object
io.jans.scim.model.scim2.ListResponse

public class ListResponse extends Object
This class models the contents of a search response. See section 3.4.2 RFC 7644.
Author:
Rahat Ali Date: 05.08.2015
  • Constructor Details

    • ListResponse

      public ListResponse()
      Default no arg constructor. It creates a instance of ListResponse with the schemas properly initialized.
    • ListResponse

      public ListResponse(int sindex, int ippage, int total)
      Constructs a list response with the arguments supplied, and schemas initialized properly.
      Parameters:
      sindex - Specifies a start index
      ippage - Specifies a number of items per page
      total - Specifies a total number of results
  • Method Details

    • addResource

      public void addResource(BaseScimResource resource)
      Adds the resource to the list of results of this ListResponse.
      Parameters:
      resource - A SCIM resource
    • getTotalResults

      public int getTotalResults()
    • getStartIndex

      public int getStartIndex()
    • getItemsPerPage

      public int getItemsPerPage()
    • getResources

      public List<BaseScimResource> getResources()
      Retrieves a list with all resources contained in this ListResponse.
      Returns:
      A List of BaseScimResource objects
    • setResources

      public void setResources(List<BaseScimResource> resources)
    • getSchemas

      public List<String> getSchemas()
    • setSchemas

      public void setSchemas(List<String> schemas)