Class GdgTypeGroupSave
java.lang.Object
edu.internet2.middleware.grouper.app.grouperTypes.GdgTypeGroupSave
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();
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionassignDataOwner
(String dataOwner) data owner to assignassignGroup
(Group group) group on which object types attributes need to be savedassignGroupId
(String groupId) group id on which object types attributes need to be savedassignGroupName
(String groupName) group name on which object types attributes need to be savedassignMemberDescription
(String memberDescription) member description to assignassignReplaceAllSettings
(boolean replaceAllSettings) replace all existing settings.assignRunAsRoot
(boolean runAsRoot) set this to true to run as a root sessionassignSaveMode
(SaveMode saveMode) assign save modeassignServiceName
(String serviceName) service name to assignassignType
(String type) type e.g.get save result type after the save callsave()
add/edit/delete object type attributes from a group
-
Constructor Details
-
GdgTypeGroupSave
public GdgTypeGroupSave()
-
-
Method Details
-
assignGroup
group on which object types attributes need to be saved- Parameters:
group
-- Returns:
-
assignGroupId
group id on which object types attributes need to be saved- Parameters:
groupId
-- Returns:
-
assignGroupName
group name on which object types attributes need to be saved- Parameters:
groupName
-- Returns:
-
assignType
type e.g. ref, basis, app- Parameters:
type
-- Returns:
-
assignDataOwner
data owner to assign- Parameters:
dataOwner
-- Returns:
-
assignMemberDescription
member description to assign- Parameters:
memberDescription
-- Returns:
-
assignServiceName
service name to assign- Parameters:
serviceName
-- Returns:
-
assignRunAsRoot
set this to true to run as a root session- Parameters:
runAsRoot
-- Returns:
-
assignReplaceAllSettings
replace all existing settings. defaults to true.- Parameters:
replaceAllSettings
-- Returns:
-
assignSaveMode
assign save mode- Parameters:
saveMode
-- Returns:
-
getSaveResultType
get save result type after the save call- Returns:
-
save
add/edit/delete object type attributes from a group- Returns:
- bean containing the current attribute values - can be null
-