Class UserUpdatedEventBody
java.lang.Object
es.kukenan.smartfi.events.common.AbstractEventBody
es.kukenan.smartfi.microservice.clients.events.BaseUsersEventBody
es.kukenan.smartfi.microservice.clients.events.updated.UserUpdatedEventBody
Base class for the body of any Users micro-service event.
-
Field Summary
FieldsModifier and TypeFieldDescriptionUser address.User birthdate.Client civil status.User document id.Type of user document.User email.Client gender.Client language (see https://en.wikipedia.org/wiki/IETF_language_tag).User name.User nationality.User nature type.User phone.User phone prefix.User state.User first surname.User type.private Optional<List<UserBackoffice>>list of user back office identifier. -
Constructor Summary
ConstructorsConstructorDescriptionUserUpdatedEventBody(String id, Optional<Integer> type, Optional<Integer> state, Optional<Integer> language, Optional<Integer> gender, Optional<Integer> civilStatus, Optional<String> name, Optional<String> surname, Optional<Integer> documentTypeId, Optional<String> documentId, Optional<LocalDate> birthDate, Optional<String> email, Optional<String> phone, Optional<String> phonePrefix, Optional<String> natureType, Optional<List<UserBackoffice>> userBackoffice, Optional<String> address, Optional<String> nationality) Full state constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns if there are changes registered for the user related to the event.Methods inherited from class es.kukenan.smartfi.events.common.AbstractEventBody
canEqual, equals, getPrincipal, hashCode, setPrincipal, toString
-
Field Details
-
type
User type. -
state
User state. -
language
Client language (see https://en.wikipedia.org/wiki/IETF_language_tag). -
gender
Client gender. -
civilStatus
Client civil status. -
name
User name. -
surname
User first surname. -
documentTypeId
Type of user document. -
documentId
User document id. -
birthdate
User birthdate. -
email
User email. -
phone
User phone. -
phonePrefix
User phone prefix. -
natureType
User nature type. -
userBackoffice
list of user back office identifier. -
address
User address. -
nationality
User nationality.
-
-
Constructor Details
-
UserUpdatedEventBody
public UserUpdatedEventBody(String id, Optional<Integer> type, Optional<Integer> state, Optional<Integer> language, Optional<Integer> gender, Optional<Integer> civilStatus, Optional<String> name, Optional<String> surname, Optional<Integer> documentTypeId, Optional<String> documentId, Optional<LocalDate> birthDate, Optional<String> email, Optional<String> phone, Optional<String> phonePrefix, Optional<String> natureType, Optional<List<UserBackoffice>> userBackoffice, Optional<String> address, Optional<String> nationality) Full state constructor.- Parameters:
id- user identifier.type- user identifier.state- user identifier.language- user language.gender- User gender.civilStatus- User civilStatus.name- user name.surname- user first surname.documentTypeId- user document type identifier.documentId- user document identifier.birthDate- user birthdate.email- user email.phone- user phone.phonePrefix- user phone prefix.natureType- user nature type.userBackoffice- user back office identifier list.address- user address.nationality- user nationality.
-
-
Method Details
-
containsChanges
public boolean containsChanges()Returns if there are changes registered for the user related to the event.- Returns:
- true if there are changes registered for the user related to the event.
-