Package edu.internet2.middleware.grouper
Class PrivilegeStemSave
java.lang.Object
edu.internet2.middleware.grouper.PrivilegeStemSave
Use this class to insert or update a stem privilege
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionassignField
(Field theField) field of privilegeassignFieldId
(String theFieldId) field of privilegeassignFieldName
(String theFieldName) field of privilege (could be privilege name too)assignImmediateMembershipId
(String theImmediateMembershipId) uuid of this membership for inserts (optional)assignMember
(Member theMember) member to addassignMemberId
(String theMemberId) member id to addassignSaveMode
(SaveMode theSaveMode) asssign save modeassignStem
(Stem theStem) assign a stemassignStemId
(String theStemId) stem id to add to, mutually exclusive with stem nameassignStemName
(String theStemName) stem name to add to, mutually exclusive with stem idassignSubject
(Subject theSubject) subject to addassignSubjectId
(String theSubjectId) subject id to add, mutually exclusive and preferable to subject identifierassignSubjectIdentifier
(String theSubjectIdentifier) subject identifier to add, mutually exclusive and not preferable to subject idassignSubjectSourceId
(String theSubjectSourceId) subject source id to addget the save typesave()
create or update or delete a composite
-
Constructor Details
-
PrivilegeStemSave
public PrivilegeStemSave()create a new privilege save- Parameters:
theGrouperSession
-
-
-
Method Details
-
assignStemId
stem id to add to, mutually exclusive with stem name- Parameters:
theStemId
-- Returns:
- this for chaining
-
assignStem
assign a stem- Parameters:
theStem
-- Returns:
- this for chaining
-
assignSubject
subject to add- Parameters:
theSubject
-- Returns:
- this for chaining
-
assignMember
member to add- Parameters:
member
-- Returns:
- this for chaining
-
assignStemName
stem name to add to, mutually exclusive with stem id- Parameters:
theStemName
-- Returns:
- this for chaining
-
assignMemberId
member id to add- Parameters:
theMemberId
-- Returns:
- this for chaining
-
assignSubjectId
subject id to add, mutually exclusive and preferable to subject identifier- Parameters:
theSubjectId
-- Returns:
- this for chaining
-
assignSubjectSourceId
subject source id to add- Parameters:
theSubjectSourceId
-- Returns:
- this for chaining
-
assignSubjectIdentifier
subject identifier to add, mutually exclusive and not preferable to subject id- Parameters:
thesubjectIdentifier
-- Returns:
- this for chaining
-
assignImmediateMembershipId
uuid of this membership for inserts (optional)- Parameters:
theImmediateMembershipId
-- Returns:
- this for chaining
-
assignSaveMode
asssign save mode- Parameters:
theSaveMode
-- Returns:
- this for chaining
-
getSaveResultType
get the save type- Returns:
- save type
-
assignFieldId
field of privilege- Parameters:
theFieldId
-- Returns:
- this for chaining
-
assignFieldName
field of privilege (could be privilege name too)- Parameters:
theFieldName
-- Returns:
- this for chaining
-
assignField
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
-