Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.blojsom.plugin.permission
Class PermissionChecker

    java.lang.Object
      org.blojsom.plugin.permission.PermissionChecker

public class PermissionChecker
extends java.lang.Object

Permission Checker plugin

Since:
  blojsom 3.0
Version:
  $Id: PermissionChecker.java,v 1.1 2006/03/20 21:30:57 czarneckid Exp $
Author:
  David Czarnecki

Constructor Summary
`PermissionChecker(Blog blog, 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

### PermissionChecker

    public PermissionChecker(Blog blog,
                             AuthorizationProvider authorizationProvider,
                             java.util.Map permissionContext)

  Create a new permission checker for a given blog

Parameters:
  `authorizationProvider` - `AuthorizationProvider`
  `permissionContext` - Context for permissions to be evaulated in (not-used)

Method Detail

### checkPermission

    public boolean checkPermission(java.lang.String username,
                                   java.lang.String permission)

  Check permission for a given username and permission

  Parameters:
    `username` - Username
    `permission` - Permission to check
  Returns:
    `true` if `username` has given `permission`, `false` otherwise

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD