Class WsStemToSave
java.lang.Object
edu.internet2.middleware.grouper.ws.coresoap.WsStemToSave
Class to save a stem via web service
-
Constructor Summary
Constructors -
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 typevoidsetCreateParentStemsIfNotExist(String createParentStemsIfNotExist1) if should create parent stems if not existvoidsetSaveMode(String saveMode1) if the save should be constrained to INSERT, UPDATE, or INSERT_OR_UPDATE (default)voidvoidsetWsStemLookup(WsStemLookup wsStemLookup1) toString()make sure this is an explicit toStringvoidvalidate()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:
StemNotFoundExceptionStemNotFoundExceptionStemAddExceptionInsufficientPrivilegeExceptionStemModifyExceptionStemAddException
-
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
-