Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Permissions cannot be managed by external system because the User to Permissions
to Weblog relationship is managed by the ORM, the information must be stored in
Roller database tables and cannot be externalized and managed by another system.

...

Insead calling ORM supported methods on the Weblog and User classes, the Roller
front-end will call the Roller UserManager to access permissions information. We'll add these new methods to accommodate that:

Code Block
  UserManager
    public Set<WeblogPermission> getWeblogPermissions(Weblog weblog)
    public Set<WeblogPermission> getUserPermissions(User user)
    public void grantPermissions(WeblogPermission perm, String username)
    public void removePermissions(WeblogPermission perm)
    public int getUserCount(Weblog weblog)
    public int getAdminCount(Weblog weblog)

To allow us to plugin alternate user management systems Roller's default UserManager implementation will then call a User Permissions API interface to store and retrieve permissions:

...