com.highdeal.pnr.hci
Class SearchSubscriptionOp

java.lang.Object
  extended by com.highdeal.pnr.hci.SearchSubscriptionOp
All Implemented Interfaces:
MessageOperation, XMLMarshallable

public class SearchSubscriptionOp
extends java.lang.Object
implements MessageOperation

This operation allows to retrieve subscriptions. Subscriptions could be retrieved by two way.
- 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:

EditionFinal Target Instances
raterupdaterguiderbulkLoadertaxerdispatcher
chargeNoYesNoNoNoNo

Field Summary
static java.lang.String OPERATION_NAME
           
 
Constructor Summary
SearchSubscriptionOp()
          Builds a search subscription operation.
 
Method Summary
 void addCharacterData(java.lang.String cData)
          Adds character data to the content element.
 void addChild(java.lang.String name, XMLMarshallable child)
          Adds a child to the object, the child representing the marshallable object which must be added to the element.
 java.util.Vector<AdditionalInfoModel> getAdditionalInfos()
          Deprecated. Use the subscriptionSearchFilter instead. Deprecated since former Transactive 3.2.
 java.lang.String getCode()
          Deprecated. Use the subscriptionSearchFilter instead. Deprecated since former Transactive 3.2.
 SubscriptionSearchFilterModel getFilter()
          Gets the subscription filter.
 java.lang.String getFromCode()
          Gets the code of the subscription from which subscriptions should be fetched
 java.math.BigDecimal getMaxSize()
          Gets the maximum number of subscriptions to be retrieved for this operation.
 java.lang.String getName()
          Gets the name of the operation.
 java.lang.String getOfferCode()
          Deprecated. Use the subscriptionSearchFilter instead. Deprecated since former Transactive 3.2.
 java.lang.String getReference()
          Deprecated. Use the subscriptionSearchFilter instead. Deprecated since former Transactive 3.2.
 void marshal(XMLOutputter output)
          Gives an XML representation of this object, including its children.
 void setAdditionalInfos(java.util.Vector<AdditionalInfoModel> infos)
          Deprecated. Use the subscriptionSearchFilter instead. Deprecated since former Transactive 3.2.
 void setAttributes(XMLAttributes atts)
          Sets the attributes of the XML representation of the element being processed.
 void setCode(java.lang.String code)
          Deprecated. Use the subscriptionSearchFilter instead. Deprecated since former Transactive 3.2.
 void setFilter(SubscriptionSearchFilterModel filter)
          Sets the subscription filter.
 void setFromCode(java.lang.String code)
          Sets the from subscription code.
 void setMaxSize(java.math.BigDecimal max)
          Sets a maximum number of subscriptions.
 void setOfferCode(java.lang.String oc)
          Deprecated. Use the subscriptionSearchFilter instead. Deprecated since former Transactive 3.2.
 void setReference(java.lang.String reference)
          Deprecated. Use the subscriptionSearchFilter instead. Deprecated since former Transactive 3.2.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPERATION_NAME

public static final java.lang.String OPERATION_NAME
See Also:
Constant Field Values
Constructor Detail

SearchSubscriptionOp

public SearchSubscriptionOp()
Builds a search subscription operation.

Method Detail

getFilter

public SubscriptionSearchFilterModel getFilter()
Gets the subscription filter.

Returns:
Returns the filter.

setFilter

public void setFilter(SubscriptionSearchFilterModel filter)
Sets the subscription filter.

Parameters:
filter - The filter to set.

getCode

public java.lang.String 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

public void setCode(java.lang.String code)
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

public java.lang.String 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

public void setReference(java.lang.String reference)
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

public java.lang.String getOfferCode()
Deprecated. Use the subscriptionSearchFilter instead. Deprecated since former Transactive 3.2.

Gets the offer code.

Returns:
the offer code.

setOfferCode

public void setOfferCode(java.lang.String oc)
Deprecated. Use the subscriptionSearchFilter instead. Deprecated since former Transactive 3.2.

Sets the offer code

Parameters:
oc - The offer code

getAdditionalInfos

public java.util.Vector<AdditionalInfoModel> 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

public void setAdditionalInfos(java.util.Vector<AdditionalInfoModel> infos)
Deprecated. Use the subscriptionSearchFilter instead. Deprecated since former Transactive 3.2.

Sets the list of additional infos.

Parameters:
infos - the list of additional info.

getFromCode

public java.lang.String getFromCode()
Gets the code of the subscription from which subscriptions should be fetched

Returns:
the from subscription code

setFromCode

public void setFromCode(java.lang.String code)
Sets the from subscription code. This method should be used with its companion setMaxSize(BigDecimal).

Parameters:
code - the from subscription code.

getMaxSize

public java.math.BigDecimal getMaxSize()
Gets the maximum number of subscriptions to be retrieved for this operation.

Returns:
the maximum size.

setMaxSize

public void setMaxSize(java.math.BigDecimal max)
Sets a maximum number of subscriptions.

Parameters:
max - the maximum number of subscriptions to be retrieved for this operation.

getName

public java.lang.String getName()
Gets the name of the operation.

Specified by:
getName in interface MessageOperation
Returns:
the name of the operation.

setAttributes

public void setAttributes(XMLAttributes atts)
Description copied from interface: XMLMarshallable
Sets the attributes of the XML representation of the element being processed.

Specified by:
setAttributes in interface XMLMarshallable
Parameters:
atts - The XML attributes of the current element

addCharacterData

public void addCharacterData(java.lang.String cData)
Description copied from interface: XMLMarshallable
Adds character data to the content element.

Specified by:
addCharacterData in interface XMLMarshallable
Parameters:
cData - The character data to be added

addChild

public void addChild(java.lang.String name,
                     XMLMarshallable child)
Description copied from interface: XMLMarshallable
Adds a child to the object, the child representing the marshallable object which must be added to the element.

Specified by:
addChild in interface XMLMarshallable
Parameters:
name - The name of tag for the child
child - The child to be added

marshal

public void marshal(XMLOutputter output)
Description copied from interface: XMLMarshallable
Gives an XML representation of this object, including its children.

Specified by:
marshal in interface XMLMarshallable
Parameters:
output - The XML output to marshal the object into

Document Published: October 2015 (SAP CC 4.0 SP10 and Later)