Package com.highdeal.pnr.hci
Class SearchSubscriptionOp
java.lang.Object
com.highdeal.pnr.hci.SearchSubscriptionOp
- All Implemented Interfaces:
MessageOperation,XMLMarshallable
This operation allows to retrieve subscriptions.
Subscriptions could be retrieved by two way.
- First, a
- The second way, which is deprecated , is to specify the subscription code or/and the offerCode or/and the subscriber or/and the subscription reference. As this research system is deprecated, favour the first usage.
If the
- First, a
subscriptionSearchFilter can be used.
The filter allows to describe the subscription wanted. - The second way, which is deprecated , is to specify the subscription code or/and the offerCode or/and the subscriber or/and the subscription reference. As this research system is deprecated, favour the first usage.
If the
subscriptionSearchFilter is not null,
only this filter is used in order to retrieve subscriptions (other attributes are forgotten).Operation Result
SearchSubscriptionResult Operation Failure Exceptions
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="searchSubscription">
<xs:complexType>
<xs:sequence>
<xs:element ref="subscriptionSearchFilter" minOccurs="0" maxOccurs="1"/>
<xs:element ref="additionalInformation" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="code" type="xs:string"/>
<xs:attribute name="offerCode" type="xs:string"/>
<xs:attribute name="reference" type="xs:string"/>
<xs:attribute name="fromCode" type="xs:string"/>
<xs:attribute name="maxSize" type="xs:integer"/>
</xs:complexType>
</xs:element>
Operation Availability
You can send this operation request in HCI messages to the following final target types of instances in the connected SAP CC system:
| Edition | Final Target Instances | |||||
| rater | updater | guider | bulkLoader | taxer | dispatcher | |
| charge | No | Yes | No | No | No | No |
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCharacterData(String cData) Adds character data to the content element.voidaddChild(String name, XMLMarshallable child) Adds a child to the object, thechildrepresenting the marshallable object which must be added to the element.Deprecated.Use the subscriptionSearchFilter instead.getCode()Deprecated.Use the subscriptionSearchFilter instead.Gets the subscription filter.Gets the code of the subscription from which subscriptions should be fetchedGets the maximum number of subscriptions to be retrieved for this operation.getName()Gets the name of the operation.Deprecated.Use the subscriptionSearchFilter instead.Deprecated.Use the subscriptionSearchFilter instead.voidmarshal(XMLOutputter output) Gives an XML representation of this object, including its children.voidDeprecated.Use the subscriptionSearchFilter instead.voidsetAttributes(XMLAttributes atts) Sets the attributes of the XML representation of the element being processed.voidDeprecated.Use the subscriptionSearchFilter instead.voidSets the subscription filter.voidsetFromCode(String code) Sets the from subscription code.voidsetMaxSize(BigDecimal max) Sets a maximum number of subscriptions.voidsetOfferCode(String oc) Deprecated.Use the subscriptionSearchFilter instead.voidsetReference(String reference) Deprecated.Use the subscriptionSearchFilter instead.
-
Field Details
-
OPERATION_NAME
- See Also:
-
-
Constructor Details
-
SearchSubscriptionOp
public SearchSubscriptionOp()Builds a search subscription operation.
-
-
Method Details
-
getFilter
Gets the subscription filter.- Returns:
- Returns the filter.
-
setFilter
Sets the subscription filter.- Parameters:
filter- The filter to set.
-
getCode
Deprecated.Use the subscriptionSearchFilter instead. Deprecated since former Transactive 3.2.Gets the code of the subscription- Returns:
- The code of the subscription
-
setCode
Deprecated.Use the subscriptionSearchFilter instead. Deprecated since former Transactive 3.2.Sets the code of the subscription- Parameters:
code- The code of the subscription
-
getReference
Deprecated.Use the subscriptionSearchFilter instead. Deprecated since former Transactive 3.2.Gets the reference of the subscription- Returns:
- The reference of the subscription
-
setReference
Deprecated.Use the subscriptionSearchFilter instead. Deprecated since former Transactive 3.2.Sets the reference of the subscription- Parameters:
reference- The reference of the subscription
-
getOfferCode
Deprecated.Use the subscriptionSearchFilter instead. Deprecated since former Transactive 3.2.Gets the offer code.- Returns:
- the offer code.
-
setOfferCode
Deprecated.Use the subscriptionSearchFilter instead. Deprecated since former Transactive 3.2.Sets the offer code- Parameters:
oc- The offer code
-
getAdditionalInfos
Deprecated.Use the subscriptionSearchFilter instead. Deprecated since former Transactive 3.2.Returns the list of AdditionalInfoModel.- Returns:
- the list of the associated additional
info.
-
setAdditionalInfos
Deprecated.Use the subscriptionSearchFilter instead. Deprecated since former Transactive 3.2.Sets the list of additional infos.- Parameters:
infos- the list of additionalinfo.
-
getFromCode
Gets the code of the subscription from which subscriptions should be fetched- Returns:
- the from subscription code
-
setFromCode
Sets the from subscription code. This method should be used with its companionsetMaxSize(BigDecimal).- Parameters:
code- the from subscription code.
-
getMaxSize
Gets the maximum number of subscriptions to be retrieved for this operation.- Returns:
- the maximum size.
-
setMaxSize
Sets a maximum number of subscriptions.- Parameters:
max- the maximum number of subscriptions to be retrieved for this operation.
-
getName
Gets the name of the operation.- Specified by:
getNamein interfaceMessageOperation- Returns:
- the name of the operation.
-
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:
name- 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
-