Class WsStemToSave
java.lang.Object
edu.internet2.middleware.grouper.ws.coresoap.WsStemToSave
Class to save a stem via web service
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncopy
(GrouperSession grouperSession, Stem toStem, Boolean copyPrivilegesOfGroup, Boolean copyGroupAsPrivilege, Boolean copyListMembersOfGroup, Boolean copyListGroupAsMember, Boolean copyAttributes, Boolean copyPrivilegesOfStem) copy this stemif 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 stemsave
(GrouperSession grouperSession) save this stemget 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
void
setWsStemLookup
(WsStemLookup wsStemLookup1) toString()
make sure this is an explicit toStringvoid
validate()
validate the settings (e.g.
-
Constructor Details
-
WsStemToSave
public WsStemToSave()
-
-
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
public Stem save(GrouperSession grouperSession) throws StemNotFoundException, StemNotFoundException, StemAddException, InsufficientPrivilegeException, StemModifyException, StemAddException save this stem- Parameters:
grouperSession
- to save- Returns:
- the stem that was inserted or updated
- Throws:
StemNotFoundException
StemNotFoundException
StemAddException
InsufficientPrivilegeException
StemModifyException
StemAddException
-
move
move this stem- Parameters:
grouperSession
- to savetoStem
-moveAssignAlternateName
-- Returns:
- the stem that was moved
-
copy
public Stem copy(GrouperSession grouperSession, Stem toStem, Boolean copyPrivilegesOfGroup, Boolean copyGroupAsPrivilege, Boolean copyListMembersOfGroup, Boolean copyListGroupAsMember, Boolean copyAttributes, Boolean copyPrivilegesOfStem) copy this stem- Parameters:
grouperSession
- to savetoStem
-copyPrivilegesOfGroup
-copyGroupAsPrivilege
-copyListMembersOfGroup
-copyListGroupAsMember
-copyAttributes
-moveAssignAlternateName
-copyPrivilegesOfStem
-- 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
-
getWsStemLookup
- Returns:
- the wsStemLookup
-
setWsStemLookup
- Parameters:
wsStemLookup1
- the wsStemLookup to set
-
getWsStem
- Returns:
- the wsStem
-
setWsStem
- Parameters:
wsStem1
- the wsStem to set
-