public class DeleteCDROp
extends java.lang.Object
implements com.highdeal.hci.MessageOperation
CDR stored in the back-end BART Database.InvalidAcquisitionExceptionThe 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>
| Modifier and Type | Field and Description |
|---|---|
static int |
DELETE_AND_DEDUPLICATE_MODE
Deletion mode of the SAP CC BART Server system that searches for duplicates after the deletion; This is the default deletion mode.
|
static int |
DELETE_MODE
Deletion mode of the SAP CC BART Server system that does not search for duplicates after the deletion
|
| Constructor and Description |
|---|
DeleteCDROp()
Deletes a CDR in background BART Database; Default deletion mode is
|
| 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 marsh)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
java.lang.Integer |
getBatchRatingGroupId()
Gets the batch rating group ID.
This information will be used in server side in order for better use of database partition. |
java.lang.Long |
getCDRID()
Gets the CDR unique ID
|
java.util.Date |
getConsumptionDate()
Gets the consumption date of the CDR;
BART Server uses this information to organize the database partitions.
|
int |
getMode()
Returns the deletion mode currently set
DELETE_AND_DEDUPLICATE_MODE: If there are some duplicate CDRs of the deleted one, the one with the oldest
acquisition date is marked as new
DELETE_MODE: the CDR is deleted regardless of any existing duplicates |
java.lang.String |
getName()
Gets the operation name
|
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
void |
setBatchRatingGroupId(java.lang.Integer batchRatingGroupId)
Sets the batch rating group ID.
This information will be used in server side in order for better use of database partition. |
void |
setCDRID(java.lang.Long id)
Sets the CDR unique ID
|
void |
setConsumptionDate(java.util.Date consumptionDate)
Sets the consumption date of the CDR;
BART Server uses this information to organize the database partitions.
|
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.
|
public static final int DELETE_MODE
public static final int DELETE_AND_DEDUPLICATE_MODE
public DeleteCDROp()
DELETE_AND_DEDUPLICATE_MODEpublic java.lang.String getName()
getName in interface com.highdeal.hci.MessageOperationpublic java.lang.Long getCDRID()
public void setCDRID(java.lang.Long id)
id - The CDR unique identifierpublic void setConsumptionDate(java.util.Date consumptionDate)
consumptionDate - The consumption date of the CDR to modifypublic java.util.Date getConsumptionDate()
public void setBatchRatingGroupId(java.lang.Integer batchRatingGroupId)
batchRatingGroupId - The batch rating group identifierpublic java.lang.Integer getBatchRatingGroupId()
public int getMode()
DELETE_AND_DEDUPLICATE_MODE: If there are some duplicate CDRs of the deleted one, the one with the oldest
acquisition date is marked as new
DELETE_MODE: the CDR is deleted regardless of any existing duplicatespublic void setMode(int deletionMode)
DELETE_AND_DEDUPLICATE_MODE: If there are some duplicate CDRs of
the deleted one, the one with the oldest acquisition date is
marked as new
DELETE_MODE: The CDR is deleted regardless of any existing
duplicatesdeletionMode - The deletion modepublic void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void addCharacterData(java.lang.String cData)
XMLMarshallableaddCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void addChild(java.lang.String tagName,
XMLMarshallable marsh)
XMLMarshallablechild representing
the marshallable object which must be added to the element.addChild in interface XMLMarshallabletagName - The name of tag for the childmarsh - The child to be addedpublic void marshal(XMLOutputter output)
XMLMarshallablemarshal in interface XMLMarshallableoutput - The XML output to marshal the object into