Examples of exposesFindOne()


Examples of org.springframework.data.rest.core.invoke.RepositoryInvoker.exposesFindOne()

  private ResourceSupport doWithReferencedProperty(RootResourceInformation repoRequest, Serializable id,
      String propertyPath, Function<ReferencedProperty, ResourceSupport> handler, HttpMethod method) throws Exception {

    RepositoryInvoker invoker = repoRequest.getInvoker();

    if (!invoker.exposesFindOne()) {
      throw new HttpRequestMethodNotSupportedException(method.name());
    }

    Object domainObj = invoker.invokeFindOne(id);
View Full Code Here

Examples of org.springframework.data.rest.core.invoke.RepositoryInvoker.exposesFindOne()

    resourceInformation.verifySupportedMethod(HttpMethod.GET, ResourceType.ITEM);

    RepositoryInvoker repoMethodInvoker = resourceInformation.getInvoker();

    if (!repoMethodInvoker.exposesFindOne()) {
      throw new ResourceNotFoundException();
    }

    return repoMethodInvoker.invokeFindOne(id);
  }
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.