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

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

public class WsExternalSubjectToSave
extends java.lang.Object

 Class to save a external subject via web service
 
 

Author:
mchyzer

Constructor Summary
WsExternalSubjectToSave()
           
 
Method Summary
 java.lang.String getSaveMode()
          if the save should be constrained to INSERT, UPDATE, or INSERT_OR_UPDATE (default)
 WsExternalSubject getWsExternalSubject()
           
 WsExternalSubjectLookup getWsExternalSubjectLookup()
           
 ExternalSubject save(GrouperSession grouperSession)
          save this external subject
 SaveResultType saveResultType()
          get the save type
 void setSaveMode(java.lang.String saveMode1)
          if the save should be constrained to INSERT, UPDATE, or INSERT_OR_UPDATE (default)
 void setWsExternalSubject(WsExternalSubject wsExternalSubject1)
           
 void setWsExternalSubjectLookup(WsExternalSubjectLookup wsExternalSubjectLookup1)
           
 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

WsExternalSubjectToSave

public WsExternalSubjectToSave()
Method Detail

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)


save

public ExternalSubject save(GrouperSession grouperSession)
save this external subject

Parameters:
grouperSession - to save
Returns:
the stem that was inserted or updated

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

getWsExternalSubjectLookup

public WsExternalSubjectLookup getWsExternalSubjectLookup()
Returns:
the wsExternalSubjectLookup

setWsExternalSubjectLookup

public void setWsExternalSubjectLookup(WsExternalSubjectLookup wsExternalSubjectLookup1)
Parameters:
wsExternalSubjectLookup1 - the wsGroupLookup to set

getWsExternalSubject

public WsExternalSubject getWsExternalSubject()
Returns:
the wsGroup

setWsExternalSubject

public void setWsExternalSubject(WsExternalSubject wsExternalSubject1)
Parameters:
wsExternalSubject1 - the wsGroup to set