Class BulkResponse

  • 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:
    Serialized Form
    • Constructor Detail

      • BulkResponse

        public BulkResponse()
    • Method Detail

      • 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
      • 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