Class PrivilegeStemSave

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

public class PrivilegeStemSave extends Object
Use this class to insert or update a stem privilege
  • Constructor Details

    • PrivilegeStemSave

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

    • assignStemId

      public PrivilegeStemSave assignStemId(String theStemId)
      stem id to add to, mutually exclusive with stem name
      Parameters:
      theStemId -
      Returns:
      this for chaining
    • assignStem

      public PrivilegeStemSave assignStem(Stem theStem)
      assign a stem
      Parameters:
      theStem -
      Returns:
      this for chaining
    • assignSubject

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

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

      public PrivilegeStemSave assignStemName(String theStemName)
      stem name to add to, mutually exclusive with stem id
      Parameters:
      theStemName -
      Returns:
      this for chaining
    • assignMemberId

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

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

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

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

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

      public PrivilegeStemSave 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 PrivilegeStemSave assignFieldId(String theFieldId)
      field of privilege
      Parameters:
      theFieldId -
      Returns:
      this for chaining
    • assignFieldName

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

      public PrivilegeStemSave 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