Class ExternalSubjectSave
java.lang.Object
edu.internet2.middleware.grouper.externalSubjects.ExternalSubjectSave
Use this class to insert or update a external subject
-
Constructor Summary
ConstructorDescriptionExternalSubjectSave
(GrouperSession theGrouperSession) create a new external subject save -
Method Summary
Modifier and TypeMethodDescriptionaddAttribute
(String name, String value) add an attribute assignmentassignAttributes
(Map<String, String> theAttributes) assign attributesassignEmail
(String theEmail) assignEnabled
(boolean theEnabled) assignIdentifier
(String theIdentifier) assignIdentifierToEdit
(String theIdentifierToEdit) identifier to editassignInstitution
(String theInstitution) assignName
(String name1) nameassignSaveMode
(SaveMode theSaveMode) assign save modeassignUuid
(String theUuid) uuidassignVettedEmailAddresses
(String theVettedEmailAddresses) get the save typesave()
create or update a external subject.
-
Constructor Details
-
ExternalSubjectSave
create a new external subject save- Parameters:
theGrouperSession
-
-
-
Method Details
-
assignAttributes
assign attributes- Parameters:
theAttributes
-- Returns:
- this for chaining
-
addAttribute
add an attribute assignment- Parameters:
name
-value
-- Returns:
- this for chaining
-
assignIdentifierToEdit
identifier to edit- Parameters:
theIdentifierToEdit
-- Returns:
- the identifier to edit
-
assignUuid
uuid- Parameters:
theUuid
-- Returns:
- uuid
-
assignIdentifier
- Parameters:
theIdentifier
-- Returns:
- this for chaining
-
assignInstitution
- Parameters:
theInstitution
-- Returns:
- this for chaining
-
assignEnabled
- Parameters:
theEnabled
-- Returns:
- this for chaining
-
assignEmail
- Parameters:
theEmail
-- Returns:
- this for chaining
-
assignName
name- Parameters:
name1
-- Returns:
- name
-
assignSaveMode
assign save mode- Parameters:
theSaveMode
-- Returns:
- this for chaining
-
assignVettedEmailAddresses
- Parameters:
theVettedEmailAddresses
-- Returns:
- this for chaining
-
getSaveResultType
get the save type- Returns:
- save type
-
save
create or update a external subject. Steps: 1. Find the external subject by identifierToEdit 2. Internally set all the fields of the stem (no need to reset if already the same) 3. Store the external subject (insert or update) if needed 4. Return the external subject object This runs in a tx so that if part of it fails the whole thing fails, and potentially the outer transaction too
- Returns:
- the external subject
- Throws:
InsufficientPrivilegeException
-