Class Ref


  • public final class Ref
    extends Object
    Constructs IIQ Reference objects using a standardized API
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static List<String> REFERENCE_PROPS
      A constant that can be passed to context.search() to retrieve an object for use here
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static sailpoint.object.Reference of​(Class<? extends sailpoint.object.SailPointObject> type, Object[] parameters)
      Retrieves a dehydrated object given the type and parameters
      static sailpoint.object.Reference of​(Class<? extends sailpoint.object.SailPointObject> type, String id)
      Retrieves a dehydrated object given the type and ID
      static sailpoint.object.Reference of​(sailpoint.object.SailPointObject object)
      Retrieves a dehydrated reference from the object
      static <T extends sailpoint.object.SailPointObject>
      Function<?,​sailpoint.object.Reference>
      transformer​(Class<T> targetClass)
      Creates a type transforming function that will take any object that this class recognizes and convert it into a Reference of the appropriate type.
    • Field Detail

      • REFERENCE_PROPS

        public static final List<String> REFERENCE_PROPS
        A constant that can be passed to context.search() to retrieve an object for use here
    • Method Detail

      • of

        public static sailpoint.object.Reference of​(Class<? extends sailpoint.object.SailPointObject> type,
                                                    String id)
        Retrieves a dehydrated object given the type and ID
        Parameters:
        type - The type of the object to create a reference to
        id - The object ID
        Returns:
        A Reference to that object
      • of

        public static sailpoint.object.Reference of​(Class<? extends sailpoint.object.SailPointObject> type,
                                                    Object[] parameters)
        Retrieves a dehydrated object given the type and parameters
        Parameters:
        type - The type of the object to create a reference to
        parameters - The result of a PersistenceManager.search(Class, QueryOptions, List) call with the ‘id’ in the first position
        Returns:
        A Reference to that object
      • of

        public static sailpoint.object.Reference of​(sailpoint.object.SailPointObject object)
        Retrieves a dehydrated reference from the object
        Parameters:
        object - The object to dehydrate
        Returns:
        The dehydrated reference
      • transformer

        public static <T extends sailpoint.object.SailPointObject> Function<?,​sailpoint.object.Reference> transformer​(Class<T> targetClass)
        Creates a type transforming function that will take any object that this class recognizes and convert it into a Reference of the appropriate type.

        This could be used, for example, as the second parameter passed to TransformingIterator’s constructor.

        Type Parameters:
        T - The type of the target class
        Parameters:
        targetClass - The target class to retrieve a reference for
        Returns:
        a function converting the input to a reference