Class PrivilegeGroupSave

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

public class PrivilegeGroupSave extends Object
Use this class to insert or update a group privilege
  • Constructor Details

    • PrivilegeGroupSave

      public PrivilegeGroupSave()
      create a new privilege save
      Parameters:
      theGrouperSession -
  • Method Details

    • assignGroupId

      public PrivilegeGroupSave assignGroupId(String theGroupId)
      group id to add to, mutually exclusive with group name
      Parameters:
      theGroupId -
      Returns:
      this for chaining
    • assignGroup

      public PrivilegeGroupSave assignGroup(Group theGroup)
      assign a group
      Parameters:
      theGroup -
      Returns:
      this for chaining
    • assignSubject

      public PrivilegeGroupSave assignSubject(Subject theSubject)
      subject to add
      Parameters:
      theSubject -
      Returns:
      this for chaining
    • assignMember

      public PrivilegeGroupSave assignMember(Member theMember)
      member to add
      Parameters:
      member -
      Returns:
      this for chaining
    • assignGroupName

      public PrivilegeGroupSave assignGroupName(String theGroupName)
      group name to add to, mutually exclusive with group id
      Parameters:
      theGroupName -
      Returns:
      this for chaining
    • assignMemberId

      public PrivilegeGroupSave assignMemberId(String theMemberId)
      member id to add
      Parameters:
      theMemberId -
      Returns:
      this for chaining
    • assignSubjectId

      public PrivilegeGroupSave assignSubjectId(String theSubjectId)
      subject id to add, mutually exclusive and preferable to subject identifier
      Parameters:
      theSubjectId -
      Returns:
      this for chaining
    • assignSubjectSourceId

      public PrivilegeGroupSave assignSubjectSourceId(String theSubjectSourceId)
      subject source id to add
      Parameters:
      theSubjectSourceId -
      Returns:
      this for chaining
    • assignSubjectIdentifier

      public PrivilegeGroupSave assignSubjectIdentifier(String theSubjectIdentifier)
      subject identifier to add, mutually exclusive and not preferable to subject id
      Parameters:
      thesubjectIdentifier -
      Returns:
      this for chaining
    • assignImmediateMembershipId

      public PrivilegeGroupSave assignImmediateMembershipId(String theImmediateMembershipId)
      uuid of this membership for inserts (optional)
      Parameters:
      theImmediateMembershipId -
      Returns:
      this for chaining
    • assignSaveMode

      public PrivilegeGroupSave assignSaveMode(SaveMode theSaveMode)
      asssign save mode
      Parameters:
      theSaveMode -
      Returns:
      this for chaining
    • getSaveResultType

      public SaveResultType getSaveResultType()
      get the save type
      Returns:
      save type
    • assignFieldId

      public PrivilegeGroupSave assignFieldId(String theFieldId)
      field of privilege
      Parameters:
      theFieldId -
      Returns:
      this for chaining
    • assignFieldName

      public PrivilegeGroupSave assignFieldName(String theFieldName)
      field of privilege (could be privilege name too)
      Parameters:
      theFieldName -
      Returns:
      this for chaining
    • assignField

      public PrivilegeGroupSave assignField(Field theField)
      field of privilege
      Parameters:
      theFieldId -
      Returns:
      this for chaining
    • save

       create or update or delete a composite
       
      Returns:
      the composite that was updated or created or deleted
      Throws:
      InsufficientPrivilegeException
      GroupNotFoundException