|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.blojsom.plugin.permission.PermissionChecker
Permission Checker plugin
Constructor Summary | |
PermissionChecker(BlogUser blogUser,
AuthorizationProvider authorizationProvider,
java.util.Map permissionContext)
Create a new permission checker for a given blog |
Method Summary | |
boolean |
checkPermission(java.lang.String username,
java.lang.String permission)
Check permission for a given username and permission |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PermissionChecker(BlogUser blogUser, AuthorizationProvider authorizationProvider, java.util.Map permissionContext)
blogUser
- BlogUser
authorizationProvider
- AuthorizationProvider
permissionContext
- Context for permissions to be evaulated in (not-used)Method Detail |
public boolean checkPermission(java.lang.String username, java.lang.String permission)
username
- Usernamepermission
- Permission to check
true
if username
has given permission
, false
otherwise
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |