|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.grouper.StemSave
public class StemSave
Use this class to insert or update a stem
Constructor Summary | |
---|---|
StemSave(GrouperSession theGrouperSession)
create a new stem save |
Method Summary | |
---|---|
StemSave |
assignCreateParentStemsIfNotExist(boolean theCreateParentStemsIfNotExist)
assign create parents if not exist |
StemSave |
assignDescription(java.lang.String theDescription)
assign description |
StemSave |
assignDisplayExtension(java.lang.String theDisplayExtension)
display extension |
StemSave |
assignDisplayName(java.lang.String theDisplayName)
|
StemSave |
assignIdIndex(java.lang.Long theIdIndex)
assign id_index |
StemSave |
assignName(java.lang.String name1)
name |
StemSave |
assignSaveMode(SaveMode theSaveMode)
asssign save mode |
StemSave |
assignStemNameToEdit(java.lang.String theStemNameToEdit)
stem name to edit |
StemSave |
assignUuid(java.lang.String theUuid)
uuid |
SaveResultType |
getSaveResultType()
get the save type |
Stem |
save()
create or update a stem. |
Stem |
saveUnchecked()
Deprecated. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StemSave(GrouperSession theGrouperSession)
theGrouperSession
- Method Detail |
---|
public StemSave assignIdIndex(java.lang.Long theIdIndex)
theIdIndex
-
public StemSave assignStemNameToEdit(java.lang.String theStemNameToEdit)
theStemNameToEdit
-
public StemSave assignUuid(java.lang.String theUuid)
theUuid
-
public StemSave assignName(java.lang.String name1)
name1
-
public StemSave assignDisplayExtension(java.lang.String theDisplayExtension)
theDisplayExtension
-
public StemSave assignDescription(java.lang.String theDescription)
theDescription
-
public StemSave assignSaveMode(SaveMode theSaveMode)
theSaveMode
-
public StemSave assignCreateParentStemsIfNotExist(boolean theCreateParentStemsIfNotExist)
theCreateParentStemsIfNotExist
-
public SaveResultType getSaveResultType()
@Deprecated public Stem saveUnchecked()
create or update a stem. Note this will not move a stem at this time (might in future) This is a static method since setters to Stem objects persist to the DB Steps: 1. Find the stem by stemNameToEdit (if not there then its an insert) 2. Internally set all the fields of the stem (no need to reset if already the same) 3. Store the stem (insert or update) if needed 4. Return the stem object This occurs in a transaction, so if a part of it fails, it rolls back, and potentially rolls back outer transactions too
public Stem save() throws StemNotFoundException, InsufficientPrivilegeException, StemAddException, StemModifyException
create or update a stem. Note this will not move a stem at this time (might in future) This is a static method since setters to Stem objects persist to the DB Steps: 1. Find the stem by stemNameToEdit (if not there then its an insert) 2. Internally set all the fields of the stem (no need to reset if already the same) 3. Store the stem (insert or update) if needed 4. Return the stem object This occurs in a transaction, so if a part of it fails, it rolls back, and potentially rolls back outer transactions too
StemNotFoundException
InsufficientPrivilegeException
StemAddException
StemModifyException
public StemSave assignDisplayName(java.lang.String theDisplayName)
theDisplayName
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |