Class BulkResponseGetOperation

  • 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 BulkResponseGetOperation
    extends ScimObjectNode
    this class will represent a bulk-get response node that contains the data of a specific resource together with its children. This data structure can be transitively nested and thus become very large if not used with care
    Since:
    29.08.2022
    Author:
    Pascal Knueppel
    See Also:
    Serialized Form
    • Method Detail

      • getResourceId

        public String getResourceId()
        the id of the resource that is referenced
      • setResourceId

        public void setResourceId​(String resourceId)
        the id of the resource that is referenced
      • getNodePath

        public String getNodePath()
        the node path of this resource that references the position of this resource within the parent. If null this resource is the one requested within the bulk-request
      • setNodePath

        public void setNodePath​(String nodePath)
        the node path of this resource that references the position of this resource within the parent. If null this resource is the one requested within the bulk-request
      • getStatus

        public Integer getStatus()
        the http response status for this resource. It might happen that a transitive resource cannot be retrieved because of missing access rights and in such a case the response object for this resource would contain a 403 status code
      • setStatus

        public void setStatus​(Integer status)
        the http response status for this resource. It might happen that a transitive resource cannot be retrieved because of missing access rights and in such a case the response object for this resource would contain a 403 status code
      • getResourceType

        public String getResourceType()
        the name of the resource type that is referenced with this resource. In case that a group is retrieved and this node represents one of its members it might be either a User or a Group and this field will help determining which type of resource is represented
      • setResourceType

        public void setResourceType​(String resourceType)
        the name of the resource type that is referenced with this resource. In case that a group is retrieved and this node represents one of its members it might be either a User or a Group and this field will help determining which type of resource is represented
      • getResource

        public <T extends ResourceNode> T getResource​(Class<T> type)
        Returns:
        the resource that represents this node
      • getErrorResponse

        public ErrorResponse getErrorResponse()
        if the http status code is unequal to 200 this method can be called to get the error response
      • setResource

        public <T extends ScimResponse> void setResource​(T resource)
        the resource that represents this node