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>
com.fasterxml.jackson.databind.node.ObjectNode
de.captaingoldfish.scim.sdk.common.resources.base.ScimObjectNode
de.captaingoldfish.scim.sdk.common.resources.AbstractSchemasHolder
de.captaingoldfish.scim.sdk.common.response.ScimResponse
de.captaingoldfish.scim.sdk.common.response.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>
author Pascal Knueppel
created at: 25.10.2019 - 20:34
represents a simple bulk response
created at: 25.10.2019 - 20:34
represents a simple bulk response
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classoverride lombok builder with public constructorNested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonNode
com.fasterxml.jackson.databind.JsonNode.OverwriteModeNested classes/interfaces inherited from interface com.fasterxml.jackson.databind.JsonSerializable
com.fasterxml.jackson.databind.JsonSerializable.Base -
Field Summary
Fields inherited from class com.fasterxml.jackson.databind.node.ObjectNode
_childrenFields inherited from class com.fasterxml.jackson.databind.node.ContainerNode
_nodeFactory -
Constructor Summary
ConstructorsConstructorDescriptionBulkResponse(List<BulkResponseOperation> bulkResponseOperation, int httpStatus) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Defines operations within a bulk job.getByBulkId(String bulkId) tries to find a bulk response operation matching the given bulkId.getByBulkIds(Set<String> bulkIds) tries to find several bulk response operations matching the given bulkIds.getByResourceId(String resourceId) tries to find a bulk response operation by searching for a resource's id.getFailedOperations(HttpMethod httpMethod) intthe http status code of the responsegetSuccessfulOperations(HttpMethod httpMethod) voidsetBulkResponseOperations(List<BulkResponseOperation> bulkRequestOperations) Defines operations within a bulk job.Methods inherited from class de.captaingoldfish.scim.sdk.common.response.ScimResponse
buildJakartaResponse, buildResponse, getHttpHeaders, setETagMethods inherited from class de.captaingoldfish.scim.sdk.common.resources.AbstractSchemasHolder
addSchema, getSchemas, removeSchema, setSchemas, setSchemasMethods inherited from class de.captaingoldfish.scim.sdk.common.resources.base.ScimObjectNode
addAttribute, equals, getArrayAttribute, getBinaryAttribute, getBooleanAttribute, getDateTimeAttribute, getDoubleAttribute, getIntegerAttribute, getLongAttribute, getObjectAttribute, getSchemaAttribute, getSimpleArrayAttribute, getSimpleArrayAttribute, getSimpleArrayAttributeSet, getSimpleArrayAttributeSet, getStringAttribute, getStringAttribute, isEmpty, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeList, setDateTimeAttribute, setDateTimeAttribute, setDateTimeAttribute, setDateTimeAttribute, setStringAttributeList, setStringAttributeList, toPrettyString, toStringMethods inherited from class com.fasterxml.jackson.databind.node.ObjectNode
_at, _childrenEqual, _contentsToSerialize, _put, _withArray, _withArrayAddTailProperty, _withObject, _withObjectAddTailProperty, asToken, deepCopy, elements, equals, fieldNames, fields, findParent, findParents, findValue, findValues, findValuesAsText, forEachEntry, get, get, getNodeType, hashCode, isEmpty, isObject, optional, path, path, properties, propertyStream, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, putAll, putAll, putArray, putIfAbsent, putNull, putObject, putPOJO, putRawValue, remove, remove, removeAll, removeIf, replace, required, retain, retain, serialize, serializeFilteredContents, serializeWithType, set, setAll, setAll, size, values, valueStream, with, withArray, withArrayProperty, withObject, withObjectProperty, without, withoutMethods inherited from class com.fasterxml.jackson.databind.node.ContainerNode
arrayNode, arrayNode, asText, binaryNode, binaryNode, booleanNode, missingNode, nullNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, numberNode, objectNode, pojoNode, rawValueNode, removeNulls, textNodeMethods inherited from class com.fasterxml.jackson.databind.node.BaseJsonNode
_bigIntFromBigDec, _jsonPointerIfValid, _reportWrongNodeOperation, _reportWrongNodeType, _withXxxMayReplace, _withXxxVerifyReplace, findPath, numberType, required, traverse, traverse, withArray, withObjectMethods inherited from class com.fasterxml.jackson.databind.JsonNode
_reportRequiredViolation, _this, asBoolean, asBoolean, asDouble, asDouble, asInt, asInt, asLong, asLong, asOptional, asText, at, at, bigIntegerValue, binaryValue, booleanValue, canConvertToExactIntegral, canConvertToInt, canConvertToLong, decimalValue, doubleValue, findParents, findValues, findValuesAsText, floatValue, has, has, hasNonNull, hasNonNull, intValue, isArray, isBigDecimal, isBigInteger, isBinary, isBoolean, isContainerNode, isDouble, isFloat, isFloatingPointNumber, isInt, isIntegralNumber, isLong, isMissingNode, isNull, isNumber, isPojo, isShort, isTextual, isValueNode, iterator, longValue, numberValue, optional, require, requiredAt, requiredAt, requireNonNull, shortValue, textValue, withArray, withArray, withObject, withObjectMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface de.captaingoldfish.scim.sdk.common.resources.base.ScimNode
getAttributeDescription, getAttributeName, getCanonicalValues, getMutability, getReferenceTypes, getReturned, getScimNodeName, getUniqueness, getValueType, isCaseExact, isMultiValued, isRequired
-
Constructor Details
-
BulkResponse
-
BulkResponse
public BulkResponse()
-
-
Method Details
-
getHttpStatus
public int getHttpStatus()the http status code of the response- Specified by:
getHttpStatusin classScimResponse
-
getBulkResponseOperations
Defines operations within a bulk job. Each operation corresponds to a single HTTP request against a resource endpoint. REQUIRED. -
setBulkResponseOperations
Defines operations within a bulk job. Each operation corresponds to a single HTTP request against a resource endpoint. REQUIRED. -
getByBulkId
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
-
getByBulkIds
tries to find several bulk response operations matching the given bulkIds.- Parameters:
bulkIds- the bulk ids of the operations that should be extracted- Returns:
- the operations or an empty list if no operation did match the bulkIds
-
getByResourceId
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
- Returns:
- all operations that do have a bulkId
-
getOperationsWithoutBulkId
- Returns:
- all operations that do not have a bulkId
-
getSuccessfulOperations
- Returns:
- the operations from the bulk-response that were successful
-
getSuccessfulOperations
- Returns:
- the operations from the bulk-response that were successful and apply to the given http-method
-
getFailedOperations
- Returns:
- the operations from the bulk-response that have failed
-
getFailedOperations
- Returns:
- the operations from the bulk-response that were successful and apply to the given http-method
-
builder
-