Class AttributeAssignToGroupSave

java.lang.Object
edu.internet2.middleware.grouper.attr.assign.AttributeAssignToGroupSave

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();
 new AttributeAssignToGroupSave().assignNameOfAttributeDefName("a:b:c").assignGroupName("a:b:c").save();
 

Sample call to assign attribute and metadata with values

  AttributeAssign attributeAssign = new AttributeAssignToGroupSave().
    assignNameOfAttributeDefName("etc:attribute:abacJexlScript:grouperJexlScriptMarker").
    assignGroupName("test:isc:astt:chris:testJexl2").save();
  
  attributeAssign.getAttributeValueDelegate().assignValueString(
    "etc:attribute:abacJexlScript:grouperJexlScriptJexlScript", 
    "${entity.memberOf('test:testGroup') && !entity.memberOf('test:testGroup1')}");
 

  • Constructor Details

    • AttributeAssignToGroupSave

      public AttributeAssignToGroupSave()
  • Method Details