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

java.lang.Object
  extended by edu.internet2.middleware.grouper.ws.coresoap.WsGroupSaveResult
All Implemented Interfaces:
ResultMetadataHolder

public class WsGroupSaveResult
extends Object
implements ResultMetadataHolder

Result of one group being saved. The number of these result objects will equal the number of groups sent in to the method to be saved

Author:
mchyzer

Nested Class Summary
static class WsGroupSaveResult.WsGroupSaveResultCode
          result code of a request
 
Constructor Summary
WsGroupSaveResult()
          empty
WsGroupSaveResult(WsGroupLookup wsGroupLookup)
          construct initially with lookup
 
Method Summary
 void assignResultCode(WsGroupSaveResult.WsGroupSaveResultCode groupSaveResultCode, GrouperVersion clientVersion)
          assign the code from the enum
 void assignResultCodeException(Exception e, WsGroupToSave wsGroupToSave, GrouperVersion clientVersion)
          assign a resultcode of exception, and process/log the exception
 WsResultMeta getResultMetadata()
          get the result metadata
 WsGroup getWsGroup()
           
 WsGroupSaveResult.WsGroupSaveResultCode resultCode()
          convert string to result code
 void setResultMetadata(WsResultMeta resultMetadata1)
           
 void setWsGroup(WsGroup wsGroup1)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WsGroupSaveResult

public WsGroupSaveResult()
empty


WsGroupSaveResult

public WsGroupSaveResult(WsGroupLookup wsGroupLookup)
construct initially with lookup

Parameters:
wsGroupLookup -
Method Detail

assignResultCode

public void assignResultCode(WsGroupSaveResult.WsGroupSaveResultCode groupSaveResultCode,
                             GrouperVersion clientVersion)
assign the code from the enum

Parameters:
groupSaveResultCode -
clientVersion -

getResultMetadata

public WsResultMeta getResultMetadata()
Description copied from interface: ResultMetadataHolder
get the result metadata

Specified by:
getResultMetadata in interface ResultMetadataHolder
Returns:
the resultMetadata

getWsGroup

public WsGroup getWsGroup()
Returns:
the wsGroup

setWsGroup

public void setWsGroup(WsGroup wsGroup1)
Parameters:
wsGroup1 - the wsGroup to set

setResultMetadata

public void setResultMetadata(WsResultMeta resultMetadata1)
Parameters:
resultMetadata1 - the resultMetadata to set

assignResultCodeException

public void assignResultCodeException(Exception e,
                                      WsGroupToSave wsGroupToSave,
                                      GrouperVersion clientVersion)
assign a resultcode of exception, and process/log the exception

Parameters:
e -
wsGroupToSave -
clientVersion -

resultCode

public WsGroupSaveResult.WsGroupSaveResultCode resultCode()
convert string to result code

Returns:
the result code