Class NotificationCreatedEventBody
java.lang.Object
es.kukenan.smartfi.events.common.AbstractEventBody
es.kukenan.smartfi.microservice.contracts.events.created.NotificationCreatedEventBody
public class NotificationCreatedEventBody
extends es.kukenan.smartfi.events.common.AbstractEventBody
Base class for the body of product backoffice 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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class es.kukenan.smartfi.events.common.AbstractEventBody
canEqual, equals, getPrincipal, hashCode, setPrincipal, toString
-
Field Details
-
backOfficeId
Back office ID. -
backOfficeUserId
user ID. -
backOfficeUserIdBE
user ID BE. -
productIdAlert
product Id. -
notificationTypeId
notification type. -
notificationSubTypeId
notification subtype. -
message
message.
-
-
Constructor Details
-
NotificationCreatedEventBody
public NotificationCreatedEventBody(String principal, Integer backOfficeId, String backOfficeUserId, String backOfficeUserIdBE, String productIdAlert, String notificationTypeId, String notificationSubTypeId, String message) Full state constructor.- Parameters:
principal- value of property principal in Notification EventbackOfficeId- where the value come frombackOfficeUserId- user idbackOfficeUserIdBE- user BE idproductIdAlert- product identifiernotificationTypeId- notification typenotificationSubTypeId- notification subtypemessage- message
-