Package org.springframework.data.rest.core.invoke

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


        } else {
          prop.wrapper.setProperty(prop.property, null);
        }

        publisher.publishEvent(new BeforeLinkDeleteEvent(prop.wrapper.getBean(), prop.propertyValue));
        Object result = repoMethodInvoker.invokeSave(prop.wrapper.getBean());
        publisher.publishEvent(new AfterLinkDeleteEvent(result, prop.propertyValue));

        return null;
      }
    };
View Full Code Here


          Object propVal = loadPropertyValue(prop.propertyType, incoming.getLinks().get(0));
          prop.wrapper.setProperty(prop.property, propVal);
        }

        publisher.publishEvent(new BeforeLinkSaveEvent(prop.wrapper.getBean(), prop.propertyValue));
        Object result = invoker.invokeSave(prop.wrapper.getBean());
        publisher.publishEvent(new AfterLinkSaveEvent(result, prop.propertyValue));

        return null;
      }
    };
View Full Code Here

        } else {
          prop.wrapper.setProperty(prop.property, null);
        }

        publisher.publishEvent(new BeforeLinkDeleteEvent(prop.wrapper.getBean(), prop.propertyValue));
        Object result = invoker.invokeSave(prop.wrapper.getBean());
        publisher.publishEvent(new AfterLinkDeleteEvent(result, prop.propertyValue));

        return null;
      }
    };
View Full Code Here

            return toEmptyResponse(METHOD_NOT_ALLOWED);
        }

        fileResourceStorage().delete(domainObj, prop);

        invoker.invokeSave(domainObj);

        return toEmptyResponse(OK);
    }

    @RequestMapping(value = BASE_MAPPING + "/file", method = {POST})
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.