public class GroupSave extends Object
Constructor and Description |
---|
GroupSave(GrouperSession theGrouperSession)
create a new group save
|
Modifier and Type | Method and Description |
---|---|
GroupSave |
assignCreateParentStemsIfNotExist(boolean theCreateParentStemsIfNotExist)
assign create parents if not exist
|
GroupSave |
assignDescription(String theDescription)
assign description
|
GroupSave |
assignDisplayExtension(String theDisplayExtension)
display extension
|
GroupSave |
assignDisplayName(String theDisplayName) |
GroupSave |
assignGroupNameToEdit(String theGroupNameToEdit)
group name to edit
|
GroupSave |
assignIdIndex(Long theIdIndex)
assign id_index
|
GroupSave |
assignName(String name1)
name
|
GroupSave |
assignPrivAllAdmin(boolean thePrivAllAdmin)
assign priv admin to be different than the defaults for grouperAll
|
GroupSave |
assignPrivAllAttrRead(boolean thePrivAllAttrRead)
assign priv attr read to be different than the defaults for grouperAll
|
GroupSave |
assignPrivAllAttrUpdate(boolean thePrivAllAttrUpdate)
assign priv attr update to be different than the defaults for grouperAll
|
GroupSave |
assignPrivAllOptin(boolean thePrivAllOptin)
assign priv optin to be different than the defaults for grouperAll
|
GroupSave |
assignPrivAllOptout(boolean thePrivAllOptout)
assign priv optout to be different than the defaults for grouperAll
|
GroupSave |
assignPrivAllRead(boolean thePrivAllRead)
assign priv read to be different than the defaults for grouperAll
|
GroupSave |
assignPrivAllUpdate(boolean thePrivAllUpdate)
assign priv update to be different than the defaults for grouperAll
|
GroupSave |
assignPrivAllView(boolean thePrivAllView)
assign priv view to be different than the defaults for grouperAll
|
GroupSave |
assignSaveMode(SaveMode theSaveMode)
assign save mode
|
GroupSave |
assignTypeOfGroup(TypeOfGroup theTypeOfGroup)
assign save mode
|
GroupSave |
assignUuid(String theUuid)
uuid
|
SaveResultType |
getSaveResultType()
get the save type
|
Group |
save()
create or update a group.
|
Group |
saveUnchecked()
Deprecated.
use save() instead
|
public GroupSave(GrouperSession theGrouperSession)
theGrouperSession
- public GroupSave assignPrivAllAdmin(boolean thePrivAllAdmin)
thePrivAllAdmin
- public GroupSave assignPrivAllView(boolean thePrivAllView)
thePrivAllView
- public GroupSave assignPrivAllRead(boolean thePrivAllRead)
thePrivAllRead
- public GroupSave assignPrivAllUpdate(boolean thePrivAllUpdate)
thePrivAllUpdate
- public GroupSave assignPrivAllOptin(boolean thePrivAllOptin)
thePrivAllOptin
- public GroupSave assignPrivAllOptout(boolean thePrivAllOptout)
thePrivAllOptout
- public GroupSave assignPrivAllAttrRead(boolean thePrivAllAttrRead)
thePrivAllAttrRead
- public GroupSave assignPrivAllAttrUpdate(boolean thePrivAllAttrUpdate)
thePrivAllAttrUpdate
- public GroupSave assignGroupNameToEdit(String theGroupNameToEdit)
theGroupNameToEdit
- public GroupSave assignDisplayName(String theDisplayName)
theDisplayName
- public GroupSave assignDisplayExtension(String theDisplayExtension)
theDisplayExtension
- public GroupSave assignDescription(String theDescription)
theDescription
- public GroupSave assignIdIndex(Long theIdIndex)
theIdIndex
- public GroupSave assignSaveMode(SaveMode theSaveMode)
theSaveMode
- public GroupSave assignTypeOfGroup(TypeOfGroup theTypeOfGroup)
theTypeOfGroup
- public GroupSave assignCreateParentStemsIfNotExist(boolean theCreateParentStemsIfNotExist)
theCreateParentStemsIfNotExist
- public SaveResultType getSaveResultType()
@Deprecated public Group saveUnchecked()
create or update a group. Do not throw checked exceptions, wrap in unchecked 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
public Group save() throws StemNotFoundException, InsufficientPrivilegeException, StemAddException, GroupModifyException, GroupNotFoundException, GroupAddException
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
Copyright © 2016 Internet2. All rights reserved.