Class WsAttributeDefToSave
java.lang.Object
edu.internet2.middleware.grouper.ws.coresoap.WsAttributeDefToSave
Class to save an attribute def via web service
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionif should create parent stems if not existif the save should be constrained to INSERT, UPDATE, or INSERT_OR_UPDATE (default)save(GrouperSession grouperSession) save this attributeDefget 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)voidsetWsAttributeDef(WsAttributeDef wsAttributeDef1) voidsetWsAttributeDefLookup(WsAttributeDefLookup wsAttributeDefLookup1) toString()make sure this is an explicit toStringvoidvalidate()validate the settings (e.g.
-
Constructor Details
-
WsAttributeDefToSave
public WsAttributeDefToSave()
-
-
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 attributeDef- Parameters:
grouperSession- to save- Returns:
- the attributeDef that was inserted or updated
- Throws:
StemNotFoundExceptionInsufficientPrivilegeException
-
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
-
getWsAttributeDefLookup
- Returns:
- the wsAttributeDefLookup
-
setWsAttributeDefLookup
- Parameters:
wsAttributeDefLookup1- the wsAttributeDefLookup to set
-
getWsAttributeDef
- Returns:
- the wsAttributeDef
-
setWsAttributeDef
- Parameters:
wsAttributeDef1- the wsAttributeDef to set
-