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

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

public class WsGroupSaveResults
extends java.lang.Object
implements WsResponseBean, ResultMetadataHolder

 results for the groups save call.
 
 result code:
 code of the result for this group overall
 SUCCESS: means everything ok
 GROUP_NOT_FOUND: cant find the group
 GROUP_DUPLICATE: found multiple groups
 

Author:
mchyzer

Nested Class Summary
static class WsGroupSaveResults.WsGroupSaveResultsCode
          result code of a request
 
Constructor Summary
WsGroupSaveResults()
           
 
Method Summary
 void assignResultCode(WsGroupSaveResults.WsGroupSaveResultsCode groupSaveResultsCode, GrouperVersion clientVersion)
          assign the code from the enum
 void assignResultCodeException(WsGroupSaveResults.WsGroupSaveResultsCode wsGroupSaveResultsCodeOverride, java.lang.String theError, java.lang.Exception e, GrouperVersion clientVersion)
          prcess an exception, log, etc
 WsResponseMeta getResponseMetadata()
          get the response metadata
 WsResultMeta getResultMetadata()
          get the result metadata
 WsGroupSaveResult[] getResults()
          results for each deletion sent in
 WsGroupSaveResults.WsGroupSaveResultsCode retrieveResultCode()
          convert the result code back to enum
 void setResponseMetadata(WsResponseMeta responseMetadata1)
           
 void setResultMetadata(WsResultMeta resultMetadata1)
           
 void setResults(WsGroupSaveResult[] results1)
          results for each deletion sent in
 boolean tallyResults(GrouperTransactionType grouperTransactionType, java.lang.String theSummary, GrouperVersion clientVersion)
          make sure if there is an error, to record that as an error
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WsGroupSaveResults

public WsGroupSaveResults()
Method Detail

assignResultCodeException

public void assignResultCodeException(WsGroupSaveResults.WsGroupSaveResultsCode wsGroupSaveResultsCodeOverride,
                                      java.lang.String theError,
                                      java.lang.Exception e,
                                      GrouperVersion clientVersion)
prcess an exception, log, etc

Parameters:
wsGroupSaveResultsCodeOverride -
theError -
e -
clientVersion -

assignResultCode

public void assignResultCode(WsGroupSaveResults.WsGroupSaveResultsCode groupSaveResultsCode,
                             GrouperVersion clientVersion)
assign the code from the enum

Parameters:
groupSaveResultsCode -
clientVersion -

tallyResults

public boolean tallyResults(GrouperTransactionType grouperTransactionType,
                            java.lang.String theSummary,
                            GrouperVersion clientVersion)
make sure if there is an error, to record that as an error

Parameters:
grouperTransactionType - for request
theSummary -
clientVersion -
Returns:
true if success, false if not

retrieveResultCode

public WsGroupSaveResults.WsGroupSaveResultsCode retrieveResultCode()
convert the result code back to enum

Returns:
the enum code

getResults

public WsGroupSaveResult[] getResults()
results for each deletion sent in

Returns:
the results

setResults

public void setResults(WsGroupSaveResult[] results1)
results for each deletion sent in

Parameters:
results1 - the results to set

getResultMetadata

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

Specified by:
getResultMetadata in interface WsResponseBean
Specified by:
getResultMetadata in interface ResultMetadataHolder
Returns:
the resultMetadata

getResponseMetadata

public WsResponseMeta getResponseMetadata()
Description copied from interface: WsResponseBean
get the response metadata

Specified by:
getResponseMetadata in interface WsResponseBean
Returns:
the response metadata
See Also:
WsResponseBean.getResponseMetadata()

setResponseMetadata

public void setResponseMetadata(WsResponseMeta responseMetadata1)
Parameters:
responseMetadata1 - the responseMetadata to set

setResultMetadata

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