EventListener
Data Entry
Code Sample
@RestController
public class BookController{
@EventListener
public void bookCreatedEvent(DataEntryCreatedEvent<BookDE> bookCreated){
Serializer.log("Book created "+bookCreated.getDataEntry().getData().getName());
}
}
Events
- DataEntryCreatedEvent
- DataEntryUpdatedEvent
- DataEntryDeletedEvent
Connection
Code Sample
@RestController
public class BookController{
@EventListener
public void bookConnectionCreatedEvent(ConnectionCreatedEvent<Authored> Authored){
Serializer.log("Authored connection created "+Authored.getConnection().getMetadata().get("rating"));
}
}
Events
- ConnectionCreatedEvent
- ConnectionUpdatedEvent
- ConnectionDeletedEvent