Class BackOfficeAppointmentUpdatedEventBody

java.lang.Object
es.kukenan.smartfi.events.common.AbstractEventBody
es.kukenan.smartfi.microservice.backoffice.events.update.BackOfficeAppointmentUpdatedEventBody

public class BackOfficeAppointmentUpdatedEventBody extends es.kukenan.smartfi.events.common.AbstractEventBody
Base class for the body of User settings Events.

Please note that @JsonInclude(Include.NON_NULL) annotation is specially important to make Optional.empty fields to be serialized as null properties and null fields to bo not serialized at all.

This way, the event receptor will be able to distinguish not fields to leave unchanged (null) from fields to be removed ( Optional.empty).

  • Field Details

    • applicationId

      @NotNull private @NotNull String applicationId
      Application identifier (contract).
    • appointmentId

      @NotNull private @NotNull String appointmentId
      Appointment identifier.
    • onboardingUserId

      private Optional<String> onboardingUserId
      Onboarding User identifier.
    • coreUserId

      private Optional<String> coreUserId
      Core User identifier.
  • Constructor Details

    • BackOfficeAppointmentUpdatedEventBody

      public BackOfficeAppointmentUpdatedEventBody(String principal, String applicationId, String appointmentId, Optional<String> onboardingUserId, Optional<String> coreUserId)
      Full constructor.
      Parameters:
      principal - value of property principal in Notification Event
      applicationId - value of application identifier
      appointmentId - value of appointment identifier
      onboardingUserId - value of onboarding user identifier
      coreUserId - value of core use identifier