Class 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 Detail

      • 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 Detail

      • 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
      • setSchemas

        public void setSchemas​(List<String> schemas)