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

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

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

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

Author:
mchyzer

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

WsAttributeDefNameSaveResults

public WsAttributeDefNameSaveResults()
Method Detail

getResults

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

Returns:
the results

setResults

public void setResults(WsAttributeDefNameSaveResult[] results1)
results for each attribute def name 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(WsAttributeDefNameSaveResults.WsAttributeDefNameSaveResultsCode groupSaveResultsCode,
                             GrouperVersion clientVersion)
assign the code from the enum

Parameters:
groupSaveResultsCode -
clientVersion -

assignResultCodeException

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

Parameters:
wsGroupSaveResultsCodeOverride -
theError -
e -
clientVersion -

retrieveResultCode

public WsAttributeDefNameSaveResults.WsAttributeDefNameSaveResultsCode 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