Package com.highdeal.bart.hci
Class DeleteCDROp
java.lang.Object
com.highdeal.bart.hci.DeleteCDROp
- All Implemented Interfaces:
com.highdeal.hci.MessageOperation,XMLMarshallable
This operation requests the BART Server system to delete a
CDR stored in the back-end BART Database.Operation Failure Exceptions
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="deleteCDR">
<xs:complexType>
<xs:attribute name="cdrID" type="xs:string"/>
<xs:attribute name="consumptionDate" type="xs:dateTime" use="optional"/>
<xs:attribute name="batchRatingGroupId" type="xs:integer" use="optional"/>
<xs:attribute name="mode" type="DeletionModeType"/>
</xs:complexType>
</xs:element><xs:simpleType name="DeletionModeType">
<xs:restriction base="xs:string">
<xs:enumeration value="delete"/>
<xs:enumeration value="deleteAndDeduplicate"/>
</xs:restriction>
</xs:simpleType>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDeletion mode of the SAP CC BART Server system that searches for duplicates after the deletion; This is the default deletion mode.static final intDeletion mode of the SAP CC BART Server system that does not search for duplicates after the deletion -
Constructor Summary
ConstructorsConstructorDescriptionDeletes a CDR in background BART Database; Default deletion mode is -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCharacterData(String cData) Adds character data to the content element.voidaddChild(String tagName, XMLMarshallable marsh) Adds a child to the object, thechildrepresenting the marshallable object which must be added to the element.Gets the batch rating group ID.
This information will be used in server side in order for better use of database partition.getCDRID()Gets the CDR unique IDGets the consumption date of the CDR; BART Server uses this information to organize the database partitions.intgetMode()Returns the deletion mode currently setDELETE_AND_DEDUPLICATE_MODE: If there are some duplicate CDRs of the deleted one, the one with the oldest acquisition date is marked as newDELETE_MODE: the CDR is deleted regardless of any existing duplicatesgetName()Gets the operation namevoidmarshal(XMLOutputter output) Gives an XML representation of this object, including its children.voidsetAttributes(XMLAttributes atts) Sets the attributes of the XML representation of the element being processed.voidsetBatchRatingGroupId(Integer batchRatingGroupId) Sets the batch rating group ID.
This information will be used in server side in order for better use of database partition.voidSets the CDR unique IDvoidsetConsumptionDate(Date consumptionDate) Sets the consumption date of the CDR; BART Server uses this information to organize the database partitions.voidsetMode(int deletionMode) Sets the execution mode of the deletion request; This deletion mode indicates whether a deduplicate process should be made after a CDR is deleted by the distant SAP CC system.
-
Field Details
-
DELETE_MODE
public static final int DELETE_MODEDeletion mode of the SAP CC BART Server system that does not search for duplicates after the deletion- See Also:
-
DELETE_AND_DEDUPLICATE_MODE
public static final int DELETE_AND_DEDUPLICATE_MODEDeletion mode of the SAP CC BART Server system that searches for duplicates after the deletion; This is the default deletion mode.- See Also:
-
-
Constructor Details
-
DeleteCDROp
public DeleteCDROp()Deletes a CDR in background BART Database; Default deletion mode is- See Also:
-
-
Method Details
-
getName
Gets the operation name- Specified by:
getNamein interfacecom.highdeal.hci.MessageOperation- Returns:
- The name of the operation: deleteCDR
-
getCDRID
Gets the CDR unique ID- Returns:
- The CDR unique identifier
-
setCDRID
Sets the CDR unique ID- Parameters:
id- The CDR unique identifier
-
setConsumptionDate
Sets the consumption date of the CDR; BART Server uses this information to organize the database partitions.- Parameters:
consumptionDate- The consumption date of the CDR to modify
-
getConsumptionDate
Gets the consumption date of the CDR; BART Server uses this information to organize the database partitions.- Returns:
- The consumption date of the CDR
-
setBatchRatingGroupId
Sets the batch rating group ID.
This information will be used in server side in order for better use of database partition.- Parameters:
batchRatingGroupId- The batch rating group identifier
-
getBatchRatingGroupId
Gets the batch rating group ID.
This information will be used in server side in order for better use of database partition.- Returns:
- batchRatingGroupId The batch rating group identifier
-
getMode
public int getMode()Returns the deletion mode currently setDELETE_AND_DEDUPLICATE_MODE: If there are some duplicate CDRs of the deleted one, the one with the oldest acquisition date is marked as newDELETE_MODE: the CDR is deleted regardless of any existing duplicates- Returns:
- The deletion mode
-
setMode
public void setMode(int deletionMode) Sets the execution mode of the deletion request; This deletion mode indicates whether a deduplicate process should be made after a CDR is deleted by the distant SAP CC system.DELETE_AND_DEDUPLICATE_MODE: If there are some duplicate CDRs of the deleted one, the one with the oldest acquisition date is marked as newDELETE_MODE: The CDR is deleted regardless of any existing duplicates- Parameters:
deletionMode- The deletion mode
-
setAttributes
Description copied from interface:XMLMarshallableSets the attributes of the XML representation of the element being processed.- Specified by:
setAttributesin interfaceXMLMarshallable- Parameters:
atts- TheXML attributesof the current element
-
addCharacterData
Description copied from interface:XMLMarshallableAdds character data to the content element.- Specified by:
addCharacterDatain interfaceXMLMarshallable- Parameters:
cData- The character data to be added
-
addChild
Description copied from interface:XMLMarshallableAdds a child to the object, thechildrepresenting the marshallable object which must be added to the element.- Specified by:
addChildin interfaceXMLMarshallable- Parameters:
tagName- The name of tag for the childmarsh- The child to be added
-
marshal
Description copied from interface:XMLMarshallableGives an XML representation of this object, including its children.- Specified by:
marshalin interfaceXMLMarshallable- Parameters:
output- TheXML outputto marshal the object into
-