Class SailPointObjectCacheGenerator<T extends sailpoint.object.SailPointObject>
- java.lang.Object
-
- com.identityworksllc.iiq.common.cache.SailPointObjectCacheGenerator<T>
-
- Type Parameters:
T
- The cached object type, which must be a concrete subclass of SailPointObject
- All Implemented Interfaces:
CacheGenerator<T>
public class SailPointObjectCacheGenerator<T extends sailpoint.object.SailPointObject> extends Object implements CacheGenerator<T>
A cache generator to automatically pull and cache SailPoint objects
-
-
Constructor Summary
Constructors Constructor Description SailPointObjectCacheGenerator(Class<T> type)
Constructs a new Sailpoint cache generator for this object type
-
-
-
Constructor Detail
-
SailPointObjectCacheGenerator
public SailPointObjectCacheGenerator(Class<T> type)
Constructs a new Sailpoint cache generator for this object type- Parameters:
type
- The object type- Throws:
IllegalArgumentException
- if the input type is not a concrete subclass of SailPointObject
-
-
Method Detail
-
getValue
public T getValue(Object key)
Gets the value for the given key.The Key can be either a name or an ID. This method must be invoked in a thread that has a SailPointContext.
If the key is not a string, or if no such object exists, null will be returned.
The object will be detached via
Utilities.detach(SailPointContext, SailPointObject)
.- Specified by:
getValue
in interfaceCacheGenerator<T extends sailpoint.object.SailPointObject>
- Parameters:
key
- The key for which to retrieve a value- Returns:
- The object, or null if there is an issue loading it
-
-