|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.grouper.attr.AttributeDefNameSave
public class AttributeDefNameSave
Use this class to insert or update a attribute def name
Constructor Summary | |
---|---|
AttributeDefNameSave(GrouperSession theGrouperSession,
AttributeDef theAttributeDef)
create a new attribute def name save |
Method Summary | |
---|---|
AttributeDefNameSave |
assignAttributeDefNameNameToEdit(java.lang.String theAttributeDefNameNameToEdit)
attributeDefName name to edit |
AttributeDefNameSave |
assignCreateParentStemsIfNotExist(boolean theCreateParentStemsIfNotExist)
assign create parents if not exist |
AttributeDefNameSave |
assignDescription(java.lang.String theDescription)
assign description |
AttributeDefNameSave |
assignDisplayExtension(java.lang.String theDisplayExtension)
display extension |
AttributeDefNameSave |
assignDisplayName(java.lang.String theDisplayName)
|
AttributeDefNameSave |
assignIdIndex(java.lang.Long theIdIndex)
assign id_index |
AttributeDefNameSave |
assignName(java.lang.String name1)
name |
AttributeDefNameSave |
assignSaveMode(SaveMode theSaveMode)
assign save mode |
AttributeDefNameSave |
assignUuid(java.lang.String theId)
id |
SaveResultType |
getSaveResultType()
get the save type |
AttributeDefName |
save()
create or update a attributeDefName. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AttributeDefNameSave(GrouperSession theGrouperSession, AttributeDef theAttributeDef)
theGrouperSession
- theAttributeDef
- Method Detail |
---|
public AttributeDefNameSave assignIdIndex(java.lang.Long theIdIndex)
theIdIndex
-
public AttributeDefNameSave assignAttributeDefNameNameToEdit(java.lang.String theAttributeDefNameNameToEdit)
theAttributeDefNameNameToEdit
-
public AttributeDefNameSave assignUuid(java.lang.String theId)
theId
-
public AttributeDefNameSave assignDisplayName(java.lang.String theDisplayName)
theDisplayName
-
public AttributeDefNameSave assignName(java.lang.String name1)
name1
-
public AttributeDefNameSave assignDisplayExtension(java.lang.String theDisplayExtension)
theDisplayExtension
-
public AttributeDefNameSave assignDescription(java.lang.String theDescription)
theDescription
-
public AttributeDefNameSave assignSaveMode(SaveMode theSaveMode)
theSaveMode
-
public AttributeDefNameSave assignCreateParentStemsIfNotExist(boolean theCreateParentStemsIfNotExist)
theCreateParentStemsIfNotExist
-
public SaveResultType getSaveResultType()
public AttributeDefName save() throws StemNotFoundException, InsufficientPrivilegeException, StemAddException
create or update a attributeDefName. Note this will not rename an attributeDefName at this time (might in future) This is a static method since setters to AttributeDefName objects persist to the DB Steps: 1. Find the attributeDefName by attributeDefNameNameToEdit 2. Internally set all the fields of the attributeDefName (no need to reset if already the same) 3. Store the attributeDefName (insert or update) if needed 4. Return the attributeDefName object This runs in a tx so that if part of it fails the whole thing fails, and potentially the outer transaction too
StemNotFoundException
InsufficientPrivilegeException
StemAddException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |