public class AcquisitionResult extends OperationResultAdapter
Java class represents the operation result replied by the connected SAP CC system in response to a batch acquisition operation request of a
chargeable item (CI) or a collection of chargeable items.
Your charging client triggers this operation by using the acquire method (synchronous communications) or
the AsyncBatchServiceClient.acquire(java.util.List, com.highdeal.cnd.message.AcquisitionListener) method
(asynchronous communications) that are available in the offline charging services that you
implement in your system landscape.
The operation result includes a collection of chargeable items. The operation result relates only to one chargeable item in this collection. The operation request may include a collection of chargeable items to acquire in batch mode. The operation result relates only to one chargeable item in this collection. A list of operation results are available in your client application for each acquisition operation request.
Consider the settings of the operation request that corresponds to an instance of acquisition parameters.
You design and develop your charging client to take into account the possible acquisition exception available in the operation results:
chargeable item was performed successfully, this exception is null.chargeable item failed, this exception contains details on the error.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
RESULT_NAME
The XML name of this operation result: "acquisitionResult"
|
| Constructor and Description |
|---|
AcquisitionResult()
Builds a
AcquisitionResult without exception. |
AcquisitionResult(AcquisitionException exception)
Builds a
AcquisitionResult with an exception. |
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element.
|
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
AcquisitionException |
getException()
Gets the
exception that describes the error encountered during the acquisition of the
chargeable item, if such an error occurred. |
java.lang.String |
getOperandReference()
Gets the code or the reference (if no code exists) that identifies the operand of the operation request;
If the operation is not auditable, the operand reference is
null. |
java.lang.String |
getTagName()
Gets the XML tag name of the
HCI operation result. |
boolean |
isSuccessful()
Returns whether the corresponding
chargeable item was acquired successfully. |
void |
marshalAttributes(XMLOutputter output)
Gives an XML representation of the attributes of an object.
|
void |
marshalChildren(XMLOutputter output)
Gives an XML representation of the child objects of an object.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
void |
setException(AcquisitionException exception)
SAP CC sets the
exception that describes the error encountered during the acquisition of the
chargeable item. |
marshalequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmarshalpublic static final java.lang.String RESULT_NAME
public AcquisitionResult()
AcquisitionResult without exception.public AcquisitionResult(AcquisitionException exception)
AcquisitionResult with an exception.exception - An exception which describes the error encountered during the acquisition of the
chargeable itempublic boolean isSuccessful()
chargeable item was acquired successfully.true if the corresponding chargeable item was acquired successfully,
false otherwisepublic AcquisitionException getException()
exception that describes the error encountered during the acquisition of the
chargeable item, if such an error occurred.exception in case an error occurred during the acquisition of the
chargeable item, null otherwisepublic void setException(AcquisitionException exception)
exception that describes the error encountered during the acquisition of the
chargeable item.exception - An exception describing the error which occurred during the acquisition of the
chargeable itempublic java.lang.String getOperandReference()
OperationResultnull.public java.lang.String getTagName()
OperationResultAdapterHCI operation result.getTagName in interface ITagNameProvidergetTagName in class OperationResultAdapterpublic void addCharacterData(java.lang.String cData)
XMLMarshallablecData - The character data to be addedpublic void addChild(java.lang.String tagName,
XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.tagName - The name of tag for the childchild - The child to be addedpublic void setAttributes(XMLAttributes atts)
XMLMarshallableatts - The XML attributes of the current elementpublic void marshalAttributes(XMLOutputter output)
IXMLMarshallableoutput - The XML output to marshal the object attributes intopublic void marshalChildren(XMLOutputter output)
IXMLMarshallableoutput - The XML output to marshal the child objects into