Use this class to add/edit/delete provisioning attributes on groups
Sample call
ProvisionableGroupSave provisionableGroupSave = new ProvisionableGroupSave(); GrouperProvisioningAttributeValue grouperProvisioningAttributeValue = provisionableGroupSave.assignTargetName("ldapProvTest").assignMetadataString("md_testInput", "testValue").assignGroup(group).save(); System.out.println(provisionableGroupSave.getSaveResultType()); // INSERT, DELETE, NO_CHANGE, or UPDATE
Sample call to delete provisioning attributes from a group
ProvisionableGroupSave provisionableGroupSave = new ProvisionableGroupSave(); provisionableGroupSave.assignTargetName("ldapProvTest") .assignSaveMode(SaveMode.DELETE).assignGroupName(group.getName()).save();
Sample call to update only single attribute
ProvisionableGroupSave provisionableGroupSave = new ProvisionableGroupSave(); provisionableGroupSave.assignTargetName("ldapProvTest") .assignProvision(true) .assignReplaceAllSettings(false) .assignGroup(group).save();