Class BulkResponse

java.lang.Object
com.fasterxml.jackson.databind.JsonSerializable.Base
com.fasterxml.jackson.databind.JsonNode
com.fasterxml.jackson.databind.node.BaseJsonNode
com.fasterxml.jackson.databind.node.ContainerNode<com.fasterxml.jackson.databind.node.ObjectNode>
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 BulkResponse extends ScimResponse
author Pascal Knueppel
created at: 25.10.2019 - 20:34

represents a simple bulk response
See Also:
  • Constructor Details

    • BulkResponse

      public BulkResponse(List<BulkResponseOperation> bulkResponseOperation, int httpStatus)
    • BulkResponse

      public BulkResponse()
  • Method Details

    • getHttpStatus

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

      public List<BulkResponseOperation> getBulkResponseOperations()
      Defines operations within a bulk job. Each operation corresponds to a single HTTP request against a resource endpoint. REQUIRED.
    • setBulkResponseOperations

      public void setBulkResponseOperations(List<BulkResponseOperation> bulkRequestOperations)
      Defines operations within a bulk job. Each operation corresponds to a single HTTP request against a resource endpoint. REQUIRED.
    • getByBulkId

      public Optional<BulkResponseOperation> getByBulkId(String bulkId)
      tries to find a bulk response operation matching the given bulkId. It is also possible to get a bulk request with a null-bulkId. Be sure to use that only if you are certain that only a single entry has a null-bulkId
      Parameters:
      bulkId - the bulk id of the operation that should be extracted (null allowed)
      Returns:
      the operation or an empty if no operation did match the bulkId
    • getByResourceId

      public Optional<BulkResponseOperation> getByResourceId(String resourceId)
      tries to find a bulk response operation by searching for a resource's id. This can be used on update/patch or delete requests
      Parameters:
      resourceId - the resources id of the operation that should be extracted
      Returns:
      the operation or an empty if no operation did match the resourceId
    • getOperationsWithBulkId

      public List<BulkResponseOperation> getOperationsWithBulkId()
      Returns:
      all operations that do have a bulkId
    • getOperationsWithoutBulkId

      public List<BulkResponseOperation> getOperationsWithoutBulkId()
      Returns:
      all operations that do not have a bulkId
    • builder

      public static BulkResponse.BulkResponseBuilder builder()