Class GdgTypeStemSave
java.lang.Object
edu.internet2.middleware.grouper.app.grouperTypes.GdgTypeStemSave
Use this class to add/edit/delete object types on stems
Sample call
GdgTypeStemSave gdgTypeStemSave = new GdgTypeStemSave(); GrouperObjectTypesAttributeValue grouperObjectTypesAttributeValue = gdgTypeStemSave .assignStem(stem) .assignType("ref") .assignDataOwner("do") .assignMemberDescription("md") .save(); System.out.println(gdgTypeStemSave.getSaveResultType()); // INSERT, DELETE, NO_CHANGE, or UPDATE
Sample call to delete an object type from a stem
GdgTypeStemSave gdgTypeStemSave = new GdgTypeStemSave(); gdgTypeStemSave .assignStem(stem) .assignType("ref") .assignSaveMode(SaveMode.DELETE) .save();
Sample call to update only single attribute
GdgTypeStemSave gdgTypeStemSave = new GdgTypeStemSave(); gdgTypeStemSave .assignStem(stem) .assignType("ref") .assignReplaceAllSettings(false) .assignDataOwner("do1") .save();
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionassignDataOwner
(String dataOwner) data owner to assignassignMemberDescription
(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 assignassignStem
(Stem stem) stem on which object types attributes need to be savedassignStemId
(String stemId) stem id on which object types attributes need to be savedassignStemName
(String stemName) stem name on which object types attributes need to be savedassignType
(String type) type e.g.get save result type after the save callsave()
add/edit/delete object type attributes from a stem
-
Constructor Details
-
GdgTypeStemSave
public GdgTypeStemSave()
-
-
Method Details
-
assignStem
stem on which object types attributes need to be saved- Parameters:
stem
-- Returns:
-
assignStemId
stem id on which object types attributes need to be saved- Parameters:
stemId
-- Returns:
-
assignStemName
stem name on which object types attributes need to be saved- Parameters:
stemName
-- 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 stem- Returns:
- bean containing the current attribute values - can be null
-