Package com.ibm.fhir.search.context.impl
Class FHIRSearchContextImpl
- java.lang.Object
-
- com.ibm.fhir.core.context.impl.FHIRPagingContextImpl
-
- com.ibm.fhir.search.context.impl.FHIRSearchContextImpl
-
- All Implemented Interfaces:
FHIRPagingContext
,FHIRSearchContext
public class FHIRSearchContextImpl extends FHIRPagingContextImpl implements FHIRSearchContext
-
-
Field Summary
-
Fields inherited from class com.ibm.fhir.core.context.impl.FHIRPagingContextImpl
DEFAULT_LAST_PAGE_NUMBER, DEFAULT_PAGE_NUMBER, DEFAULT_PAGE_SIZE, lastPageNumber, lenient, pageNumber, pageSize, totalCount
-
-
Constructor Summary
Constructors Constructor Description FHIRSearchContextImpl()
-
Method Summary
-
Methods inherited from class com.ibm.fhir.core.context.impl.FHIRPagingContextImpl
getLastPageNumber, getPageNumber, getPageSize, getTotalCount, isLenient, setLastPageNumber, setLenient, setPageNumber, setPageSize, setTotalCount
-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.ibm.fhir.core.context.FHIRPagingContext
getLastPageNumber, getPageNumber, getPageSize, getTotalCount, isLenient, setLastPageNumber, setLenient, setPageNumber, setPageSize, setTotalCount
-
-
-
-
Method Detail
-
getSearchParameters
public List<QueryParameter> getSearchParameters()
- Specified by:
getSearchParameters
in interfaceFHIRSearchContext
-
setSearchParameters
public void setSearchParameters(List<QueryParameter> searchParameters)
- Specified by:
setSearchParameters
in interfaceFHIRSearchContext
-
getSortParameters
public List<SortParameter> getSortParameters()
- Specified by:
getSortParameters
in interfaceFHIRSearchContext
-
setSortParameters
public void setSortParameters(List<SortParameter> sortParameters)
- Specified by:
setSortParameters
in interfaceFHIRSearchContext
-
hasSortParameters
public boolean hasSortParameters()
- Specified by:
hasSortParameters
in interfaceFHIRSearchContext
-
getIncludeParameters
public List<InclusionParameter> getIncludeParameters()
- Specified by:
getIncludeParameters
in interfaceFHIRSearchContext
-
hasIncludeParameters
public boolean hasIncludeParameters()
- Specified by:
hasIncludeParameters
in interfaceFHIRSearchContext
-
getRevIncludeParameters
public List<InclusionParameter> getRevIncludeParameters()
- Specified by:
getRevIncludeParameters
in interfaceFHIRSearchContext
-
hasRevIncludeParameters
public boolean hasRevIncludeParameters()
- Specified by:
hasRevIncludeParameters
in interfaceFHIRSearchContext
-
getElementsParameters
public List<String> getElementsParameters()
Description copied from interface:FHIRSearchContext
Get the list of element names requested to be included in the returned resources.- Specified by:
getElementsParameters
in interfaceFHIRSearchContext
- Returns:
- a list of strings or null to indicate that there is currently no elements filter associated with the search
-
setElementsParameters
public void setElementsParameters(List<String> elementsParameters)
Description copied from interface:FHIRSearchContext
Set the list of element names requested to be included in the returned resources. An empty list of strings will indicate that only mandatory elements should be included in the search result. Null is used to represent "no filter".- Specified by:
setElementsParameters
in interfaceFHIRSearchContext
-
addElementsParameter
public void addElementsParameter(String elementToInclude)
- Specified by:
addElementsParameter
in interfaceFHIRSearchContext
-
hasElementsParameters
public boolean hasElementsParameters()
- Specified by:
hasElementsParameters
in interfaceFHIRSearchContext
- Returns:
- true when the elements parameter is not null
-
hasSummaryParameter
public boolean hasSummaryParameter()
- Specified by:
hasSummaryParameter
in interfaceFHIRSearchContext
- Returns:
- true when the summary parameter is not null
-
getSummaryParameter
public SummaryValueSet getSummaryParameter()
Description copied from interface:FHIRSearchContext
Get the summary parameter.- Specified by:
getSummaryParameter
in interfaceFHIRSearchContext
- Returns:
- the value of the summary parameter
-
setSummaryParameter
public void setSummaryParameter(SummaryValueSet summary)
Description copied from interface:FHIRSearchContext
Set the value of the summary parameter.- Specified by:
setSummaryParameter
in interfaceFHIRSearchContext
-
getSearchResourceTypes
public List<String> getSearchResourceTypes()
- Specified by:
getSearchResourceTypes
in interfaceFHIRSearchContext
-
setSearchResourceTypes
public void setSearchResourceTypes(List<String> searchResourceTypes)
- Specified by:
setSearchResourceTypes
in interfaceFHIRSearchContext
-
-