public class EntitySave extends Object
Constructor and Description |
---|
EntitySave(GrouperSession theGrouperSession)
create a new entity save
|
Modifier and Type | Method and Description |
---|---|
EntitySave |
assignCreateParentStemsIfNotExist(boolean theCreateParentStemsIfNotExist)
assign create parents if not exist
|
EntitySave |
assignDescription(String theDescription)
assign description
|
EntitySave |
assignDisplayExtension(String theDisplayExtension)
display extension
|
EntitySave |
assignDisplayName(String theDisplayName) |
EntitySave |
assignEntityNameToEdit(String theGroupNameToEdit)
group name to edit
|
EntitySave |
assignName(String name1)
name
|
EntitySave |
assignSaveMode(SaveMode theSaveMode)
assign save mode
|
EntitySave |
assignUuid(String theUuid)
uuid
|
SaveResultType |
getSaveResultType()
get the save type
|
Entity |
save()
create or update a group.
|
public EntitySave(GrouperSession theGrouperSession)
theGrouperSession
- public EntitySave assignEntityNameToEdit(String theGroupNameToEdit)
theGroupNameToEdit
- public EntitySave assignUuid(String theUuid)
theUuid
- public EntitySave assignDisplayName(String theDisplayName)
theDisplayName
- public EntitySave assignName(String name1)
name1
- public EntitySave assignDisplayExtension(String theDisplayExtension)
theDisplayExtension
- public EntitySave assignDescription(String theDescription)
theDescription
- public EntitySave assignSaveMode(SaveMode theSaveMode)
theSaveMode
- public EntitySave assignCreateParentStemsIfNotExist(boolean theCreateParentStemsIfNotExist)
theCreateParentStemsIfNotExist
- public SaveResultType getSaveResultType()
public Entity save()
create or update a group. Note this will not rename a group at this time (might in future) This is a static method since setters to Group objects persist to the DB Steps: 1. Find the group by groupNameToEdit 2. Internally set all the fields of the stem (no need to reset if already the same) 3. Store the group (insert or update) if needed 4. Return the group 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
GroupModifyException
GroupNotFoundException
GroupAddException
Copyright © 2016 Internet2. All rights reserved.