Package com.highdeal.bart.hci
Class AcquireCDROp
java.lang.Object
com.highdeal.bart.hci.AcquireCDROp
- All Implemented Interfaces:
com.highdeal.hci.MessageOperation,XMLMarshallable
This operation allows you to trigger the acquisition of
CDRs as part of a started acquisition session.
It is one of the three operations of the acquisition process. See AcquisitionSessionModel for more information.Operation Failure Exceptions
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="acquireCDR">
<xs:complexType>
<xs:sequence>
<xs:element ref="cdr" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="sessionID" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a CDR to the list.voidaddCharacterData(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.Deprecated.Use getAcquisitionSessionID() insteadGets the acquisition session unique ID.getCDR()Gets the first element of CDR list.getCDRs()Gets the CDRs list.getName()Gets the name.voidmarshal(XMLOutputter output) Gives an XML representation of this object, including its children.voidSets the acquisition session; Use this method orsetAcquisitionSessionID(Long sessionID)to set the session these CDRs will be linked to.voidsetAcquisitionSessionID(Long sessionID) Sets the acquisition session unique ID; Use this method orsetAcquisitionSession(AcquisitionSessionModel asm)to set the session these CDRs will be linked to.voidsetAttributes(XMLAttributes atts) Sets the attributes of the XML representation of the element being processed.voidSets the CDR.voidSets the CDRs list.
-
Constructor Details
-
AcquireCDROp
public AcquireCDROp()Builds an empty operation.
-
-
Method Details
-
getName
Gets the name.- Specified by:
getNamein interfacecom.highdeal.hci.MessageOperation- Returns:
- The name of the operation: acquireCDR
-
getCDR
Gets the first element of CDR list.- Returns:
- The first
CDRcontained by the operation
-
getCDRs
Gets the CDRs list.- Returns:
- A vector of
CDR
-
setCDR
Sets the CDR.- Parameters:
cdr- TheCDR
-
setCDRs
Sets the CDRs list.- Parameters:
cdrs- A vector ofCDRs
-
addCDR
Adds a CDR to the list.- Parameters:
cdr- TheCDRto add
-
getAcquisitionSession
Deprecated.Use getAcquisitionSessionID() insteadGets the acquisition session.- Returns:
- The acquisition session
-
getAcquisitionSessionID
Gets the acquisition session unique ID.- Returns:
- The acquisition session unique ID
-
setAcquisitionSession
Sets the acquisition session; Use this method orsetAcquisitionSessionID(Long sessionID)to set the session these CDRs will be linked to.- Parameters:
asm- The acquisition session
-
setAcquisitionSessionID
Sets the acquisition session unique ID; Use this method orsetAcquisitionSession(AcquisitionSessionModel asm)to set the session these CDRs will be linked to.- Parameters:
sessionID- The acquisition session unique ID
-
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 childchild- 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
-