Class Mapper


  • public class Mapper
    extends Object
    Implements conversion utilities to extract a Map equivalent to a number of common IIQ objects.

    These can be passed as arguments to a Rule, for example, or used via MapMatcher.

    • Constructor Detail

    • Method Detail

      • objectToMap

        public static Map<String,​ObjectobjectToMap​(Object anything)
                                                    throws sailpoint.tools.GeneralException
        A static version of the utility implemented via Mappable
        Parameters:
        anything - Whatever object is needed
        Returns:
        The object converted to a Map
        Throws:
        sailpoint.tools.GeneralException - if anything fails
      • pathMapToModelMap

        public static Map<String,​ObjectpathMapToModelMap​(Map<String,​Object> input)
                                                          throws sailpoint.tools.GeneralException
        Transforms a Map with path-type keys (e.g., ‘link.attributes[a]’) to a model map that has nested keys and values.
        Parameters:
        input - The input map
        Returns:
        The output map
        Throws:
        sailpoint.tools.GeneralException - if any failures occur
      • toMap

        public static Map<String,​ObjecttoMap​(sailpoint.api.SailPointContext context,
                                                     Object spo)
                                              throws sailpoint.tools.GeneralException
        Transforms the given SailPointObject into a Map.

        If the object is one of the other types handled by this class, forwards to that method. Otherwise, returns the attributes.

        Parameters:
        context - The context, potentially used to load attributes
        spo - The input object
        Returns:
        The resulting Map-ified object
        Throws:
        sailpoint.tools.GeneralException - if any failures occur
      • toMap

        public static Map<String,​ObjecttoMap​(sailpoint.object.ProvisioningPlan.AbstractRequest request)
      • toMap

        public static Map<String,​ObjecttoMap​(sailpoint.api.SailPointContext context,
                                                     sailpoint.object.Identity identity)
                                              throws sailpoint.tools.GeneralException
        Throws:
        sailpoint.tools.GeneralException
      • toMap

        public static Map<String,​ObjecttoMap​(sailpoint.object.Link owner,
                                                     sailpoint.object.ManagedAttribute ma)