Package com.highdeal.pnr.hci
Class SubscriberData
java.lang.Object
com.highdeal.hci.HCIModelAdapter
com.highdeal.pnr.hci.SubscriberData
- All Implemented Interfaces:
ITagNameProvider,IXMLMarshallable,XMLMarshallable
This class represents a container for master data related to subscribers (end customers of a service provider) stored in an SAP CC system;
It can be used to
export or import this customer master data for data transport or data migration purpose.
A subscriber data includes:
- A list of
subscriber accounts - A list of
subscriptions - A list of
accesses - A list of
subscription counter snapshots
Note
Some of these lists may be empty.
- See Also:
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="subscriberData">
<xs:complexType>
<xs:sequence>
<xs:element ref="subscriberAccount" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="subscription" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="access" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="subscriptionCounterSnapshot" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCharacterData(String cData) Adds character data to the content element.voidaddChild(String tagName, XMLMarshallable child) Adds a child to the object, thechildrepresenting the marshallable object which must be added to the element.Gets the list ofaccessescontained in the object.Gets the list ofsubscription counter snapshotscontained in the object.Gets the list ofsubscriber accountscontained in the object.Gets the list ofsubscriptionscontained in the object.Gets the XML tag name of the HCI model.voidmarshalAttributes(XMLOutputter output) Gives an XML representation of the attributes of an object.voidmarshalChildren(XMLOutputter output) Gives an XML representation of the child objects of an object.voidsetAccessList(List<AccessModel> accessList) Sets the list ofaccessescontained in this object.voidsetAttributes(XMLAttributes atts) Sets the attributes of the XML representation of the element being processed.voidsetCounterSnapshotList(List<SubscriptionCounterSnapshotModel> counterSnapshotList) Sets the list ofsubscription counter snapshotscontained in the object.voidsetSubscriberAccountList(List<SubscriberAccountModel> subscriberAccountList) Sets the list ofsubscriber accountscontained in the object.voidsetSubscriptionList(List<SubscriptionModel> subscriptionList) Sets the list ofsubscriptionscontained in the object.Methods inherited from class com.highdeal.hci.HCIModelAdapter
marshal
-
Field Details
-
TAG_NAME
The XML name of the data model: subscriberData- See Also:
-
-
Constructor Details
-
SubscriberData
public SubscriberData()Builds an emptysubscriber dataobject.
-
-
Method Details
-
getTagName
Description copied from interface:ITagNameProviderGets the XML tag name of the HCI model.- Returns:
- The XML tag name
-
setAttributes
Description copied from interface:XMLMarshallableSets the attributes of the XML representation of the element being processed.- Parameters:
atts- TheXML attributesof the current element
-
addChild
Description copied from interface:XMLMarshallableAdds a child to the object, thechildrepresenting the marshallable object which must be added to the element.- Parameters:
tagName- The name of tag for the childchild- The child to be added
-
addCharacterData
Description copied from interface:XMLMarshallableAdds character data to the content element.- Parameters:
cData- The character data to be added
-
marshalAttributes
Description copied from interface:IXMLMarshallableGives an XML representation of the attributes of an object.- Parameters:
output- TheXML outputto marshal the object attributes into
-
marshalChildren
Description copied from interface:IXMLMarshallableGives an XML representation of the child objects of an object.- Parameters:
output- TheXML outputto marshal the child objects into
-
getSubscriberAccountList
Gets the list ofsubscriber accountscontained in the object.- Returns:
- The list of
subscriber accountscontained in the object
-
setSubscriberAccountList
Sets the list ofsubscriber accountscontained in the object.- Parameters:
subscriberAccountList- The list ofsubscriber accountsto set in the object
-
getSubscriptionList
Gets the list ofsubscriptionscontained in the object.- Returns:
- The list of
subscriptionscontained in the object
-
setSubscriptionList
Sets the list ofsubscriptionscontained in the object.- Parameters:
subscriptionList- The list ofsubscriptionsto set in the object
-
getAccessList
Gets the list ofaccessescontained in the object.- Returns:
- The list of
accessescontained in the object
-
setAccessList
Sets the list ofaccessescontained in this object.- Parameters:
accessList- The list ofaccessesto set in this object
-
getCounterSnapshotList
Gets the list ofsubscription counter snapshotscontained in the object.- Returns:
- The list of
subscription counter snapshotscontained in the object
-
setCounterSnapshotList
Sets the list ofsubscription counter snapshotscontained in the object.- Parameters:
counterSnapshotList- The list ofsubscription counter snapshotsto set in the object
-