EncryptedPasswordDtoCreatedBy Property
The
AccountDto user who created this business object.
- Referential integrity –
This item must refer to a valid AccountDto upon creation; the account must exist.
Of course, accounts can be deleted later down the line, in which case this property becomes an orphaned reference.
That is fine, in which case front-end will refer to the object as being made by a deleted account.
- Immutability –
This property can never, ever be altered. Therefore, we only allow it to be set when created
from the ModelFactory or when serialized from JSON using the MtJsonHandler - Data isolation –
If the creator of the object is a MobileTrack support employee, and not a member of the company itself,
then the members of the company cannot see the real name of the support employee; this must be hidden from them.
Also, if the creator of the object is a user the reader has no rights of seeing as per the ViewAccounts
in their RoleAssignmentDto scope, the name must be censured as well.