Package ca.uhn.fhir.rest.annotation

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


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

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


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

    if (read != null) {
      returnTypeFromAnnotation = read.type();
    } else if (search != null) {
      returnTypeFromAnnotation = search.type();
    } else if (history != null) {
      returnTypeFromAnnotation = history.type();
    } else if (delete != null) {
      returnTypeFromAnnotation = delete.type();
    } else if (create != null) {
      returnTypeFromAnnotation = create.type();
    } else if (update != null) {
View Full Code Here

    if (read != null) {
      returnTypeFromAnnotation = read.type();
    } else if (search != null) {
      returnTypeFromAnnotation = search.type();
    } else if (history != null) {
      returnTypeFromAnnotation = history.type();
    } else if (delete != null) {
      returnTypeFromAnnotation = delete.type();
    } else if (create != null) {
      returnTypeFromAnnotation = create.type();
    } else if (update != null) {
View Full Code Here

    super(toReturnType(theMethod, theProvider), theMethod, theConetxt, theProvider);

    myIdParamIndex = ParameterUtil.findIdParameterIndex(theMethod);

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

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

    if (read != null) {
      returnTypeFromAnnotation = read.type();
    } else if (search != null) {
      returnTypeFromAnnotation = search.type();
    } else if (history != null) {
      returnTypeFromAnnotation = history.type();
    } else if (delete != null) {
      returnTypeFromAnnotation = delete.type();
    } else if (create != null) {
      returnTypeFromAnnotation = create.type();
    } else if (update != null) {
View Full Code Here

    super(toReturnType(theMethod, theProvider), theMethod, theConetxt, theProvider);

    myIdParamIndex = MethodUtil.findIdParameterIndex(theMethod);

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

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

    if (read != null) {
      returnTypeFromAnnotation = read.type();
    } else if (search != null) {
      returnTypeFromAnnotation = search.type();
    } else if (history != null) {
      returnTypeFromAnnotation = history.type();
    } else if (delete != null) {
      returnTypeFromAnnotation = delete.type();
    } else if (create != null) {
      returnTypeFromAnnotation = create.type();
    } else if (update != 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.