Class WsGetGroupsResult
java.lang.Object
edu.internet2.middleware.grouper.ws.coresoap.WsGetGroupsResult
- All Implemented Interfaces:
ResultMetadataHolder
results for the get groups call. result code: code of the result for this group overall SUCCESS: means everything ok SUBJECT_NOT_FOUND: cant find the subject SUBJECT_DUPLICATE: found multiple groups EXCEPTION
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumresult code of a request -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidassignGroupResult(Set<Group> groupSet, boolean includeDetail) put a group in the resultsvoidassignGroupResult(Set<PITGroup> pitGroupSet) put pit groups in the resultsvoidassignResultCode(WsGetGroupsResult.WsGetGroupsResultCode wsGetGroupsResultsCode) assign the code from the enumvoidassignResultCodeException(WsGetGroupsResult.WsGetGroupsResultCode wsGetGroupsResultsCodeOverride, String theError, WsSubjectLookup wsSubjectLookup, Exception e) prcess an exception, log, etcget the result metadataWsGroup[]results for each assignment sent insubject that was addedconvert string to result codeconvert the result code back to enumvoidsetResultMetadata(WsResultMeta resultMetadata1) voidsetWsGroups(WsGroup[] results1) results for each assignment sent invoidsetWsSubject(WsSubject wsSubject1) subject that was added
-
Constructor Details
-
WsGetGroupsResult
public WsGetGroupsResult()
-
-
Method Details
-
assignResultCode
assign the code from the enum- Parameters:
wsGetGroupsResultsCode-
-
retrieveResultCode
convert the result code back to enum- Returns:
- the enum code
-
getWsGroups
results for each assignment sent in- Returns:
- the results
-
setWsGroups
results for each assignment sent in- Parameters:
results1- the results to set
-
assignResultCodeException
public void assignResultCodeException(WsGetGroupsResult.WsGetGroupsResultCode wsGetGroupsResultsCodeOverride, String theError, WsSubjectLookup wsSubjectLookup, Exception e) prcess an exception, log, etc- Parameters:
wsGetGroupsResultsCodeOverride-wsAddMemberResultsCodeOverride-theError-wsSubjectLookup- is current subjecte-
-
assignGroupResult
put a group in the results- Parameters:
includeDetail- true if the detail for each group should be includedgroupSet-
-
assignGroupResult
put pit groups in the results- Parameters:
pitGroupSet-
-
getResultMetadata
Description copied from interface:ResultMetadataHolderget the result metadata- Specified by:
getResultMetadatain interfaceResultMetadataHolder- Returns:
- the resultMetadata
-
getWsSubject
subject that was added- Returns:
- the subjectId
-
setWsSubject
subject that was added- Parameters:
wsSubject1- the wsSubject1 to set
-
setResultMetadata
- Parameters:
resultMetadata1- the resultMetadata to set
-
resultCode
convert string to result code- Returns:
- the result code
-