Skip to content

Users, Roles, & Permissions

Pete Oliver-Krueger edited this page Jan 20, 2014 · 4 revisions

Inherent in social logins and account management is basic account management itself. So this module will include a basic Best-Practices Users/Roles/Permissions interface. We will also include a few standard implementations of this generic interface that developers can choose from. Developers are also always free to implement their own CFC that implements this interface and connects to their own unique Users/Roles/Permissions code and data structure.

Config

  • Source
  • ExpiresWithin

Object Model

User
UserId
Email
Code
Name
Roles (cache)
RememberMe (used with login form caching)
DateTimeCached
bool hasRoles(collection roles)
bool hasPermissions(collection permissions)
qry getRoles() (Lookup)
qry getPermissions() (Calculated)
addRoles(collection roles)
delRoles(collection roles)
Role
RoleId
Code (required - for string lookup)
Name (optional)
Description (optional)
Permissions (cache)
DateTimeCached
qry getPermissions() (Lookup)
qry getUsers()
addPermissions(collection permissions)
delPermissions(collection permissions)
addUsers(collection users)
delUsers(collection users)
Permission
PermissionId
Code (required - for string lookup)
Name (optional)
Description (optional)
qry getUsers()
qry getRoles()
addRoles(collection codes)
delRoles(collection codes)

TDD/BDD Test Cases

Clone this wiki locally