edu.internet2.middleware.grouper.ws.coresoap
Class WsStemToSave

java.lang.Object
  extended by edu.internet2.middleware.grouper.ws.coresoap.WsStemToSave

public class WsStemToSave
extends Object

 Class to save a stem via web service
 
 

Author:
mchyzer

Constructor Summary
WsStemToSave()
           
 
Method Summary
 String getCreateParentStemsIfNotExist()
          if should create parent stems if not exist
 String getSaveMode()
          if the save should be constrained to INSERT, UPDATE, or INSERT_OR_UPDATE (default)
 WsStem getWsStem()
           
 WsStemLookup getWsStemLookup()
           
 Stem save(GrouperSession grouperSession)
          save this stem
 SaveResultType saveResultType()
          get the save type
 void setCreateParentStemsIfNotExist(String createParentStemsIfNotExist1)
          if should create parent stems if not exist
 void setSaveMode(String saveMode1)
          if the save should be constrained to INSERT, UPDATE, or INSERT_OR_UPDATE (default)
 void setWsStem(WsStem wsStem1)
           
 void setWsStemLookup(WsStemLookup wsStemLookup1)
           
 String toString()
          make sure this is an explicit toString
 void validate()
          validate the settings (e.g.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WsStemToSave

public WsStemToSave()
Method Detail

getCreateParentStemsIfNotExist

public String getCreateParentStemsIfNotExist()
if should create parent stems if not exist

Returns:
T or F or null (F)

setCreateParentStemsIfNotExist

public void setCreateParentStemsIfNotExist(String createParentStemsIfNotExist1)
if should create parent stems if not exist

Parameters:
createParentStemsIfNotExist1 - T or F or null (F)

saveResultType

public SaveResultType saveResultType()
get the save type

Returns:
save type

toString

public String toString()
make sure this is an explicit toString

Overrides:
toString in class Object

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

getSaveMode

public String getSaveMode()
if the save should be constrained to INSERT, UPDATE, or INSERT_OR_UPDATE (default)

Returns:
the saveMode

setSaveMode

public void setSaveMode(String saveMode1)
if the save should be constrained to INSERT, UPDATE, or INSERT_OR_UPDATE (default)

Parameters:
saveMode1 - the saveMode to set

getWsStemLookup

public WsStemLookup getWsStemLookup()
Returns:
the wsStemLookup

setWsStemLookup

public void setWsStemLookup(WsStemLookup wsStemLookup1)
Parameters:
wsStemLookup1 - the wsStemLookup to set

getWsStem

public WsStem getWsStem()
Returns:
the wsStem

setWsStem

public void setWsStem(WsStem wsStem1)
Parameters:
wsStem1 - the wsStem to set