Class BackofficeMonitorEventOnboardingUpdateBody

java.lang.Object
es.kukenan.smartfi.events.common.AbstractEventBody
es.kukenan.smartfi.microservice.security.gateway.events.backoffice.BackofficeMonitorEventOnboardingUpdateBody

public class BackofficeMonitorEventOnboardingUpdateBody 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

    • backOfficeId

      @NotBlank private @javax.validation.constraints.NotBlank int backOfficeId
      Back office ID.
    • coreUserId

      @NotNull private @NotNull String coreUserId
      user ID.
    • onboardingUserId

      private String onboardingUserId
      onboarding user identifier.
    • companyId

      private Optional<String> companyId
      company_id identifier.
  • Constructor Details

    • BackofficeMonitorEventOnboardingUpdateBody

      public BackofficeMonitorEventOnboardingUpdateBody(String principal, int backOfficeId, String id, String onboardingId, Optional<String> companyId)
      Full state constructor.
      Parameters:
      principal - value of property principal in Notification Event
      backOfficeId - where the value come from
      id - identifier that represents the user on Core
      onboardingId - identifier that represents the user on Onboarding
      companyId - company identifier