com.highdeal.pnr.hci
Interface SharedObjectsRetriever


public interface SharedObjectsRetriever

FOR INTERNAL USE ONLY - It allows rate components to retrieve shared objects (pricing macros, translation tables, etc.).


Method Summary
<T> java.util.List<java.lang.String>
getAllCodes(java.lang.Class<T> objectClass)
          Gets all codes of shared objects.
<T> java.util.List<? extends java.lang.Object>
getAllObjectCodes(java.lang.Class<T> objectClass)
          Gets all codes of shared objects.
 java.lang.String getOwner()
          Gets the owner of the shared object retriever.
<T> T
getSpecifiedObject(java.lang.Class<T> objectClass, java.lang.String code, boolean schemaOnly)
          Gets a specified object.
<T> T
getSpecifiedObject(java.lang.Class<T> objectClass, java.lang.String code1, java.lang.String code2, boolean schemaOnly)
          Gets a specified object.
 

Method Detail

getOwner

java.lang.String getOwner()
Gets the owner of the shared object retriever.

Returns:
The owner of the shared object retriever

getAllCodes

<T> java.util.List<java.lang.String> getAllCodes(java.lang.Class<T> objectClass)
Gets all codes of shared objects. Suitable when objects can be uniquely identified by a string.

Type Parameters:
T - the Class of the shared object to retrieve.
Parameters:
objectClass - the Class of the object to retrieve.
Returns:
The requested codes

getAllObjectCodes

<T> java.util.List<? extends java.lang.Object> getAllObjectCodes(java.lang.Class<T> objectClass)
Gets all codes of shared objects. Suitable when objects need more than a single String to be identified.

Type Parameters:
T - the Class of the shared object to retrieve.
Parameters:
objectClass - the Class of the object to retrieve.
Returns:
The requested Object Codes

getSpecifiedObject

<T> T getSpecifiedObject(java.lang.Class<T> objectClass,
                         java.lang.String code,
                         boolean schemaOnly)
Gets a specified object.

Type Parameters:
T - the Class of the object to retrieve.
Parameters:
objectClass - the Class of the object to retrieve.
code - the code of the object to retrieve.
schemaOnly - True if only the schema (no instances) must be retrieved.
Returns:
The requested tier table

getSpecifiedObject

<T> T getSpecifiedObject(java.lang.Class<T> objectClass,
                         java.lang.String code1,
                         java.lang.String code2,
                         boolean schemaOnly)
Gets a specified object.

Type Parameters:
T - the Class of the object to retrieve.
Parameters:
objectClass - the Class of the object to retrieve.
code1 - the 1st part of the code of the object to retrieve.
code2 - the 2nd part of the code of the object to retrieve.
schemaOnly - True if only the schema (no instances) must be retrieved.
Returns:
The requested tier table

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