Package com.identityworksllc.iiq.common
Class Mapper
- java.lang.Object
-
- com.identityworksllc.iiq.common.Mapper
-
-
Constructor Summary
Constructors Constructor Description Mapper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,Object>objectToMap(Object anything)A static version of the utility implemented viaMappablestatic Map<String,Object>pathMapToModelMap(Map<String,Object> input)Transforms a Map with path-type keys (e.g., ‘link.attributes[a]’) to a model map that has nested keys and values.static Map<String,Object>toMap(sailpoint.api.SailPointContext context, Object spo)Transforms the given SailPointObject into a Map.static Map<String,Object>toMap(sailpoint.api.SailPointContext context, sailpoint.object.Identity identity)static Map<String,Object>toMap(sailpoint.object.Application application)static Map<String,Object>toMap(sailpoint.object.AttributeAssignment aa)static Map<String,Object>toMap(sailpoint.object.Link link)static Map<String,Object>toMap(sailpoint.object.Link owner, sailpoint.object.ManagedAttribute ma)static Map<String,Object>toMap(sailpoint.object.ManagedAttribute ma)static Map<String,Object>toMap(sailpoint.object.ProvisioningPlan plan)static Map<String,Object>toMap(sailpoint.object.ProvisioningPlan.AbstractRequest request)static Map<String,Object>toMap(sailpoint.object.RoleAssignment ra)static Map<String,Object>toMap(sailpoint.object.RoleDetection rd)
-
-
-
Constructor Detail
-
Mapper
public Mapper()
-
-
Method Detail
-
objectToMap
public static Map<String,Object> objectToMap(Object anything) throws sailpoint.tools.GeneralException
A static version of the utility implemented viaMappable- 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,Object> pathMapToModelMap(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,Object> toMap(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 attributesspo- The input object- Returns:
- The resulting Map-ified object
- Throws:
sailpoint.tools.GeneralException- if any failures occur
-
toMap
public static Map<String,Object> toMap(sailpoint.object.ProvisioningPlan.AbstractRequest request)
-
toMap
public static Map<String,Object> toMap(sailpoint.api.SailPointContext context, sailpoint.object.Identity identity) throws sailpoint.tools.GeneralException
- Throws:
sailpoint.tools.GeneralException
-
toMap
public static Map<String,Object> toMap(sailpoint.object.Link owner, sailpoint.object.ManagedAttribute ma)
-
-