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, andschemas
initialized properly.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addResource(BaseScimResource resource)
Adds the resource to the list of results of thisListResponse
.int
getItemsPerPage()
List<BaseScimResource>
getResources()
Retrieves a list with all resources contained in thisListResponse
.List<String>
getSchemas()
int
getStartIndex()
int
getTotalResults()
void
setResources(List<BaseScimResource> resources)
void
setSchemas(List<String> schemas)
-
-
-
Constructor Detail
-
ListResponse
public ListResponse()
Default no arg constructor. It creates a instance ofListResponse
with theschemas
properly initialized.
-
ListResponse
public ListResponse(int sindex, int ippage, int total)
Constructs a list response with the arguments supplied, andschemas
initialized 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)
-
-