Package io.jans.scim.model.scim2
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 Summary
Constructors Constructor Description ListResponse()Default no arg constructor.ListResponse(int sindex, int ippage, int total)Constructs a list response with the arguments supplied, andschemasinitialized properly.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddResource(BaseScimResource resource)Adds the resource to the list of results of thisListResponse.intgetItemsPerPage()List<BaseScimResource>getResources()Retrieves a list with all resources contained in thisListResponse.List<String>getSchemas()intgetStartIndex()intgetTotalResults()voidsetResources(List<BaseScimResource> resources)voidsetSchemas(List<String> schemas)
-
-
-
Constructor Detail
-
ListResponse
public ListResponse()
Default no arg constructor. It creates a instance ofListResponsewith theschemasproperly initialized.
-
ListResponse
public ListResponse(int sindex, int ippage, int total)Constructs a list response with the arguments supplied, andschemasinitialized properly.- Parameters:
sindex- Specifies a start indexippage- Specifies a number of items per pagetotal- Specifies a total number of results
-
-
Method Detail
-
addResource
public void addResource(BaseScimResource resource)
Adds the resource to the list of results of thisListResponse.- 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 thisListResponse.- Returns:
- A List of BaseScimResource objects
-
setResources
public void setResources(List<BaseScimResource> resources)
-
-