org.springframework.data.rest.core.annotation.HandleAfterCreate Java Examples

The following examples show how to use org.springframework.data.rest.core.annotation.HandleAfterCreate. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BookmarkEventHandler.java    From scraping-microservice-java-python-rabbitmq with Apache License 2.0 5 votes vote down vote up
@HandleAfterCreate
public void handleAfterBookmarkCreate(Bookmark bookmark)
{
    final TaskMessage taskMessage = new TaskMessage();
    taskMessage.setUrl(bookmark.getUrl());
    taskProducer.sendNewTask(taskMessage);
}
 
Example #2
Source File: Sender.java    From Spring-5.0-Cookbook with MIT License 4 votes vote down vote up
@HandleAfterCreate
public void handleCandidateSave(String content) {
    send(content);
}
 
Example #3
Source File: SendAsyncEventLogin.java    From Spring-5.0-Cookbook with MIT License 4 votes vote down vote up
@HandleAfterCreate
public DeferredResult<LoginDetails> loginHandler(String content) {
	return send(content);
}
 
Example #4
Source File: SendRequestEventLogin.java    From Spring-5.0-Cookbook with MIT License 4 votes vote down vote up
@HandleAfterCreate
public LoginDetails loginHandler(String content) {
    return send(content);
}
 
Example #5
Source File: SendAsyncLogin.java    From Spring-5.0-Cookbook with MIT License 4 votes vote down vote up
@HandleAfterCreate
public DeferredResult<LoginDetails> handleCandidateSave(String content) {
    return send(content);
}
 
Example #6
Source File: ProductDescriptionEventsPropagation.java    From factory with MIT License 4 votes vote down vote up
@HandleAfterCreate
public void handleCreate(ProductDescriptionEntity entity) {
    demandService.initNewProduct(entity.getRefNo());
    stockForecasts.save(new StockForecastEntity(entity.getRefNo()));
}
 
Example #7
Source File: DeliveryPlannerDefinitionEventsPropagation.java    From factory with MIT License 4 votes vote down vote up
@HandleAfterSave
@HandleAfterCreate
public void handleCreateAndUpdate(DeliveryPlannerDefinitionEntity entity) {
    projection.applyDeliveryPlannerDefinitionChange(entity.getRefNo());
}
 
Example #8
Source File: CommandsHandler.java    From factory with MIT License 4 votes vote down vote up
@HandleAfterCreate
public void process(DocumentEntity document) {
    service.process(document.getDocument());
}
 
Example #9
Source File: BookHandler.java    From spring-data-rest-acl with Apache License 2.0 4 votes vote down vote up
@HandleAfterCreate
public void afterCreate(Book book) {
	logger.debug("afterCreate:{}", book.toString());
	addACL(book);
}