|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.internet2.middleware.grouper.externalSubjects.ExternalSubjectSave
public class ExternalSubjectSave
Use this class to insert or update a external subject
Constructor Summary | |
---|---|
ExternalSubjectSave(GrouperSession theGrouperSession)
create a new external subject save |
Method Summary | |
---|---|
ExternalSubjectSave |
addAttribute(String name,
String value)
add an attribute assignment |
ExternalSubjectSave |
assignAttributes(Map<String,String> theAttributes)
assign attributes |
ExternalSubjectSave |
assignEmail(String theEmail)
|
ExternalSubjectSave |
assignEnabled(boolean theEnabled)
|
ExternalSubjectSave |
assignIdentifier(String theIdentifier)
|
ExternalSubjectSave |
assignIdentifierToEdit(String theIdentifierToEdit)
identifier to edit |
ExternalSubjectSave |
assignInstitution(String theInstitution)
|
ExternalSubjectSave |
assignName(String name1)
name |
ExternalSubjectSave |
assignSaveMode(SaveMode theSaveMode)
assign save mode |
ExternalSubjectSave |
assignUuid(String theUuid)
uuid |
ExternalSubjectSave |
assignVettedEmailAddresses(String theVettedEmailAddresses)
|
SaveResultType |
getSaveResultType()
get the save type |
ExternalSubject |
save()
create or update a external subject. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExternalSubjectSave(GrouperSession theGrouperSession)
theGrouperSession
- Method Detail |
---|
public ExternalSubjectSave assignAttributes(Map<String,String> theAttributes)
theAttributes
-
public ExternalSubjectSave addAttribute(String name, String value)
name
- value
-
public ExternalSubjectSave assignIdentifierToEdit(String theIdentifierToEdit)
theIdentifierToEdit
-
public ExternalSubjectSave assignUuid(String theUuid)
theUuid
-
public ExternalSubjectSave assignIdentifier(String theIdentifier)
theIdentifier
-
public ExternalSubjectSave assignInstitution(String theInstitution)
theInstitution
-
public ExternalSubjectSave assignEnabled(boolean theEnabled)
theEnabled
-
public ExternalSubjectSave assignEmail(String theEmail)
theEmail
-
public ExternalSubjectSave assignName(String name1)
name1
-
public ExternalSubjectSave assignSaveMode(SaveMode theSaveMode)
theSaveMode
-
public ExternalSubjectSave assignVettedEmailAddresses(String theVettedEmailAddresses)
theVettedEmailAddresses
-
public SaveResultType getSaveResultType()
public ExternalSubject 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
InsufficientPrivilegeException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |