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

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

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

 results for the attribute defs save call.
 
 result code:
 code of the result for this attribute def overall
 SUCCESS: means everything ok
 EXCEPTION: cant find the attribute def
 INVALID_QUERY: e.g. if everything blank
 

Author:
vsachdeva

Nested Class Summary
static class WsAttributeDefSaveResults.WsAttributeDefSaveResultsCode
          result code of a request
 
Constructor Summary
WsAttributeDefSaveResults()
           
 
Method Summary
 void assignResultCode(WsAttributeDefSaveResults.WsAttributeDefSaveResultsCode attributeDefSaveResultCode, GrouperVersion clientVersion)
          assign the code from the enum
 void assignResultCodeException(WsAttributeDefSaveResults.WsAttributeDefSaveResultsCode wsAttributeDefSaveResultsCodeOverride, 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
 WsAttributeDefSaveResult[] getResults()
          results for each attribute def sent in
 WsAttributeDefSaveResults.WsAttributeDefSaveResultsCode retrieveResultCode()
          convert the result code back to enum
 void setResponseMetadata(WsResponseMeta responseMetadata1)
           
 void setResultMetadata(WsResultMeta resultMetadata1)
           
 void setResults(WsAttributeDefSaveResult[] results1)
          results for each attribute def 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

WsAttributeDefSaveResults

public WsAttributeDefSaveResults()
Method Detail

getResults

public WsAttributeDefSaveResult[] getResults()
results for each attribute def sent in

Returns:
the results

setResults

public void setResults(WsAttributeDefSaveResult[] results1)
results for each attribute def 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

assignResultCode

public void assignResultCode(WsAttributeDefSaveResults.WsAttributeDefSaveResultsCode attributeDefSaveResultCode,
                             GrouperVersion clientVersion)
assign the code from the enum

Parameters:
attributeDefSaveResultCode -
clientVersion -

assignResultCodeException

public void assignResultCodeException(WsAttributeDefSaveResults.WsAttributeDefSaveResultsCode wsAttributeDefSaveResultsCodeOverride,
                                      java.lang.String theError,
                                      java.lang.Exception e,
                                      GrouperVersion clientVersion)
prcess an exception, log, etc

Parameters:
wsAttributeDefSaveResultsCodeOverride -
theError -
e -
clientVersion -

retrieveResultCode

public WsAttributeDefSaveResults.WsAttributeDefSaveResultsCode retrieveResultCode()
convert the result code back to enum

Returns:
the enum code

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