001/*-
002 * #%L
003 * HAPI FHIR JPA Server
004 * %%
005 * Copyright (C) 2014 - 2024 Smile CDR, Inc.
006 * %%
007 * Licensed under the Apache License, Version 2.0 (the "License");
008 * you may not use this file except in compliance with the License.
009 * You may obtain a copy of the License at
010 *
011 *      http://www.apache.org/licenses/LICENSE-2.0
012 *
013 * Unless required by applicable law or agreed to in writing, software
014 * distributed under the License is distributed on an "AS IS" BASIS,
015 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
016 * See the License for the specific language governing permissions and
017 * limitations under the License.
018 * #L%
019 */
020package ca.uhn.fhir.jpa.model.search;
021
022import ca.uhn.fhir.jpa.dao.search.ExtendedHSearchClauseBuilder;
023import ca.uhn.fhir.jpa.searchparam.SearchParameterMap;
024import ca.uhn.fhir.rest.server.util.ISearchParamRegistry;
025
026/**
027 * This is a parameter class for the
028 * {@link ca.uhn.fhir.jpa.dao.search.ExtendedHSearchSearchBuilder#addAndConsumeAdvancedQueryClauses(ExtendedHSearchClauseBuilder, ExtendedHSearchBuilderConsumeAdvancedQueryClausesParams)}
029 * method, so that we can keep the signature manageable (small) and allow for updates without breaking
030 * implementers so often.
031 */
032public class ExtendedHSearchBuilderConsumeAdvancedQueryClausesParams {
033        /**
034         * Resource type
035         */
036        private String myResourceType;
037        /**
038         * The registered search
039         */
040        private SearchParameterMap mySearchParameterMap;
041        /**
042         * Search param registry
043         */
044        private ISearchParamRegistry mySearchParamRegistry;
045
046        public String getResourceType() {
047                return myResourceType;
048        }
049
050        public ExtendedHSearchBuilderConsumeAdvancedQueryClausesParams setResourceType(String theResourceType) {
051                myResourceType = theResourceType;
052                return this;
053        }
054
055        public SearchParameterMap getSearchParameterMap() {
056                return mySearchParameterMap;
057        }
058
059        public ExtendedHSearchBuilderConsumeAdvancedQueryClausesParams setSearchParameterMap(SearchParameterMap theParams) {
060                mySearchParameterMap = theParams;
061                return this;
062        }
063
064        public ISearchParamRegistry getSearchParamRegistry() {
065                return mySearchParamRegistry;
066        }
067
068        public ExtendedHSearchBuilderConsumeAdvancedQueryClausesParams setSearchParamRegistry(
069                        ISearchParamRegistry theSearchParamRegistry) {
070                mySearchParamRegistry = theSearchParamRegistry;
071                return this;
072        }
073}