|
SAP CC 3.0 BART API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.highdeal.bart.hci.CDRModel
public class CDRModel
A CDR is a Call Detail Record, an computer record from a telephone exchange.
The CDR model class is BART CDR representation. CDR models keep dialing data such as consumption date and user
accesses in database in order to rate them on SAP CC systems. CDRs are linked through all 3 BART processes:
acquisition process, consolidation process and rating process. Besides CDRs data, each CDR has a status that
evolved during BART processes.
CDR are created during the acquisition process.
On the client side, following CDR models fields should be fill with related dialing data:
AcquisitionSessionModel for information about the acquisition process.
ConsolidateCDRBulkOp) is needed to rate those CDRs.
RatingSessionModel for information about rating process.
| XML Schema Fragment |
<xs:element name="cdr">
<xs:complexType>
<xs:sequence>
<xs:element ref="ci" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
<xs:attribute name="cdrID" type="xs:string"/>
<xs:attribute name="batchRatingGroupId" type="xs:int"/>
<xs:attribute name="userID" type="xs:string" use="required"/>
<xs:attribute name="serviceID" type="xs:string" use="required"/>
<xs:attribute name="subscriptionID" type="xs:string"/>
<xs:attribute name="consumptionDate" type="xs:dateTime" use="required"/>
<xs:attribute name="status" type="cdrStatusType"/>
<xs:attribute name="acquisitionDate" type="xs:dateTime"/>
<xs:attribute name="acquisitionID" type="xs:string"/>
<xs:attribute name="ratingDate" type="xs:dateTime"/>
<xs:attribute name="ratingID" type="xs:string"/>
<xs:attribute name="errorCode" type="xs:string"/>
<xs:attribute name="errorDescription" type="xs:string"/>
<xs:attribute name="source" type="xs:string"/>
<xs:attribute name="magicNumber" type="xs:string"/>
<xs:attribute name="snapshotID" type="xs:int"/>
</xs:complexType>
</xs:element> |
<xs:simpleType name="cdrStatusType">
<xs:restriction base="xs:string">
<xs:enumeration value="new"/>
<xs:enumeration value="error"/>
<xs:enumeration value="rated"/>
<xs:enumeration value="duplicate"/>
<xs:enumeration value="ignored"/>
<xs:enumeration value="to_be_rerated"/>
<xs:enumeration value="no_provisioning"/>
<xs:enumeration value="online_subscription"/>
</xs:restriction>
</xs:simpleType> |
| Field Summary | |
|---|---|
static int |
BRGRP_NO_PROVISIONING
Reserved for internal used. |
static int |
BRGRP_ONLINE_SUBSCRIPTION
Reserved for internal used. |
static int |
NO_SUBSCRIPTION
Reserved for internal used. |
static int |
STATUS_DUPLICATE
This status indicates that the CDR is a duplicate. |
static int |
STATUS_ERROR
This status indicates that a attempt of rating has been done but a rating errors occurs. |
static int |
STATUS_IGNORED
This status indicates that the CDR will be ignored by the next rating session. |
static int |
STATUS_NEW
This status indicates that the CDR has been correctly acquired and consolidated. |
static int |
STATUS_NO_PROVISIONING
This status indicates that the CDR has been acquired but not consolidated. |
static int |
STATUS_ONLINE_SUBSCRIPTION
This status indicates that the CDR is linked to an online only subscription and not a offline one. |
static int |
STATUS_RATED
This status indicates that the CDR has been successfully rated. |
static int |
STATUS_RATING_IN_PROGRESS
Deprecated. - not use since v1.2 |
static int |
STATUS_TO_BE_RERATED
This status indicates that the CDR is selected to be rerated through SAP CC rerating operation. |
static java.lang.String |
TAG_NAME
XML tag name of this model. |
| Constructor Summary | |
|---|---|
CDRModel()
Builds an empty CDR model |
|
CDRModel(ChargeableItem item,
java.lang.String userID,
java.lang.String serviceID,
java.util.Date consumptionDate,
java.lang.String source)
Builds a CDR model with an chargeable item, source and access information. |
|
CDRModel(java.lang.Long OID,
ChargeableItem item,
java.lang.String userID,
java.lang.String serviceID,
java.lang.Integer batchRatingGroupId,
java.lang.Long subscriptionID,
java.lang.Short partitionID,
java.lang.Long chargeID,
java.util.Date consumptionDate,
int status)
Build a CDR model with rating information. |
|
CDRModel(java.lang.Long OID,
java.lang.Integer batchRatingGroupId,
ChargeableItem item,
java.lang.String userID,
java.lang.String serviceID,
java.lang.Long subscriptionID,
java.lang.Short partitionID,
java.lang.Long chargeID,
java.util.Date consumptionDate,
java.util.Date acquisitionDate,
java.util.Date ratingDate,
int errorCode,
java.lang.String errorDescription,
int status,
java.lang.Long acquisitionID,
java.lang.Long ratingID,
java.lang.String source,
java.lang.String magicNumber)
Builds a CDR model with full information. |
|
| Method Summary | |
|---|---|
AccessibleChargeType |
_getAccessibleChargeType()
|
java.lang.String |
_getDatabaseMagicNumber()
|
java.lang.Long |
_getOID()
Gets the CDR model identifier. |
int |
_getOriginalErrorCode()
|
java.lang.String |
_getOriginalErrorDescription()
|
int |
_getOriginalStatus()
|
void |
_setAccessibleChargeType(AccessibleChargeType accessibleChargeType)
|
void |
_setAcquisitionDate(java.util.Date acqDate)
Sets the acquisition date of the CDR model. |
void |
_setAcquisitionID(java.lang.Long acqID)
Sets the acquisition session identifier. |
void |
_setBatchRatingGroupId(java.lang.Integer bgrp)
Sets the batch rating group identifier |
void |
_setCompareKey(java.lang.Long compareKey)
|
void |
_setErrorCode(int ratingError)
Sets the error code. |
void |
_setErrorDescription(java.lang.String description)
Sets the error description. |
void |
_setMagicNumber(java.lang.String mNumber)
Sets the magic number of the CDR model. |
void |
_setOID(java.lang.Long oid)
Sets the CDR model identifier. |
void |
_setOriginalErrorCode(int ratingError)
|
void |
_setOriginalErrorDescription(java.lang.String description)
|
void |
_setRatingDate(java.util.Date ratDate)
Sets the CDR model rating date. |
void |
_setRatingID(java.lang.Long ratID)
Sets the rating session identifier. |
void |
_setSnapshotID(int snapshotID)
Sets the snapshot identifier used to rate event. |
void |
_setStatus(int s)
Sets the CDR model status. |
void |
_setSubscriptionID(java.lang.Long subID)
Sets the subscription identifier. |
void |
addCharacterData(java.lang.String cData)
|
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
|
protected java.lang.Long |
compareKey()
|
int |
compareTo(CDRModel that)
|
CDRModel |
duplicate()
Duplicates a CDR model. |
java.lang.String |
get32MagicNumber()
Gets the magic number of the CDR model. |
java.util.Date |
getAcquisitionDate()
Gets the acquisition date of the CDR model. |
java.lang.Long |
getAcquisitionID()
Gets the acquisition session identifier. |
java.lang.Integer |
getBatchRatingGroupId()
Gets the batch rating group identifier. |
ChargeableItem |
getChargeableItem()
Gets the chargeable item of the CDR model. |
java.lang.Long |
getChargeID()
Gets the charge identifier. |
java.util.Date |
getConsumptionDate()
Gets the consumption date of the CDR model. |
int |
getErrorCode()
Gets the error code. |
java.lang.String |
getErrorDescription()
Gets the error description. |
java.lang.String |
getMagicNumber()
Gets the magic number of the CDR model. |
java.lang.String |
getName()
Gets the CDR name. |
java.lang.Short |
getPartitionID()
Gets the partition identifier. |
java.util.Date |
getRatingDate()
Gets CDR model rating date. |
java.lang.Long |
getRatingID()
Gets the rating session identifier. |
java.lang.String |
getServiceID()
Gets the service Id. |
int |
getSnapshotID()
Gets the snapshot identifier used to rate event. |
java.lang.String |
getSource()
Gets the CDR model source. |
int |
getStatus()
Gets the CDR model status. |
java.lang.Long |
getSubscriptionID()
Gets the subscription identifier |
java.lang.String |
getUserID()
Gets the user Id. |
void |
marshal(XMLOutputter output)
|
void |
setAttributes(XMLAttributes atts)
|
void |
setCDRIgnored()
Sets the CDR to the status "ignored". |
void |
setCDRNew()
Sets the CDR to the status "new". |
void |
setChargeableItem(ChargeableItem item)
Sets the chargeable item of the CDR model. |
void |
setChargeID(java.lang.Long chargeID)
Sets the charge identifier. |
void |
setConsumptionDate(java.util.Date consumptionDate)
Sets the consumption date of the CDR model. |
void |
setName(java.lang.String name)
Sets CDR name by setting item name |
void |
setPartitionID(java.lang.Short partitionID)
Sets the partition identifier. |
void |
setServiceID(java.lang.String serviceID)
Sets the service Id. |
void |
setSource(java.lang.String source)
Sets the CDR model source. |
void |
setUserID(java.lang.String userID)
Sets the user Id. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int STATUS_NEW
public static final int STATUS_ERROR
public static final int STATUS_RATED
public static final int STATUS_DUPLICATE
public static final int STATUS_IGNORED
public static final int STATUS_TO_BE_RERATED
public static final int STATUS_NO_PROVISIONING
public static final int STATUS_ONLINE_SUBSCRIPTION
public static final int BRGRP_ONLINE_SUBSCRIPTION
public static final int BRGRP_NO_PROVISIONING
public static final int NO_SUBSCRIPTION
@Deprecated public static final int STATUS_RATING_IN_PROGRESS
public static final java.lang.String TAG_NAME
| Constructor Detail |
|---|
public CDRModel()
public CDRModel(ChargeableItem item,
java.lang.String userID,
java.lang.String serviceID,
java.util.Date consumptionDate,
java.lang.String source)
item - userID - serviceID - consumptionDate - source -
public CDRModel(java.lang.Long OID,
java.lang.Integer batchRatingGroupId,
ChargeableItem item,
java.lang.String userID,
java.lang.String serviceID,
java.lang.Long subscriptionID,
java.lang.Short partitionID,
java.lang.Long chargeID,
java.util.Date consumptionDate,
java.util.Date acquisitionDate,
java.util.Date ratingDate,
int errorCode,
java.lang.String errorDescription,
int status,
java.lang.Long acquisitionID,
java.lang.Long ratingID,
java.lang.String source,
java.lang.String magicNumber)
item - userID - serviceID - consumptionDate - source -
public CDRModel(java.lang.Long OID,
ChargeableItem item,
java.lang.String userID,
java.lang.String serviceID,
java.lang.Integer batchRatingGroupId,
java.lang.Long subscriptionID,
java.lang.Short partitionID,
java.lang.Long chargeID,
java.util.Date consumptionDate,
int status)
item - userID - serviceID - consumptionDate - | Method Detail |
|---|
public CDRModel duplicate()
public void setCDRIgnored()
public void setCDRNew()
public java.util.Date getAcquisitionDate()
public void _setAcquisitionDate(java.util.Date acqDate)
acqDate - the acquisition date.public java.lang.Long getAcquisitionID()
public void _setAcquisitionID(java.lang.Long acqID)
acqID - the acquisition session identifierpublic java.lang.Long getRatingID()
public void _setRatingID(java.lang.Long ratID)
ratID - the rating session identifierpublic java.util.Date getConsumptionDate()
public void setConsumptionDate(java.util.Date consumptionDate)
consumptionDate - the consumption date of the CDR modelpublic java.lang.Integer getBatchRatingGroupId()
public void _setBatchRatingGroupId(java.lang.Integer bgrp)
bgrp - the batch rating group identifierpublic java.lang.String getMagicNumber()
public java.lang.String get32MagicNumber()
public java.lang.String _getDatabaseMagicNumber()
public void _setMagicNumber(java.lang.String mNumber)
mNumber - the magic numberpublic java.lang.String getName()
public void setName(java.lang.String name)
name - new CDR namecom.highdeal.pnr.hci.ChargeableItem#setName(String name)public ChargeableItem getChargeableItem()
public void setChargeableItem(ChargeableItem item)
item - the chargeable itempublic java.lang.Long _getOID()
public void _setOID(java.lang.Long oid)
oid - the CDR model identifierpublic java.util.Date getRatingDate()
public void _setRatingDate(java.util.Date ratDate)
ratDate - the rating datepublic int getErrorCode()
public int _getOriginalErrorCode()
public void _setErrorCode(int ratingError)
ratingError - the rating errorpublic void _setOriginalErrorCode(int ratingError)
public java.lang.String getErrorDescription()
public java.lang.String _getOriginalErrorDescription()
public void _setErrorDescription(java.lang.String description)
description - the error description.public void _setOriginalErrorDescription(java.lang.String description)
public java.lang.String getServiceID()
public void setServiceID(java.lang.String serviceID)
serviceID - the service Idpublic java.lang.String getSource()
public void setSource(java.lang.String source)
source - the CDR model sourcepublic int getStatus()
public void _setStatus(int s)
s - the statuspublic int _getOriginalStatus()
public java.lang.String getUserID()
public void setUserID(java.lang.String userID)
userID - the user Idpublic java.lang.Long getSubscriptionID()
public void _setSubscriptionID(java.lang.Long subID)
subID - the subscription identifierpublic java.lang.Short getPartitionID()
public void setPartitionID(java.lang.Short partitionID)
partitionID - the partition identifierpublic void _setSnapshotID(int snapshotID)
snapshotID - the snapshot identifier that uses format YYYYMMDDpublic int getSnapshotID()
public java.lang.Long getChargeID()
public void setChargeID(java.lang.Long chargeID)
chargeID - the charge identifierpublic java.lang.String toString()
toString in class java.lang.Objectpublic void setAttributes(XMLAttributes atts)
public void addChild(java.lang.String tagName,
XMLMarshallable child)
public void addCharacterData(java.lang.String cData)
public void marshal(XMLOutputter output)
public int compareTo(CDRModel that)
compareTo in interface java.lang.Comparable<CDRModel>protected java.lang.Long compareKey()
public void _setCompareKey(java.lang.Long compareKey)
public void _setAccessibleChargeType(AccessibleChargeType accessibleChargeType)
public AccessibleChargeType _getAccessibleChargeType()
|
SAP CC 3.0 BART API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||