Versions Compared

Key

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

...

For example, if you want to check to see if a user has can post a weblog entry in a weblog, you would do this:

Code Block
WeblogPermssion desiredPerm = new WeblogPermission(weblog, "post"WeblogPermission.POST);
boolean allowed = userManager.checkPermssion(desiredPerm, user);

...