Class ICProvisioningManager
java.lang.Object
oracle.iam.connectors.icfcommon.prov.ICProvisioningManager
- All Implemented Interfaces:
oracle.iam.connectors.icfcommon.prov.ProvisioningManager
public final class ICProvisioningManager
extends Object
implements oracle.iam.connectors.icfcommon.prov.ProvisioningManager
Common Provisioning Manager for ICF based connectors. Methods in this class should be used by OIM Connector's
adapter tasks.
-
Constructor Summary
ConstructorsConstructorDescriptionICProvisioningManager(String itResourceFieldName, long processInstanceKey, com.thortech.xl.dataaccess.tcDataProvider dataProvider) Creates instance of ICProvisioningManager -
Method Summary
Modifier and TypeMethodDescriptionaddChildTableValue(String objectType, String childTableName, long childPrimaryKey) Updates the target by adding the newly added row in child table.createObject(String objectType) Creates object of specified type on target resource, the values are taken from current FormdeleteObject(String objectType) Deletes object of specified type on target resourcedisableObject(String objectType) Deprecated.enableObject(String objectType) Deprecated.removeChildTableValue(String objectType, String childTableName, Integer taskInstanceKey) Updates the target by removing the row which was just deleted from child tablevoidsetEffectiveITResourceName(String itResourceName) If the connector needs to use different IT Resource for provisioning operations, it can be set by this methodvoidsetOperationOptions(Map<String, Object> options) SetsOperationOptionswhich are going to be used for any provisioning operation called on this instance.updateAttributeValue(String objectType, String attrFieldName) Updates object on target resource, only the attribute with the provided label is updatedupdateAttributeValues(String objectType, String[] labels) Use this method if there is a group update of fields.updateAttributeValues(String objectType, Map<String, String> fields) updateChildTableValue(String objectType, String childTableName, Integer taskInstanceKey, long childPrimaryKey) Updates the target by removing the deleted row and adding the newly created rowupdateChildTableValues(String objectType, String childTableName) Updates values provided in child table on target resourceupdatePassword(String objectType, String pswdFieldLabel, String oldPassword) Use this method in Adapter ONLY if you need to provide old password value, currently there is no way to get the old value using the formAPI.
-
Constructor Details
-
ICProvisioningManager
public ICProvisioningManager(String itResourceFieldName, long processInstanceKey, com.thortech.xl.dataaccess.tcDataProvider dataProvider) Creates instance of ICProvisioningManager- Parameters:
itResourceFieldName- ITResource Field NameprocessInstanceKey- Process Instance KeydataProvider- OIM Data Provider
-
-
Method Details
-
addChildTableValue
Updates the target by adding the newly added row in child table.- Specified by:
addChildTableValuein interfaceoracle.iam.connectors.icfcommon.prov.ProvisioningManager- Parameters:
objectType- Object Type, can't be nullchildTableName- Child table name which is being updatedchildPrimaryKey- Child primary key representing the new row added into child row- Returns:
-
removeChildTableValue
public String removeChildTableValue(String objectType, String childTableName, Integer taskInstanceKey) Updates the target by removing the row which was just deleted from child table- Specified by:
removeChildTableValuein interfaceoracle.iam.connectors.icfcommon.prov.ProvisioningManager- Parameters:
objectType- Object Type, can't be nullchildTableName- Child table name which is being updatedtaskInstanceKey- Task instance key responsible for deleting the row from child table- Returns:
- Response Code as
String
-
updateChildTableValue
public String updateChildTableValue(String objectType, String childTableName, Integer taskInstanceKey, long childPrimaryKey) Updates the target by removing the deleted row and adding the newly created row- Specified by:
updateChildTableValuein interfaceoracle.iam.connectors.icfcommon.prov.ProvisioningManager- Parameters:
objectType- Object Type, can't be nullchildTableName- Child table name which is being updatedtaskInstanceKey- Task instance key responsible for deleting the row from child tablechildPrimaryKey- Child primary key representing the new row added into child row- Returns:
- Response Code as
String
-
setEffectiveITResourceName
If the connector needs to use different IT Resource for provisioning operations, it can be set by this method- Parameters:
itResourceName- IT Resource Name which will be used for provisioning operations
-
setOperationOptions
Sets
OperationOptionswhich are going to be used for any provisioning operation called on this instance. This is helpfull in cases when OIM Process/Adapter needs to set some operation option explicitly.Note ICF INTG has also way of mapping the form fields to operation options.
If both ways are used the the maps are going to be merged into one (options set by this method are used first, the form field mapping can override them)
- Parameters:
options- Map of operation options to set
-
createObject
Creates object of specified type on target resource, the values are taken from current Form- Specified by:
createObjectin interfaceoracle.iam.connectors.icfcommon.prov.ProvisioningManager- Parameters:
objectType- Object Type, can't be null- Returns:
- Response Code as
String
-
deleteObject
Deletes object of specified type on target resource- Specified by:
deleteObjectin interfaceoracle.iam.connectors.icfcommon.prov.ProvisioningManager- Parameters:
objectType- Object Type, can't be null- Returns:
- Response Code as
String
-
updateAttributeValue
Updates object on target resource, only the attribute with the provided label is updated- Specified by:
updateAttributeValuein interfaceoracle.iam.connectors.icfcommon.prov.ProvisioningManager- Parameters:
objectType- Object Type to update, can't be nullattrFieldName- Field Label to update, can't be null- Returns:
- Response Code as
String
-
updateAttributeValues
Use this method if there is a group update of fields. This will be useful when a set of attributes have to updated together.- Parameters:
objectType- Object Typelabels- List of attribute field names to be updated- Returns:
- Response code
-
updateAttributeValues
- Specified by:
updateAttributeValuesin interfaceoracle.iam.connectors.icfcommon.prov.ProvisioningManager
-
updateAttributeValues
public String updateAttributeValues(String objectType, Map<String, String> fields, Map<String, String> oldFields) - Specified by:
updateAttributeValuesin interfaceoracle.iam.connectors.icfcommon.prov.ProvisioningManager
-
updateChildTableValues
Updates values provided in child table on target resource- Specified by:
updateChildTableValuesin interfaceoracle.iam.connectors.icfcommon.prov.ProvisioningManager- Parameters:
objectType- ObjectType, can't be nullchildTableName- Child table name which was changed- Returns:
- Response Code as
String
-
updatePassword
Use this method in Adapter ONLY if you need to provide old password value, currently there is no way to get the old value using the formAPI. If you don't need old password value to change the password, useupdateAttributeValue(String, String)method instead.- Parameters:
objectType- Object TypepswdFieldLabel- Password Field LabeloldPassword- Old Password Value- Returns:
- Response code
-
enableUser
Deprecated.- Specified by:
enableUserin interfaceoracle.iam.connectors.icfcommon.prov.ProvisioningManager
-
disableUser
Deprecated.- Specified by:
disableUserin interfaceoracle.iam.connectors.icfcommon.prov.ProvisioningManager
-
enableObject
- Specified by:
enableObjectin interfaceoracle.iam.connectors.icfcommon.prov.ProvisioningManager
-
disableObject
- Specified by:
disableObjectin interfaceoracle.iam.connectors.icfcommon.prov.ProvisioningManager
-