Package com.identityworksllc.iiq.common
Class ManagedAttributeUtilities
- java.lang.Object
-
- com.identityworksllc.iiq.common.AbstractBaseUtility
-
- com.identityworksllc.iiq.common.ManagedAttributeUtilities
-
public class ManagedAttributeUtilities extends AbstractBaseUtility
Utilities for ManagedAttributes / entitlement objects
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ManagedAttributeUtilities.BuildForm
Namespace for arguments that can be passed tobuildForm(Map, Option...)
.
-
Field Summary
-
Fields inherited from class com.identityworksllc.iiq.common.AbstractBaseUtility
context, debug, log
-
-
Constructor Summary
Constructors Constructor Description ManagedAttributeUtilities(sailpoint.api.SailPointContext context)
Constructs a new utility object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description sailpoint.object.Form
buildForm(Map<String,Object> map, ManagedAttributeUtilities.BuildForm.Option... options)
Builds a form for the given ManagedAttribute based on the input Map.Map<String,Object>
getCreateManagedAttributeMap(String applicationName, String attribute)
Creates a new Map to pass intobuildForm(Map, BuildForm.Option...)
Map<String,Object>
getUpdateManagedAttributeMap(sailpoint.object.ManagedAttribute ma)
Creates a new Map to pass intobuildForm(Map, BuildForm.Option...)
-
Methods inherited from class com.identityworksllc.iiq.common.AbstractBaseUtility
inject, isDebug, setDebug
-
-
-
-
Constructor Detail
-
ManagedAttributeUtilities
public ManagedAttributeUtilities(sailpoint.api.SailPointContext context)
Constructs a new utility object- Parameters:
context
- The IIQ context
-
-
Method Detail
-
buildForm
public sailpoint.object.Form buildForm(Map<String,Object> map, ManagedAttributeUtilities.BuildForm.Option... options) throws sailpoint.tools.GeneralException
Builds a form for the given ManagedAttribute based on the input Map.It will be derived from the existing Update or Create forms on the relevant Application.
The input must be a
Map
containing metadata under the keysys
, similar to the Maps produced for Form Models byIdentityTransformer
. Thesys
map should contain these keys:nativeIdentity
: The native ID of the entitlement, if we are updating and not creating itapplication
: The application nametype
: The schema name (e.g., group); will be used to look up the existing form
You can build these maps with
getCreateManagedAttributeMap(String, String)
andgetUpdateManagedAttributeMap(ManagedAttribute)
.The resulting Form may be used in a workflow.
- Parameters:
map
-options
-- Returns:
- Throws:
sailpoint.tools.GeneralException
-
getCreateManagedAttributeMap
public Map<String,Object> getCreateManagedAttributeMap(String applicationName, String attribute) throws sailpoint.tools.GeneralException
Creates a new Map to pass intobuildForm(Map, BuildForm.Option...)
- Parameters:
applicationName
- The application nameattribute
- The attribute on that application’s account schema- Returns:
- A map representation of a new entitlement
- Throws:
sailpoint.tools.GeneralException
- if anything goes wrongIllegalArgumentException
- if the inputs are bad
-
getUpdateManagedAttributeMap
public Map<String,Object> getUpdateManagedAttributeMap(sailpoint.object.ManagedAttribute ma) throws sailpoint.tools.GeneralException
Creates a new Map to pass intobuildForm(Map, BuildForm.Option...)
- Parameters:
ma
- TheManagedAttribute
being modified- Returns:
- A map representation of a new entitlement
- Throws:
sailpoint.tools.GeneralException
- if anything goes wrongIllegalArgumentException
- if the inputs are bad
-
-