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

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

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

 results for the get memberships call, or the get memberships lite call
 
 result code:
 code of the result for this group overall
 SUCCESS: means everything ok
 GROUP_NOT_FOUND: cant find the group
 INVALID_QUERY: bad inputs
 EXCEPTION: something bad happened
 

Author:
mchyzer

Nested Class Summary
static class WsGetMembershipsResults.WsGetMembershipsResultsCode
          result code of a request
 
Constructor Summary
WsGetMembershipsResults()
           
 
Method Summary
 void assignResult(java.util.Set<java.lang.Object[]> membershipSet, boolean includeGroupDetail, boolean includeSubjectDetail, java.lang.String[] theSubjectAttributeNames)
          convert members to subject results
 void assignResultCode(WsGetMembershipsResults.WsGetMembershipsResultsCode getMembersResultCode)
          assign the code from the enum
 void assignResultCodeException(WsGetMembershipsResults.WsGetMembershipsResultsCode wsGetMembershipsResultsCodeOverride, java.lang.String theError, java.lang.Exception e)
          process an exception, log, etc
 WsResponseMeta getResponseMetadata()
          get the response metadata
 WsResultMeta getResultMetadata()
          get the result metadata
 java.lang.String[] getSubjectAttributeNames()
          attributes of subjects returned, in same order as the data
 WsAttributeDef[] getWsAttributeDefs()
          attributeDefs that are in the results
 WsGroup[] getWsGroups()
           
 WsMembership[] getWsMemberships()
          results for each assignment sent in
 WsStem[] getWsStems()
          stems that are in the results
 WsSubject[] getWsSubjects()
          subjects that are in the results
 void setResponseMetadata(WsResponseMeta responseMetadata1)
           
 void setResultMetadata(WsResultMeta resultMetadata1)
          result metadata
 void setSubjectAttributeNames(java.lang.String[] attributeNamesa)
          attributes of subjects returned, in same order as the data
 void setWsAttributeDefs(WsAttributeDef[] wsAttributeDefs1)
          attributeDefs that are in the results
 void setWsGroups(WsGroup[] wsGroup1)
           
 void setWsMemberships(WsMembership[] results1)
          results for each assignment sent in
 void setWsStems(WsStem[] wsStems1)
          stems that are in the results
 void setWsSubjects(WsSubject[] wsSubjects1)
          subjects that are in the results
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WsGetMembershipsResults

public WsGetMembershipsResults()
Method Detail

setResultMetadata

public void setResultMetadata(WsResultMeta resultMetadata1)
result metadata

Parameters:
resultMetadata1 -

assignResultCode

public void assignResultCode(WsGetMembershipsResults.WsGetMembershipsResultsCode getMembersResultCode)
assign the code from the enum

Parameters:
getMembersResultCode -

getWsAttributeDefs

public WsAttributeDef[] getWsAttributeDefs()
attributeDefs that are in the results

Returns:
attributeDefs

setWsAttributeDefs

public void setWsAttributeDefs(WsAttributeDef[] wsAttributeDefs1)
attributeDefs that are in the results

Parameters:
wsAttributeDefs1 -

getWsStems

public WsStem[] getWsStems()
stems that are in the results

Returns:
stems

setWsStems

public void setWsStems(WsStem[] wsStems1)
stems that are in the results

Parameters:
wsStems1 -

getWsSubjects

public WsSubject[] getWsSubjects()
subjects that are in the results

Returns:
the subjects

setWsSubjects

public void setWsSubjects(WsSubject[] wsSubjects1)
subjects that are in the results

Parameters:
wsSubjects1 -

getWsMemberships

public WsMembership[] getWsMemberships()
results for each assignment sent in

Returns:
the results

setWsMemberships

public void setWsMemberships(WsMembership[] results1)
results for each assignment sent in

Parameters:
results1 - the results to set

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

getWsGroups

public WsGroup[] getWsGroups()
Returns:
the wsGroups

setWsGroups

public void setWsGroups(WsGroup[] wsGroup1)
Parameters:
wsGroup1 - the wsGroups to set

assignResult

public void assignResult(java.util.Set<java.lang.Object[]> membershipSet,
                         boolean includeGroupDetail,
                         boolean includeSubjectDetail,
                         java.lang.String[] theSubjectAttributeNames)
convert members to subject results

Parameters:
membershipSet -
includeGroupDetail -
includeSubjectDetail -
theSubjectAttributeNames -
returnedGroups -
returnedMembers -

assignResultCodeException

public void assignResultCodeException(WsGetMembershipsResults.WsGetMembershipsResultsCode wsGetMembershipsResultsCodeOverride,
                                      java.lang.String theError,
                                      java.lang.Exception e)
process an exception, log, etc

Parameters:
wsGetMembershipsResultsCodeOverride -
theError -
e -

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