Interface DeleteResponse
- All Superinterfaces:
OsidCapsule
DeleteResponses are returned from bulk delete operations.
Batch-oriented methods are executed on a best effort basis unless wrapped
in Transaction that supports an atomic commit() . Batch
methods may be invoked outside of a Transaction where some of the
items supplied may fail.
While bulk delete operations may accept a list of Ids to be
deleted. In this case, there is one DeleteResponse returned for
every Id supplied but not necessarily in the same order. The
reference Id in the response may be the primary Id of a
given Id , and may differ.
Some bulk delete operations may operate on a set of criteria where a
list of Ids are not supplied. In this case, there is one
DeleteResponse generated for every Id that matches the criteria.
-
Method Summary
Modifier and TypeMethodDescriptionGets the referenceIdof the object on which this item within the delete operation operated.Gets the error message for an unsuccessful item within the delete operation.booleanTests if this item within the delete operation was successful.
-
Method Details
-
getDeletedId
Id getDeletedId()Gets the referenceIdof the object on which this item within the delete operation operated.- Returns:
- the reference object
Id - Compliance:
mandatory- This method must be implemented.
-
isSuccessful
boolean isSuccessful()Tests if this item within the delete operation was successful.- Returns:
trueif the delete operation was successful,falseif it was not successful- Compliance:
mandatory- This method must be implemented.
-
getErrorMessage
DisplayText getErrorMessage()Gets the error message for an unsuccessful item within the delete operation.- Returns:
- the message
- Throws:
IllegalStateException-isSuccessful()istrue- Compliance:
mandatory- This method must be implemented.
-