Interface SharedObjectsRetriever


public interface SharedObjectsRetriever
FOR INTERNAL USE ONLY - It allows rate components to retrieve shared objects (pricing macros, translation tables, etc.).
  • Method Details

    • getOwner

      String getOwner()
      Gets the owner of the shared object retriever.
      Returns:
      The owner of the shared object retriever
    • getAllCodes

      <T> List<String> getAllCodes(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
    • getAllCodes

      <T> List<String> getAllCodes(SharedObjectsRetriever.ObjectConstraints<T> objectConstraints)
      Gets all codes of shared objects compliant with the specified constraints. Suitable when objects can be uniquely identified by a string.
      Type Parameters:
      T - the Class of the shared object to retrieve
      Parameters:
      objectConstraints - the constraints the shared objects must comply to, to be returned.
      Returns:
      the requested codes
    • getAllObjectCodes

      <T> List<? extends Object> getAllObjectCodes(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(Class<T> objectClass, 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(Class<T> objectClass, String code1, 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
    • cleanup

      Cleans potential cached objects and returns a SharedObjectsRetriever
      Returns:
      a SharedObjectsRetriever