public class AttributeAssignToGroupSave extends Object
Use this class to add/edit/delete attribute def names on groups.
Sample call
AttributeAssignToGroupSave attributeAssignToGroupSave = new AttributeAssignToGroupSave().assignAttributeDefName(attributeDefName).assignGroup(group); AttributeAssign attributeAssign = attributeAssignToGroupSave.save(); System.out.println(attributeAssignToGroupSave.getSaveResultType()); // DELETE, INSERT, NO_CHANGE, or UPDATE
Sample call to remove attribute def name from a group
new AttributeAssignToGroupSave().assignAttributeDefName(attributeDefName).assignGroup(group).assignSaveMode(SaveMode.DELETE).save();
Constructor and Description |
---|
AttributeAssignToGroupSave() |
Modifier and Type | Method and Description |
---|---|
AttributeAssignToGroupSave |
assignAttributeDefName(AttributeDefName theAttributeDefName)
attribute def name to add/update/delete from group
|
AttributeAssignToGroupSave |
assignGroup(Group theGroup)
assign a group
|
AttributeAssignToGroupSave |
assignGroupId(String theGroupId)
group id to add to, mutually exclusive with group name and group
|
AttributeAssignToGroupSave |
assignGroupName(String theGroupName)
group name to add to, mutually exclusive with group id and group
|
AttributeAssignToGroupSave |
assignNameOfAttributeDefName(String theNameOfAttributeDefName)
attribute def name to add/update/delete from group
|
AttributeAssignToGroupSave |
assignSaveMode(SaveMode theSaveMode)
assign save mode
|
SaveResultType |
getSaveResultType()
get the save result type after the save call
|
AttributeAssign |
save()
add or edit or delete an attribute def name from group
|
public AttributeAssignToGroupSave assignAttributeDefName(AttributeDefName theAttributeDefName)
theAttributeDefName
- public AttributeAssignToGroupSave assignNameOfAttributeDefName(String theNameOfAttributeDefName)
theNameOfAttributeDefName
- public AttributeAssignToGroupSave assignGroup(Group theGroup)
theGroup
- public AttributeAssignToGroupSave assignGroupId(String theGroupId)
theGroupId
- public AttributeAssignToGroupSave assignGroupName(String theGroupName)
theGroupName
- public AttributeAssignToGroupSave assignSaveMode(SaveMode theSaveMode)
theSaveMode
- public SaveResultType getSaveResultType()
public AttributeAssign save() throws InsufficientPrivilegeException, GroupNotFoundException
add or edit or delete an attribute def name from group
InsufficientPrivilegeException
GroupNotFoundException
Copyright © 2016 Internet2. All rights reserved.