java.lang.Object
es.kukenan.smartfi.amqp.controller.AbstractAmqpController<es.kukenan.smartfi.events.common.AbstractEvent>
es.kukenan.smartfi.microservice.contracts.controller.AmqpController

@RestController public class AmqpController extends es.kukenan.smartfi.amqp.controller.AbstractAmqpController<es.kukenan.smartfi.events.common.AbstractEvent>
AmqpController controller.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Product Back office event service.
    Notification event service.
    private UserService
    Users event service.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    consume(es.kukenan.smartfi.microservice.backoffice.events.cancelled.BackOfficeProductCancelledEvent backOfficeProductCancelledEvent)
    Method to use for cancelled product.
    void
    consume(es.kukenan.smartfi.microservice.backoffice.events.created.BackOfficeNotificationCreatedEvent backOfficeNotificationCreatedEvent)
    Method to use for create notification.
    void
    consume(es.kukenan.smartfi.microservice.backoffice.events.created.BackOfficeProductCreatedEvent backOfficeProductCreatedEvent)
    Method to use for create product.
    void
    consume(es.kukenan.smartfi.microservice.backoffice.events.update.BackOfficeProductUpdatedEvent backOfficeProductUpdatedEvent)
    Method to use for update product.
    void
    consume(es.kukenan.smartfi.microservice.clients.events.created.UserCreatedEvent userCreatedEvent)
    Method to use for create users created.
    void
    consume(es.kukenan.smartfi.microservice.clients.events.updated.UserUpdatedEvent userUpdatedEvent)
    Method to use for update users event.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • userService

      @Autowired private UserService userService
      Users event service.
    • backofficeProductEventService

      @Autowired private BackofficeProductEventService backofficeProductEventService
      Product Back office event service.
    • notificationCreatedEventService

      @Autowired private NotificationCreatedEventService notificationCreatedEventService
      Notification event service.
  • Constructor Details

    • AmqpController

      public AmqpController()
  • Method Details

    • consume

      public void consume(es.kukenan.smartfi.microservice.clients.events.updated.UserUpdatedEvent userUpdatedEvent)
      Method to use for update users event.
      Parameters:
      userUpdatedEvent - event.
    • consume

      public void consume(es.kukenan.smartfi.microservice.clients.events.created.UserCreatedEvent userCreatedEvent)
      Method to use for create users created.
      Parameters:
      userCreatedEvent - event.
    • consume

      public void consume(es.kukenan.smartfi.microservice.backoffice.events.cancelled.BackOfficeProductCancelledEvent backOfficeProductCancelledEvent)
      Method to use for cancelled product.
      Parameters:
      backOfficeProductCancelledEvent - event.
    • consume

      public void consume(es.kukenan.smartfi.microservice.backoffice.events.update.BackOfficeProductUpdatedEvent backOfficeProductUpdatedEvent)
      Method to use for update product.
      Parameters:
      backOfficeProductUpdatedEvent - event.
    • consume

      public void consume(es.kukenan.smartfi.microservice.backoffice.events.created.BackOfficeProductCreatedEvent backOfficeProductCreatedEvent)
      Method to use for create product.
      Parameters:
      backOfficeProductCreatedEvent - event.
    • consume

      public void consume(es.kukenan.smartfi.microservice.backoffice.events.created.BackOfficeNotificationCreatedEvent backOfficeNotificationCreatedEvent)
      Method to use for create notification.
      Parameters:
      backOfficeNotificationCreatedEvent - event.