Examples of exposesDelete()


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

  public ResponseEntity<? extends ResourceSupport> deletePropertyReference(final RootResourceInformation repoRequest,
      @BackendId Serializable id, @PathVariable String property) throws Exception {

    final RepositoryInvoker repoMethodInvoker = repoRequest.getInvoker();

    if (!repoMethodInvoker.exposesDelete()) {
      return new ResponseEntity<Resource<?>>(HttpStatus.METHOD_NOT_ALLOWED);
    }

    Function<ReferencedProperty, ResourceSupport> handler = new Function<ReferencedProperty, ResourceSupport>() {
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.