Class ListResponse<T extends ScimObjectNode>

  • All Implemented Interfaces:
    com.fasterxml.jackson.core.TreeNode, com.fasterxml.jackson.databind.JsonSerializable, com.fasterxml.jackson.databind.node.JsonNodeCreator, ScimNode, Serializable, Iterable<com.fasterxml.jackson.databind.JsonNode>

    public class ListResponse<T extends ScimObjectNode>
    extends ScimResponse
    author Pascal Knueppel
    created at: 17.10.2019 - 22:04

    represents a list response
    See Also:
    Serialized Form
    • Constructor Detail

      • ListResponse

        public ListResponse()
      • ListResponse

        public ListResponse​(Class<T> type)
      • ListResponse

        public ListResponse​(String resourceJsonRepresentation)
      • ListResponse

        public ListResponse​(List<com.fasterxml.jackson.databind.JsonNode> listedResources,
                            Long totalResults,
                            Integer itemsPerPage,
                            Long startIndex)
    • Method Detail

      • getTotalResults

        public long getTotalResults()
        Non-negative integer. Specifies the total number of results matching the client query, e.g., 1000
      • setTotalResults

        public void setTotalResults​(Long totalResults)
        Non-negative integer. Specifies the total number of results matching the client query, e.g., 1000
      • getItemsPerPage

        public int getItemsPerPage()
        Non-negative integer. Specifies the total number of results matching the client query, e.g., 1000
      • setItemsPerPage

        public void setItemsPerPage​(Integer itemsPerPage)
        Non-negative integer. Specifies the number of query results returned in a query response page, e.g., 10.
      • getStartIndex

        public long getStartIndex()
        The 1-based index of the first result in the current set of query results, e.g., 1.
      • setStartIndex

        public void setStartIndex​(Long startIndex)
        The 1-based index of the first result in the current set of query results, e.g., 1.
      • getListedResources

        public List<T> getListedResources()
        the resources that have been extracted
      • setListedResources

        public void setListedResources​(List<com.fasterxml.jackson.databind.JsonNode> listedResources)
        the resources that have been extracted
      • getHttpStatus

        public int getHttpStatus()
        the http status code of the response
        Specified by:
        getHttpStatus in class ScimResponse