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

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

public class WsAttributeDefNameToSave
extends java.lang.Object

 Class to save an attribute def name via web service
 
 

Author:
mchyzer

Constructor Summary
WsAttributeDefNameToSave()
           
 
Method Summary
 java.lang.String getCreateParentStemsIfNotExist()
          if should create parent stems if not exist
 java.lang.String getSaveMode()
          if the save should be constrained to INSERT, UPDATE, or INSERT_OR_UPDATE (default)
 WsAttributeDefName getWsAttributeDefName()
          attribute def name to save
 WsAttributeDefNameLookup getWsAttributeDefNameLookup()
          attribute def name lookup (blank if insert)
 AttributeDefName save(GrouperSession grouperSession)
          save this attributeDefName
 SaveResultType saveResultType()
          get the save type
 void setCreateParentStemsIfNotExist(java.lang.String createParentStemsIfNotExist1)
          if should create parent stems if not exist
 void setSaveMode(java.lang.String saveMode1)
          if the save should be constrained to INSERT, UPDATE, or INSERT_OR_UPDATE (default)
 void setWsAttributeDefName(WsAttributeDefName wsAttributeDefName1)
          attribute def name to save
 void setWsAttributeDefNameLookup(WsAttributeDefNameLookup wsAttributeDefNameLookup1)
          attribute def name lookup (blank if insert)
 java.lang.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

WsAttributeDefNameToSave

public WsAttributeDefNameToSave()
Method Detail

getCreateParentStemsIfNotExist

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

Returns:
T or F or null (F)

setCreateParentStemsIfNotExist

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

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

getSaveMode

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

Returns:
the saveMode

setSaveMode

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

Parameters:
saveMode1 - the saveMode to set

getWsAttributeDefNameLookup

public WsAttributeDefNameLookup getWsAttributeDefNameLookup()
attribute def name lookup (blank if insert)

Returns:
the wsAttributeDefNameLookup

setWsAttributeDefNameLookup

public void setWsAttributeDefNameLookup(WsAttributeDefNameLookup wsAttributeDefNameLookup1)
attribute def name lookup (blank if insert)

Parameters:
wsAttributeDefNameLookup1 - the wsAttributeDefNameLookup to set

getWsAttributeDefName

public WsAttributeDefName getWsAttributeDefName()
attribute def name to save

Returns:
the wsAttributeDefName

setWsAttributeDefName

public void setWsAttributeDefName(WsAttributeDefName wsAttributeDefName1)
attribute def name to save

Parameters:
wsAttributeDefName1 - the wsAttributeDefName to set

save

public AttributeDefName save(GrouperSession grouperSession)
save this attributeDefName

Parameters:
grouperSession - to save
Returns:
the stem that was inserted or updated
Throws:
StemNotFoundException
StemAddException
AttributeDefNameAddException
InsufficientPrivilegeException
AttributeDefNameAddAlreadyExistsException

saveResultType

public SaveResultType saveResultType()
get the save type

Returns:
save type

toString

public java.lang.String toString()
make sure this is an explicit toString

Overrides:
toString in class java.lang.Object

validate

public void validate()
validate the settings (e.g. that booleans are set correctly)