Package ca.uhn.fhir.rest.annotation

Examples of ca.uhn.fhir.rest.annotation.History.resourceType()


    myIdParamIndex = Util.findIdParameterIndex(theMethod);
    mySinceParamIndex = Util.findSinceParameterIndex(theMethod);
    myCountParamIndex = Util.findCountParameterIndex(theMethod);

    History historyAnnotation = theMethod.getAnnotation(History.class);
    Class<? extends IResource> type = historyAnnotation.resourceType();
    if (type == History.AllResources.class) {
      if (theProvider != null) {
        type = theProvider.getResourceType();
        if (myIdParamIndex != null) {
          myResourceOperationType = RestfulOperationTypeEnum.HISTORY_INSTANCE;
View Full Code Here


  private static Class<? extends IResource> toReturnType(Method theMethod, IResourceProvider theProvider) {
    if (theProvider != null) {
      return theProvider.getResourceType();
    }
    History historyAnnotation = theMethod.getAnnotation(History.class);
    Class<? extends IResource> type = historyAnnotation.resourceType();
    if (type != History.AllResources.class) {
      return type;
    }
    return null;
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.