Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added a link to the demonstration module.

...

A User object represents a Person who can log into the system.

...

  • userId: the database's integer used to identify the object.
  • person: the Person associated with the user.
  • systemId: a unique identifier assigned to each user.
  • username: the username for the user.
  • email: the email address for the user.
  • roles: a list of roles attributed to the user.
  • userProperties: the properties of the user.

...

The UserService class source code can be seen here.

A module demonstrating how to use this class can be seen here.

Role

Roles are hierarchical. A role inherits privileges from its parent. A user can have multiple roles, and a role can have multiple privileges.

...