Class SailpointObjectMapper<T>

  • Type Parameters:
    T - The mapper output type

    public class SailpointObjectMapper<T>
    extends ObjectMapper<T>
    An extension of ObjectMapper to handle SailPointObject types
    • Method Detail

      • fromConfiguration

        public static <T> T fromConfiguration​(sailpoint.api.SailPointContext context,
                                              String configName,
                                              Class<T> type)
                                       throws sailpoint.tools.GeneralException,
                                              ObjectMapper.ObjectMapperException
        Returns the object mapped from the given Configuration
        Type Parameters:
        T - The output type
        Parameters:
        context - The context to use to get the Configuration object
        configName - The configuration name
        type - the output type
        Returns:
        An instance of the mapped configuration object
        Throws:
        sailpoint.tools.GeneralException - if any failures occur
        ObjectMapper.ObjectMapperException
      • unwrap

        public static sailpoint.tools.GeneralException unwrap​(ObjectMapper.ObjectMapperException e)
        Transform the object mapper exception into a GeneralException as needed
        Parameters:
        e - The exception to unwrap or wrap
        Returns:
        an appropriate GeneralException
      • decode

        public T decode​(sailpoint.object.Custom configuration)
                 throws sailpoint.tools.GeneralException,
                        ObjectMapper.ObjectMapperException
        Decodes the given Custom object into an instance of the mapped type.
        Parameters:
        configuration - The Custom object to convert
        Returns:
        An object of the expected type
        Throws:
        sailpoint.tools.GeneralException - if any failure occur
        ObjectMapper.ObjectMapperException
      • decode

        public T decode​(sailpoint.object.Custom configuration,
                        boolean cache)
                 throws sailpoint.tools.GeneralException,
                        ObjectMapper.ObjectMapperException
        Decodes the given Custom object into an instance of the mapped type.
        Parameters:
        configuration - The Custom object to convert
        cache - If true, the cached value will be returned if possible
        Returns:
        An object of the expected type
        Throws:
        sailpoint.tools.GeneralException - if any failure occur
        ObjectMapper.ObjectMapperException
      • decode

        public T decode​(sailpoint.object.Configuration configuration)
                 throws sailpoint.tools.GeneralException,
                        ObjectMapper.ObjectMapperException
        Decodes the given Configuration object into an instance of the mapped type.
        Parameters:
        configuration - The Configuration object to convert
        Returns:
        An object of the expected type
        Throws:
        sailpoint.tools.GeneralException - if any failure occur
        ObjectMapper.ObjectMapperException
      • decode

        public T decode​(sailpoint.object.Configuration configuration,
                        boolean cache)
                 throws sailpoint.tools.GeneralException,
                        ObjectMapper.ObjectMapperException
        Decodes the given Configuration object into an instance of the mapped type.
        Parameters:
        configuration - The Configuration object to convert
        cache - If true, the cached value will be returned if possible
        Returns:
        An object of the expected type
        Throws:
        sailpoint.tools.GeneralException - if any failure occur
        ObjectMapper.ObjectMapperException