Class WsGroupToSave
java.lang.Object
edu.internet2.middleware.grouper.ws.coresoap.WsGroupToSave
Class to save a group via web service
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncopy
(GrouperSession grouperSession, Stem toStem, Boolean copyPrivilegesOfGroup, Boolean copyGroupAsPrivilege, Boolean copyListMembersOfGroup, Boolean copyListGroupAsMember, Boolean copyAttributes) copy this groupif should create parent stems if not existif the save should be constrained to INSERT, UPDATE, or INSERT_OR_UPDATE (default)move
(GrouperSession grouperSession, Stem toStem, Boolean moveAssignAlternateName) move this groupsave
(GrouperSession grouperSession, Boolean renameAssignAlternateName) save this groupget the save typevoid
setCreateParentStemsIfNotExist
(String createParentStemsIfNotExist1) if should create parent stems if not existvoid
setSaveMode
(String saveMode1) if the save should be constrained to INSERT, UPDATE, or INSERT_OR_UPDATE (default)void
setWsGroup
(WsGroup wsGroup1) void
setWsGroupLookup
(WsGroupLookup wsGroupLookup1) toString()
make sure this is an explicit toStringvoid
validate()
validate the settings (e.g.
-
Constructor Details
-
WsGroupToSave
public WsGroupToSave()
-
-
Method Details
-
getCreateParentStemsIfNotExist
if should create parent stems if not exist- Returns:
- T or F or null (F)
-
setCreateParentStemsIfNotExist
if should create parent stems if not exist- Parameters:
createParentStemsIfNotExist1
- T or F or null (F)
-
saveResultType
get the save type- Returns:
- save type
-
toString
make sure this is an explicit toString -
validate
public void validate()validate the settings (e.g. that booleans are set correctly) -
save
save this group- Parameters:
grouperSession
- to saverenameAssignAlternateName
-- Returns:
- the stem that was inserted or updated
- Throws:
StemNotFoundException
GroupNotFoundException
GroupNotFoundException
StemAddException
GroupAddException
InsufficientPrivilegeException
GroupModifyException
GroupAddException
AttributeNotFoundException
MemberDeleteException
-
move
move this group- Parameters:
grouperSession
- to savetoStem
-moveAssignAlternateName
-- Returns:
- the group that was moved
-
copy
public Group copy(GrouperSession grouperSession, Stem toStem, Boolean copyPrivilegesOfGroup, Boolean copyGroupAsPrivilege, Boolean copyListMembersOfGroup, Boolean copyListGroupAsMember, Boolean copyAttributes) copy this group- Parameters:
grouperSession
- to savetoStem
-copyPrivilegesOfGroup
-copyGroupAsPrivilege
-copyListMembersOfGroup
-copyListGroupAsMember
-copyAttributes
-moveAssignAlternateName
-- Returns:
- the group that was moved
-
getSaveMode
if the save should be constrained to INSERT, UPDATE, or INSERT_OR_UPDATE (default)- Returns:
- the saveMode
-
setSaveMode
if the save should be constrained to INSERT, UPDATE, or INSERT_OR_UPDATE (default)- Parameters:
saveMode1
- the saveMode to set
-
getWsGroupLookup
- Returns:
- the wsGroupLookup
-
setWsGroupLookup
- Parameters:
wsGroupLookup1
- the wsGroupLookup to set
-
getWsGroup
- Returns:
- the wsGroup
-
setWsGroup
- Parameters:
wsGroup1
- the wsGroup to set
-