public class GdgTypeGroupSave extends Object
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 and Description |
|---|
GdgTypeGroupSave() |
| Modifier and Type | Method and Description |
|---|---|
GdgTypeGroupSave |
assignDataOwner(String dataOwner)
data owner to assign
|
GdgTypeGroupSave |
assignGroup(Group group)
group on which object types attributes need to be saved
|
GdgTypeGroupSave |
assignGroupId(String groupId)
group id on which object types attributes need to be saved
|
GdgTypeGroupSave |
assignGroupName(String groupName)
group name on which object types attributes need to be saved
|
GdgTypeGroupSave |
assignMemberDescription(String memberDescription)
member description to assign
|
GdgTypeGroupSave |
assignReplaceAllSettings(boolean replaceAllSettings)
replace all existing settings.
|
GdgTypeGroupSave |
assignRunAsRoot(boolean runAsRoot)
set this to true to run as a root session
|
GdgTypeGroupSave |
assignSaveMode(SaveMode saveMode)
assign save mode
|
GdgTypeGroupSave |
assignServiceName(String serviceName)
service name to assign
|
GdgTypeGroupSave |
assignType(String type)
type e.g.
|
SaveResultType |
getSaveResultType()
get save result type after the save call
|
GrouperObjectTypesAttributeValue |
save()
add/edit/delete object type attributes from a group
|
public GdgTypeGroupSave assignGroup(Group group)
group - public GdgTypeGroupSave assignGroupId(String groupId)
groupId - public GdgTypeGroupSave assignGroupName(String groupName)
groupName - public GdgTypeGroupSave assignType(String type)
type - public GdgTypeGroupSave assignDataOwner(String dataOwner)
dataOwner - public GdgTypeGroupSave assignMemberDescription(String memberDescription)
memberDescription - public GdgTypeGroupSave assignServiceName(String serviceName)
serviceName - public GdgTypeGroupSave assignRunAsRoot(boolean runAsRoot)
runAsRoot - public GdgTypeGroupSave assignReplaceAllSettings(boolean replaceAllSettings)
replaceAllSettings - public GdgTypeGroupSave assignSaveMode(SaveMode saveMode)
saveMode - public SaveResultType getSaveResultType()
public GrouperObjectTypesAttributeValue save()
Copyright © 2016 Internet2. All rights reserved.