Package 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.).
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface -
Method Summary
Modifier and TypeMethodDescriptioncleanup()Cleans potential cached objects and returns a SharedObjectsRetrievergetAllCodes(SharedObjectsRetriever.ObjectConstraints<T> objectConstraints) Gets all codes of shared objects compliant with the specified constraints.getAllCodes(Class<T> objectClass) Gets all codes of shared objects.getAllObjectCodes(Class<T> objectClass) Gets all codes of shared objects.getOwner()Gets the owner of the shared object retriever.<T> TgetSpecifiedObject(Class<T> objectClass, String code, boolean schemaOnly) Gets a specified object.<T> TgetSpecifiedObject(Class<T> objectClass, String code1, String code2, boolean schemaOnly) Gets a specified object.
-
Method Details
-
getOwner
String getOwner()Gets the owner of the shared object retriever.- Returns:
- The owner of the shared object retriever
-
getAllCodes
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
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
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
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
-
cleanup
SharedObjectsRetriever cleanup()Cleans potential cached objects and returns a SharedObjectsRetriever- Returns:
- a SharedObjectsRetriever
-