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
Modifier and TypeClassDescriptionstatic enum
result code of a request -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
assignGroupResult
(Set<Group> groupSet, boolean includeDetail) put a group in the resultsvoid
assignGroupResult
(Set<PITGroup> pitGroupSet) put pit groups in the resultsvoid
assignResultCode
(WsGetGroupsResult.WsGetGroupsResultCode wsGetGroupsResultsCode) assign the code from the enumvoid
assignResultCodeException
(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 enumvoid
setResultMetadata
(WsResultMeta resultMetadata1) void
setWsGroups
(WsGroup[] results1) results for each assignment sent invoid
setWsSubject
(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:ResultMetadataHolder
get the result metadata- Specified by:
getResultMetadata
in 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
-