Package ca.cdr.api.fhirgw.model
Class OperationResponsesAccumulator
java.lang.Object
ca.cdr.api.fhirgw.model.OperationResponsesAccumulator
- All Implemented Interfaces:
IResultsAccumulator<OperationResponse>
,ISearchResultsAccumulator
public class OperationResponsesAccumulator
extends Object
implements IResultsAccumulator<OperationResponse>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accumulate
(List<IBaseResource> theResults, OperationResponse theResponse, String theTargetId) Accumulates a list of resources that was originally obtained from the RESPONSE and processed by interceptors if applicable.void
addResults
(String theTargetId, List<IBaseResource> theResults, int theTotal) getIncludeResults
(String theTargetId) getMatchedResults
(String theTargetId) getOutcomeResults
(String theTargetId) getPageableResults
(String theTargetId) getResults
(String theTargetId) int
getTotal()
boolean
getUncategorizedResults
(String theTargetId) boolean
void
removeResults
(String theTargetId, List<IBaseResource> theResultsToBeRemoved) void
setTotalOmitted
(boolean theTotalOmitted)
-
Constructor Details
-
OperationResponsesAccumulator
public OperationResponsesAccumulator() -
OperationResponsesAccumulator
-
-
Method Details
-
isAcceptingMoreOperationResponses
-
getResults
-
accumulate
public void accumulate(List<IBaseResource> theResults, OperationResponse theResponse, String theTargetId) Accumulates a list of resources that was originally obtained from the RESPONSE and processed by interceptors if applicable.- Specified by:
accumulate
in interfaceIResultsAccumulator<OperationResponse>
- Parameters:
theResults
- the list of resources processed by interceptors to accumulatetheResponse
- the original response from which a list of resources was obtained and submitted to interceptorstheTargetId
- the id of the target that returned the RESPONSE
-
addResults
- Specified by:
addResults
in interfaceISearchResultsAccumulator
-
getResults
- Specified by:
getResults
in interfaceISearchResultsAccumulator
-
getMatchedResults
- Specified by:
getMatchedResults
in interfaceISearchResultsAccumulator
-
getPageableResults
- Specified by:
getPageableResults
in interfaceISearchResultsAccumulator
-
getIncludeResults
- Specified by:
getIncludeResults
in interfaceISearchResultsAccumulator
-
getOutcomeResults
- Specified by:
getOutcomeResults
in interfaceISearchResultsAccumulator
-
getUncategorizedResults
- Specified by:
getUncategorizedResults
in interfaceISearchResultsAccumulator
-
removeResults
- Specified by:
removeResults
in interfaceISearchResultsAccumulator
-
getTotal
- Specified by:
getTotal
in interfaceISearchResultsAccumulator
-
getTotalOmitted
- Specified by:
getTotalOmitted
in interfaceISearchResultsAccumulator
-
setTotalOmitted
- Specified by:
setTotalOmitted
in interfaceISearchResultsAccumulator
-