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

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

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

 results for the add member 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 WsAddMemberResults.WsAddMemberResultsCode
          result code of a request
 
Constructor Summary
WsAddMemberResults()
           
 
Method Summary
 void assignResultCode(WsAddMemberResults.WsAddMemberResultsCode addMemberResultsCode)
          assign the code from the enum
 void assignResultCodeException(WsAddMemberResults.WsAddMemberResultsCode wsAddMemberResultsCodeOverride, java.lang.String theError, java.lang.Exception e)
          prcess an exception, log, etc
 WsResponseMeta getResponseMetadata()
          get the response metadata
 WsResultMeta getResultMetadata()
          get the result metadata
 WsAddMemberResult[] getResults()
          results for each assignment sent in
 java.lang.String[] getSubjectAttributeNames()
          attributes of subjects returned, in same order as the data
 WsGroup getWsGroupAssigned()
          group assigned to
 WsAddMemberResults.WsAddMemberResultsCode retrieveResultCode()
          convert the result code back to enum
 void setResponseMetadata(WsResponseMeta responseMetadata1)
           
 void setResultMetadata(WsResultMeta resultMetadata1)
           
 void setResults(WsAddMemberResult[] results1)
          results for each assignment sent in
 void setSubjectAttributeNames(java.lang.String[] attributeNamesa)
          attributes of subjects returned, in same order as the data
 void setWsGroupAssigned(WsGroup theWsGroupLookupAssigned)
          group assigned to
 boolean tallyResults(GrouperTransactionType grouperTransactionType, java.lang.String theSummary)
          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

WsAddMemberResults

public WsAddMemberResults()
Method Detail

assignResultCode

public void assignResultCode(WsAddMemberResults.WsAddMemberResultsCode addMemberResultsCode)
assign the code from the enum

Parameters:
addMemberResultsCode -

retrieveResultCode

public WsAddMemberResults.WsAddMemberResultsCode retrieveResultCode()
convert the result code back to enum

Returns:
the enum code

assignResultCodeException

public void assignResultCodeException(WsAddMemberResults.WsAddMemberResultsCode wsAddMemberResultsCodeOverride,
                                      java.lang.String theError,
                                      java.lang.Exception e)
prcess an exception, log, etc

Parameters:
wsAddMemberResultsCodeOverride -
theError -
e -

tallyResults

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

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

getResults

public WsAddMemberResult[] getResults()
results for each assignment sent in

Returns:
the results

setResults

public void setResults(WsAddMemberResult[] results1)
results for each assignment sent in

Parameters:
results1 - the results to set

getWsGroupAssigned

public WsGroup getWsGroupAssigned()
group assigned to

Returns:
the wsGroupLookup

setWsGroupAssigned

public void setWsGroupAssigned(WsGroup theWsGroupLookupAssigned)
group assigned to

Parameters:
theWsGroupLookupAssigned - the wsGroupLookup 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

getSubjectAttributeNames

public java.lang.String[] getSubjectAttributeNames()
attributes of subjects returned, in same order as the data

Returns:
the attributeNames

setSubjectAttributeNames

public void setSubjectAttributeNames(java.lang.String[] attributeNamesa)
attributes of subjects returned, in same order as the data

Parameters:
attributeNamesa - the attributeNames to set

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()

setResultMetadata

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

setResponseMetadata

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