public class BulkEnrollmentOperationResult extends Object
This result is returned as a result of the
ProvisioningServiceClient.runBulkEnrollmentOperation(BulkOperationMode, Collection)
.
The provisioning service provides general bulk result in the isSuccessful, and a individual error result for each enrolment in the bulk.
The following JSON is an example of the result from a bulk operation.
{
"isSuccessful":true,
"errors": [
{
"registrationId":"validRegistrationId1",
"errorCode":200,
"errorStatus":"Succeeded"
},
{
"registrationId":"validRegistrationId2",
"errorCode":200,
"errorStatus":"Succeeded"
}
]
}
Modifier | Constructor and Description |
---|---|
protected |
BulkEnrollmentOperationResult()
Empty constructor
|
|
BulkEnrollmentOperationResult(String json)
CONSTRUCTOR
|
Modifier and Type | Method and Description |
---|---|
List<BulkEnrollmentOperationError> |
getErrors()
Getter for the bulk of errors.
|
Boolean |
getSuccessful()
Getter for the Bulk Operation successful.
|
String |
toString()
Creates a pretty print JSON with the content of this class and subclasses.
|
public BulkEnrollmentOperationResult(String json)
This constructor creates an instance of the enrollment filling the class with the information provided in the JSON.
json
- the String
with the JSON received from the provisioning service.IllegalArgumentException
- If the provided JSON is null, empty, or invalid.protected BulkEnrollmentOperationResult()
Used only by the tools that will deserialize this class.
public Boolean getSuccessful()
Boolean
with the isSuccessful content. It cannot be null
.public List<BulkEnrollmentOperationError> getErrors()
BulkEnrollmentOperationError
with the errors content. It can be null
.Copyright © 2022. All rights reserved.