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();
| Constructor and Description |
|---|
PrivilegeAttributeDefInheritanceSave() |
public PrivilegeAttributeDefInheritanceSave()
public PrivilegeAttributeDefInheritanceSave assignAttributeAssignId(String theAttributeAssignId)
theAttributeAssignId - public PrivilegeAttributeDefInheritanceSave assignAttributeAssign(AttributeAssign theAttributeAssign)
theAttributeAssignId - public PrivilegeAttributeDefInheritanceSave addField(Field theField)
theFieldId - public PrivilegeAttributeDefInheritanceSave addFieldId(String theFieldId)
theFieldId - public PrivilegeAttributeDefInheritanceSave addFieldName(String theFieldName)
theFieldName - public PrivilegeAttributeDefInheritanceSave addPrivilege(Privilege privilege)
theFieldName - public PrivilegeAttributeDefInheritanceSave addPrivilegeName(String thePrivilegeName)
thePrivilegeName - public PrivilegeAttributeDefInheritanceSave assignMember(Member theMember)
member - public PrivilegeAttributeDefInheritanceSave assignMemberId(String theMemberId)
theMemberId - public PrivilegeAttributeDefInheritanceSave assignSaveMode(SaveMode theSaveMode)
theSaveMode - public PrivilegeAttributeDefInheritanceSave assignSubject(Subject theSubject)
theSubject - public PrivilegeAttributeDefInheritanceSave assignSubjectId(String theSubjectId)
theSubjectId - public PrivilegeAttributeDefInheritanceSave assignSubjectIdentifier(String theSubjectIdentifier)
thesubjectIdentifier - public PrivilegeAttributeDefInheritanceSave assignSubjectSourceId(String theSubjectSourceId)
theSubjectSourceId - public SaveResultType getSaveResultType()
public PrivilegeAttributeDefInheritanceSave assignNameMatchesSqlLikeString(String theNameMatchesSqlLikeString)
theNameMatchesSqlLikeString - public PrivilegeAttributeDefInheritanceSave assignRunAsRoot(boolean runAsRoot)
runAsRoot - public SaveResultType save() throws InsufficientPrivilegeException, GroupNotFoundException
create or update or delete privileges on all attribute defs under a stem for a subject
InsufficientPrivilegeExceptionGroupNotFoundExceptionpublic PrivilegeAttributeDefInheritanceSave assignStem(Stem theStem)
theStem - public PrivilegeAttributeDefInheritanceSave assignStemScope(Stem.Scope theScope)
theStem - public PrivilegeAttributeDefInheritanceSave assignStemScopeName(String theScope)
theStem - public PrivilegeAttributeDefInheritanceSave assignStemId(String theStemId)
theStemId - public PrivilegeAttributeDefInheritanceSave assignStemName(String theStemName)
theStemName - Copyright © 2016 Internet2. All rights reserved.