Examples of exported()


Examples of org.springframework.data.rest.core.annotation.RestResource.exported()

    Assert.notNull(resourceMapping, "ResourceMapping must not be null!");

    RestResource annotation = AnnotationUtils.findAnnotation(method, RestResource.class);
    String resourceRel = resourceMapping.getRel();

    this.isExported = annotation != null ? annotation.exported() : true;
    this.rel = annotation == null || !StringUtils.hasText(annotation.rel()) ? method.getName() : annotation.rel();
    this.path = annotation == null || !StringUtils.hasText(annotation.path()) ? new Path(method.getName()) : new Path(
        annotation.path());
    this.method = method;
    this.parameterMetadata = discoverParameterMetadata(method, resourceRel.concat(".").concat(rel));
View Full Code Here

Examples of org.springframework.data.rest.core.annotation.RestResource.exported()

  }

  private boolean exposes(Method method) {

    RestResource annotation = AnnotationUtils.findAnnotation(method, RestResource.class);
    return annotation == null ? true : annotation.exported();
  }

  /*
   * (non-Javadoc)
   * @see org.springframework.data.rest.core.invoke.RepositoryInvoker#invokeQueryMethod(java.lang.reflect.Method, java.util.Map, org.springframework.data.domain.Pageable, org.springframework.data.domain.Sort)
View Full Code Here

Examples of org.springframework.data.rest.core.annotation.RestResource.exported()

    return method.getName();
  }

  public static boolean findExported(Class<?> type) {
    RestResource anno = findAnnotation(type, RestResource.class);
    return anno == null || anno.exported();
  }

  public static boolean findExported(Method method) {
    RestResource anno = findAnnotation(method, RestResource.class);
    return anno == null || anno.exported();
View Full Code Here

Examples of org.springframework.data.rest.core.annotation.RestResource.exported()

    return anno == null || anno.exported();
  }

  public static boolean findExported(Method method) {
    RestResource anno = findAnnotation(method, RestResource.class);
    return anno == null || anno.exported();
  }

  public static ResourceMapping getResourceMapping(RepositoryRestConfiguration config, RepositoryInformation repoInfo) {
    if (null == repoInfo) {
      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.