public interface ConnectorServices
Created by ketan.avalaskar.
| Modifier and Type | Method and Description |
|---|---|
OpenMessagePart |
createEmptyMessage()
Creates an empty message instance.
|
OpenMessagePart |
createErrorMessage(java.lang.String key,
java.lang.Object... args)
Creates Message instance with given key and arguments.
|
OpenMessagePart |
createInfoMessage(java.lang.String key,
java.lang.Object... args)
Creates Message instance with given key and arguments.
|
OpenMessagePart |
createWarnMessage(java.lang.String key,
java.lang.Object... args)
Creates Message instance with given key and arguments.
|
java.lang.String |
decrypt(java.lang.String src)
Decrypt an encrypted string.
|
java.lang.Object |
deepCopy(java.lang.Object obj)
Perform a deep copy of the object.
|
default java.util.Map<java.lang.String,java.lang.Object> |
getAttributes(java.lang.Class clazz,
java.util.Map<java.lang.String,java.lang.Object> searchAttributes,
java.util.List<java.lang.String> attributes)
Returns the attribute-value key-pair from the requested SailPointObject.
|
default boolean |
getFeatureFlagValue(java.lang.String name,
boolean defaultValue)
Extract value for featureFlag name provided.
|
java.lang.Object |
getObject(java.lang.Class cls,
java.lang.String name)
Retrieve an object by name.
|
default boolean |
getProductFlagValue(java.lang.String name,
boolean defaultValue)
Get value for requested product flag (Org feature).
|
java.lang.Object |
runRule(java.lang.Object rule,
java.util.Map<java.lang.String,java.lang.Object> ruleContext)
Run a rule and return the result or null if there is no result.
|
java.lang.Object |
runRule(java.lang.String ruleName,
java.util.Map<java.lang.String,java.lang.Object> ruleContext)
Deprecated.
As of release 8.1, replaced by
ConnectorServices.runRule(Object, Map) |
void |
saveObject(java.lang.Object obj)
Save an entire object.
|
void |
setApplicationAttribute(java.lang.String appName,
java.lang.String atrName,
java.lang.Object value)
Save attribute in the Application.
|
void |
setApplicationAttributes(java.lang.String appName,
java.util.Map<java.lang.String,java.lang.Object> atrMap)
Save attribute map in the Application.
|
default java.util.Map<java.lang.String,java.lang.Object> |
syncCredentialsInApplication(java.util.Map<java.lang.String,java.lang.Object> configAttr)
Sync latest credential from Vault to application.
|
java.lang.Object runRule(java.lang.Object rule,
java.util.Map<java.lang.String,java.lang.Object> ruleContext)
throws java.lang.Exception
rule - The Rule name text Or entire Rule object to run.ruleContext - A name/value map of parameters to pass into the rule.java.lang.Exception@Deprecated
java.lang.Object runRule(java.lang.String ruleName,
java.util.Map<java.lang.String,java.lang.Object> ruleContext)
throws java.lang.Exception
ConnectorServices.runRule(Object, Map)ruleName - The Rule name text Or entire Rule object to run.ruleContext - A name/value map of parameters to pass into the rule.java.lang.Exceptionjava.lang.Object getObject(java.lang.Class cls,
java.lang.String name)
throws java.lang.Exception
cls - - Class that represents SailPointObject.name - - Name of the object.java.lang.Exceptionvoid saveObject(java.lang.Object obj)
throws java.lang.Exception
This method is not useful in case application also works for IDN and CloudGateway, as we don't have access to the database and will not able to update the application. Hence the connector must be used only for IdentityIQ.
obj - - Object that needs to save.java.lang.Exceptiondefault java.util.Map<java.lang.String,java.lang.Object> getAttributes(java.lang.Class clazz,
java.util.Map<java.lang.String,java.lang.Object> searchAttributes,
java.util.List<java.lang.String> attributes)
throws java.lang.Exception
Note: In case zero or more than one results are produced, then it will be treated as erroneous condition.
clazz - Class object of the requested objectsearchAttributes - Map of attributes to be used for searchattributes - List of attribute values requestedMap of attributes and their respective valuesjava.lang.Exceptionvoid setApplicationAttribute(java.lang.String appName,
java.lang.String atrName,
java.lang.Object value)
throws java.lang.Exception
appName - - Name of the application.atrName - - Name of the attribute.value - - Value of the attribute.java.lang.Exceptionvoid setApplicationAttributes(java.lang.String appName,
java.util.Map<java.lang.String,java.lang.Object> atrMap)
throws java.lang.Exception
appName - - Name of the application.atrMap - - Mape of attributes.java.lang.Exceptionjava.lang.String decrypt(java.lang.String src)
throws java.lang.Exception
src - - Encrypted string.java.lang.Exceptionjava.lang.Object deepCopy(java.lang.Object obj)
throws java.lang.Exception
obj - Object to be copied/clonedjava.lang.Exceptiondefault boolean getFeatureFlagValue(java.lang.String name,
boolean defaultValue)
name - defaultValue - default boolean getProductFlagValue(java.lang.String name,
boolean defaultValue)
name - defaultValue - default java.util.Map<java.lang.String,java.lang.Object> syncCredentialsInApplication(java.util.Map<java.lang.String,java.lang.Object> configAttr)
configAttr - Current application configuration attributesOpenMessagePart createEmptyMessage()
OpenMessagePart createInfoMessage(java.lang.String key, java.lang.Object... args)
Type.Info.key - ResourceBundle message key, or a plain text message.args - Message format arguments.OpenMessagePart createWarnMessage(java.lang.String key, java.lang.Object... args)
Type.Warn.key - ResourceBundle message key, or a plain text message.args - Message format arguments.OpenMessagePart createErrorMessage(java.lang.String key, java.lang.Object... args)
Type.Error.key - ResourceBundle message key, or a plain text message.args - Message format arguments.