Class PrivilegeAttributeDefInheritanceSave

java.lang.Object
edu.internet2.middleware.grouper.PrivilegeAttributeDefInheritanceSave

public class PrivilegeAttributeDefInheritanceSave extends Object

Use this class to add/edit/delete privileges on attribute defs inside a folder for a subject

Sample call

 SaveResultType saveResultType = new PrivilegeAttributeDefInheritanceSave()
      .assignStem(stem)
      .assignStemScope(Scope.SUB)
      .assignSubject(subject)
      .addPrivilege(AttributeDefPrivilege.ATTR_ADMIN)
      .save();
 System.out.println(saveResultType); // INSERT, DELETE, NO_CHANGE, or UPDATE
 

Sample call to delete privileges on attribute defs inside a folder for a subject

 new PrivilegeAttributeDefInheritanceSave()
    .assignStem(stem)
    .assignStemScope(Scope.SUB)
    .assignSubject(subject)
    .assignSaveMode(SaveMode.DELETE)
    .save();