Package ca.uhn.fhir.rest.param

Examples of ca.uhn.fhir.rest.param.BaseQueryParameter


    Set<String> qualifiedParamNames = theRequest.getParameters().keySet();
    for (int i = 0; i < this.getParameters().size(); i++) {
      if (!(getParameters().get(i) instanceof BaseQueryParameter)) {
        continue;
      }
      BaseQueryParameter temp = (BaseQueryParameter) getParameters().get(i);
      String name = temp.getName();
      if (temp.isRequired()) {

        if (qualifiedParamNames.contains(name)) {
          methodParamsTemp.add(name);
        } else if (unqualifiedNames.contains(name)) {
          methodParamsTemp.addAll(theRequest.getUnqualifiedToQualifiedNames().get(name));
View Full Code Here


    Set<String> qualifiedParamNames = theRequest.getParameters().keySet();
    for (int i = 0; i < this.getParameters().size(); i++) {
      if (!(getParameters().get(i) instanceof BaseQueryParameter)) {
        continue;
      }
      BaseQueryParameter temp = (BaseQueryParameter) getParameters().get(i);
      String name = temp.getName();
      if (temp.isRequired()) {

        if (qualifiedParamNames.contains(name)) {
          QualifierDetails qualifiers = extractQualifiersFromParameterName(name);
          if (qualifiers.passes(temp.getQualifierWhitelist(), temp.getQualifierBlacklist())) {
            methodParamsTemp.add(name);
          }
        } else if (unqualifiedNames.contains(name)) {
          List<String> qualifiedNames = theRequest.getUnqualifiedToQualifiedNames().get(name);
          qualifiedNames = processWhitelistAndBlacklist(qualifiedNames, temp.getQualifierWhitelist(), temp.getQualifierBlacklist());
          methodParamsTemp.addAll(qualifiedNames);
        } else {
          ourLog.trace("Method {} doesn't match param '{}' is not present", getMethod().getName(), name);
          return false;
        }

      } else {
        if (qualifiedParamNames.contains(name)) {
          QualifierDetails qualifiers = extractQualifiersFromParameterName(name);
          if (qualifiers.passes(temp.getQualifierWhitelist(), temp.getQualifierBlacklist())) {
            methodParamsTemp.add(name);
          }
        } else if (unqualifiedNames.contains(name)) {
          List<String> qualifiedNames = theRequest.getUnqualifiedToQualifiedNames().get(name);
          qualifiedNames = processWhitelistAndBlacklist(qualifiedNames, temp.getQualifierWhitelist(), temp.getQualifierBlacklist());
          methodParamsTemp.addAll(qualifiedNames);
        } else {
          methodParamsTemp.add(name);
        }
      }
View Full Code Here

    Set<String> methodParamsTemp = new HashSet<String>();
    for (int i = 0; i < this.getParameters().size(); i++) {
      if (!(getParameters().get(i) instanceof BaseQueryParameter)) {
        continue;
      }
      BaseQueryParameter temp = (BaseQueryParameter) getParameters().get(i);
      methodParamsTemp.add(temp.getName());
      if (temp.isRequired() && !theRequest.getParameters().containsKey(temp.getName())) {
        ourLog.trace("Method {} doesn't match param '{}' is not present", getMethod().getName(), temp.getName());
        return false;
      }
    }
    if (myQueryName != null) {
      String[] queryNameValues = theRequest.getParameters().get(Constants.PARAM_QUERY);
View Full Code Here

    Set<String> qualifiedParamNames = theRequest.getParameters().keySet();
    for (int i = 0; i < this.getParameters().size(); i++) {
      if (!(getParameters().get(i) instanceof BaseQueryParameter)) {
        continue;
      }
      BaseQueryParameter temp = (BaseQueryParameter) getParameters().get(i);
      String name = temp.getName();
      if (temp.isRequired()) {

        if (qualifiedParamNames.contains(name)) {
          methodParamsTemp.add(name);
        } else if (unqualifiedNames.contains(name)) {
          methodParamsTemp.addAll(theRequest.getUnqualifiedToQualifiedNames().get(name));
View Full Code Here

TOP

Related Classes of ca.uhn.fhir.rest.param.BaseQueryParameter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.