Package com.highdeal.pnr.hci
Class SubscriptionSnapshotHolderModel
java.lang.Object
com.highdeal.pnr.hci.SubscriptionSnapshotHolderModel
- All Implemented Interfaces:
XMLMarshallable
This class represents either the root
subscription or a sub-subscription inside a
counter snapshot, and contains the list of included counters.
It contains the following information:
- The code of the subscription (for root subscriptions), or the code of the associated offer condition (for sub-subscriptions).
- The last snapshot date of the subscription (only for root subscriptions).
- The maximum number of days in the past (corresponds to the difference between the date of the counter snapshot and the consumption date of the oldest late CDR rated on the counter snapshot) (only for root subscriptions).
- The last export date of the subscription (only for root subscriptions) - Deprecated since version 2.0 of SAP CC
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="subscriptionSnapshotHolder">
<xs:complexType>
<xs:sequence>
<xs:element ref="counter" minOccurs="0" maxOccurs="unbounded" />
<xs:element ref="subscriptionSnapshotHolder" minOccurs="0" maxOccurs="unbounded" />
<xs:element ref="chargeSnapshotHolder" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute name="code" type="xs:string" />
<xs:attribute name="lastSnapshotDate" type="xs:dateTime" />
<xs:attribute name="lastSnapshotDays" type="xs:int" />
<xs:attribute name="lastExportDate" type="xs:dateTime" />
</xs:complexType>
</xs:element>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBuilds an emptySubscriptionSnapshotHolderModelobjectSubscriptionSnapshotHolderModel(String subscriptionCode) Builds aSubscriptionSnapshotHolderModelobject with asubscriptioncode -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCharacterData(String cData) Adds character data to the content element.voidaddChargeSnapshotHolder(ChargeSnapshotHolderModel chargeSnapshotHolder) Adds acharge snapshot holderto the subscription snapshot holdervoidaddChild(String tagName, XMLMarshallable child) Adds a child to the object, thechildrepresenting the marshallable object which must be added to the element.voidaddCounter(CounterModel counter) Add acounterto the snapshot holdervoidaddSubscriptionSnapshotHolder(SubscriptionSnapshotHolderModel subscriptionsSnapshotHolder) Adds asubscription snapshot holderto the subscription snapshot holderGets the list ofcharge snapshot holders(for charge activations) contained in the snapshot holder.getCode()Gets the code of the associatedsubscription(for root subscriptions), or the code of the associatedoffer condition(for sub-subscriptions).Gets the list ofcounterscontained in the snapshot holder.Deprecated.Deprecated since version 2.0 of SAP CCGets the last snapshot date of the subscription (only for root subscriptions).intGets the maximum number of days in the past (corresponds to the difference between the date of the counter snapshot and the consumption date of the oldest late CDR rated on the counter snapshot) (only for root subscriptions).Gets the list ofsubscription snapshot holders(for sub-subscriptions) contained in the snapshot holder.voidmarshal(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.voidsetChargesSnapshotHolders(List<ChargeSnapshotHolderModel> chargesSnapshotHolders) Sets the list ofcharge snapshot holders(for charge activations) contained in the snapshot holder.voidSets the code of the associatedsubscription(for root subscriptions), or the code of the associatedoffer condition(for sub-subscriptions).voidsetCounters(List<CounterModel> counters) Sets the list ofcounterscontained in the snapshot holder.voidsetLastExportDate(Date lastExportDate) Deprecated.Deprecated since version 2.0 of SAP CCvoidsetLastSnapshotDate(Date lastSnapshotDate) Sets the last snapshot date of the subscription (only for root subscriptions).voidsetLastSnapshotDays(int lastSnapshotDays) Sets the maximum number of days in the past (corresponds to the difference between the date of the counter snapshot and the consumption date of the oldest late CDR rated on the counter snapshot) (only for root subscriptions).voidsetSubscriptionsSnapshotHolders(List<SubscriptionSnapshotHolderModel> subscriptionsSnapshotHolders) Sets the list ofsubscription snapshot holders(for sub-subscriptions) contained in the snapshot holder.
-
Field Details
-
MODEL_NAME
The name of the object.- See Also:
-
-
Constructor Details
-
SubscriptionSnapshotHolderModel
public SubscriptionSnapshotHolderModel()Builds an emptySubscriptionSnapshotHolderModelobject -
SubscriptionSnapshotHolderModel
Builds aSubscriptionSnapshotHolderModelobject with asubscriptioncode- Parameters:
subscriptionCode- The code of asubscription
-
-
Method Details
-
getCode
Gets the code of the associatedsubscription(for root subscriptions), or the code of the associatedoffer condition(for sub-subscriptions).- Returns:
- the code of the associated
subscription(for root subscriptions), or the code of the associatedoffer condition(for sub-subscriptions)
-
setCode
Sets the code of the associatedsubscription(for root subscriptions), or the code of the associatedoffer condition(for sub-subscriptions).- Parameters:
code- the code of the associatedsubscription(for root subscriptions), or the code of the associatedoffer condition(for sub-subscriptions)
-
getLastSnapshotDate
Gets the last snapshot date of the subscription (only for root subscriptions).- Returns:
- the last snapshot date of the subscription
-
setLastSnapshotDate
Sets the last snapshot date of the subscription (only for root subscriptions).- Parameters:
lastSnapshotDate- the last snapshot date of the subscription
-
getLastSnapshotDays
public int getLastSnapshotDays()Gets the maximum number of days in the past (corresponds to the difference between the date of the counter snapshot and the consumption date of the oldest late CDR rated on the counter snapshot) (only for root subscriptions).- Returns:
- the maximum number of days in the past for the subscription snapshot holder
-
setLastSnapshotDays
public void setLastSnapshotDays(int lastSnapshotDays) Sets the maximum number of days in the past (corresponds to the difference between the date of the counter snapshot and the consumption date of the oldest late CDR rated on the counter snapshot) (only for root subscriptions).- Parameters:
lastSnapshotDays- the maximum number of days in the past for the subscription snapshot holder
-
getLastExportDate
Deprecated.Deprecated since version 2.0 of SAP CCGets the last export date of the associated subscription- Returns:
- the last export date of the associated subscription
-
setLastExportDate
Deprecated.Deprecated since version 2.0 of SAP CCSets the last export date of the associated subscription- Parameters:
lastExportDate- the last export date of the associated subscription
-
getCounters
Gets the list ofcounterscontained in the snapshot holder.- Returns:
- the list of
counterscontained in the snapshot holder
-
setCounters
Sets the list ofcounterscontained in the snapshot holder.- Parameters:
counters- the list ofcounterscontained in the snapshot holder
-
addCounter
Add acounterto the snapshot holder- Parameters:
counter- thecounterto add to the snasphot holder
-
getSubscriptionsSnapshotHolders
Gets the list ofsubscription snapshot holders(for sub-subscriptions) contained in the snapshot holder.- Returns:
- the list of
subscription snapshot holderscontained in the snapshot holder.
-
setSubscriptionsSnapshotHolders
public void setSubscriptionsSnapshotHolders(List<SubscriptionSnapshotHolderModel> subscriptionsSnapshotHolders) Sets the list ofsubscription snapshot holders(for sub-subscriptions) contained in the snapshot holder.- Parameters:
subscriptionsSnapshotHolders- the list ofsubscription snapshot holderscontained in the snapshot holder.
-
addSubscriptionSnapshotHolder
public void addSubscriptionSnapshotHolder(SubscriptionSnapshotHolderModel subscriptionsSnapshotHolder) Adds asubscription snapshot holderto the subscription snapshot holder- Parameters:
subscriptionsSnapshotHolder- thesubscription snapshot holderto add
-
getChargesSnapshotHolders
Gets the list ofcharge snapshot holders(for charge activations) contained in the snapshot holder.- Returns:
- the list of
charge snapshot holderscontained in the snapshot holder
-
setChargesSnapshotHolders
Sets the list ofcharge snapshot holders(for charge activations) contained in the snapshot holder.- Parameters:
chargesSnapshotHolders- the list ofcharge snapshot holderscontained in the snapshot holder
-
addChargeSnapshotHolder
Adds acharge snapshot holderto the subscription snapshot holder- Parameters:
chargeSnapshotHolder- thecharge snapshot holderto add
-
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 childchild- The child to be added
-
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
-
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
-