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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccumulate(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.voidaddResults(String theTargetId, List<IBaseResource> theResults, int theTotal) getIncludeResults(String theTargetId) getMatchedResults(String theTargetId) getOutcomeResults(String theTargetId) getPageableResults(String theTargetId) getResults(String theTargetId) intgetTotal()booleangetUncategorizedResults(String theTargetId) booleanvoidremoveResults(String theTargetId, List<IBaseResource> theResultsToBeRemoved) voidsetTotalOmitted(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:
accumulatein 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:
addResultsin interfaceISearchResultsAccumulator
-
getResults
- Specified by:
getResultsin interfaceISearchResultsAccumulator
-
getMatchedResults
- Specified by:
getMatchedResultsin interfaceISearchResultsAccumulator
-
getPageableResults
- Specified by:
getPageableResultsin interfaceISearchResultsAccumulator
-
getIncludeResults
- Specified by:
getIncludeResultsin interfaceISearchResultsAccumulator
-
getOutcomeResults
- Specified by:
getOutcomeResultsin interfaceISearchResultsAccumulator
-
getUncategorizedResults
- Specified by:
getUncategorizedResultsin interfaceISearchResultsAccumulator
-
removeResults
- Specified by:
removeResultsin interfaceISearchResultsAccumulator
-
getTotal
- Specified by:
getTotalin interfaceISearchResultsAccumulator
-
getTotalOmitted
- Specified by:
getTotalOmittedin interfaceISearchResultsAccumulator
-
setTotalOmitted
- Specified by:
setTotalOmittedin interfaceISearchResultsAccumulator
-