Package io.jans.scim.model.scim2
Class ListResponse
java.lang.Object
io.jans.scim.model.scim2.ListResponse
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
ConstructorsConstructorDescriptionDefault no arg constructor.ListResponse(int sindex, int ippage, int total) Constructs a list response with the arguments supplied, andschemasinitialized properly. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddResource(BaseScimResource resource) Adds the resource to the list of results of thisListResponse.intRetrieves a list with all resources contained in thisListResponse.intintvoidsetResources(List<BaseScimResource> resources) voidsetSchemas(List<String> schemas)
-
Constructor Details
-
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 Details
-
addResource
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
Retrieves a list with all resources contained in thisListResponse.- Returns:
- A List of BaseScimResource objects
-
setResources
-
getSchemas
-
setSchemas
-