EncryptedPasswordDtoCreatedBy Property

The AccountDto user who created this business object.

Definition

Namespace: MobileTrack.Common.Models
Assembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
public Guid CreatedBy { get; internal set; }

Property Value

Guid

Implements

ICreatedStatsCreatedBy

Remarks

  • 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.

See Also