Use this class to add/edit/delete object types on groups
Sample call
GdgTypeGroupSave gdgTypeGroupSave = new GdgTypeGroupSave(); GrouperObjectTypesAttributeValue grouperObjectTypesAttributeValue = gdgTypeGroupSave .assignGroup(group) .assignType("ref") .assignDataOwner("do") .assignMemberDescription("md") .save(); System.out.println(gdgTypeGroupSave.getSaveResultType()); // INSERT, DELETE, NO_CHANGE, or UPDATE
Sample call to delete an object type from a group
GdgTypeGroupSave gdgTypeGroupSave = new GdgTypeGroupSave(); gdgTypeGroupSave .assignGroup(group) .assignType("ref") .assignSaveMode(SaveMode.DELETE) .save();
Sample call to update only single attribute
GdgTypeGroupSave gdgTypeGroupSave = new GdgTypeGroupSave(); gdgTypeGroupSave .assignGroup(group) .assignType("ref") .assignReplaceAllSettings(false) .assignDataOwner("do1") .save();