Use this class to add/edit/delete provisioning attributes on stems
Sample call
ProvisionableStemSave provisionableStemSave = new ProvisionableStemSave(); GrouperProvisioningAttributeValue grouperProvisioningAttributeValue = provisionableStemSave.assignTargetName("ldapProvTest").assignMetadataString("md_testInput", "testValue").assignStem(stem).save(); System.out.println(provisionableStemSave.getSaveResultType()); // INSERT, DELETE, NO_CHANGE, or UPDATE
Sample call to delete provisioning attributes from a stem
ProvisionableStemSave provisionableStemSave = new ProvisionableStemSave(); provisionableStemSave.assignTargetName("ldapProvTest") .assignSaveMode(SaveMode.DELETE).assignStem(stem).save();
Sample call to update only single attribute
ProvisionableStemSave provisionableStemSave = new ProvisionableStemSave(); GrouperProvisioningAttributeValue grouperProvisioningAttributeValue = provisionableStemSave.assignTargetName("ldapProvTest") .assignPolicyGroupOnly(true) .assignReplaceAllSettings(false) .assignStem(stem).save();