| java.lang.Object org.blojsom.authorization.database.DatabaseAuthorizationProvider
All known Subclasses: org.blojsom.authorization.ldap.LDAPAuthorizationProvider,
DatabaseAuthorizationProvider | public class DatabaseAuthorizationProvider implements AuthorizationProvider(Code) | | Database authorization provider
author: David Czarnecki version: $Id: DatabaseAuthorizationProvider.java,v 1.7 2007/01/17 02:35:16 czarneckid Exp $ since: blojsom. 3.0 |
Method Summary | |
public void | authorize(Blog blog, Map authorizationContext, String userLogin, String password) Authorize a username and password for the given
Blog Parameters: blog - Blog Parameters: authorizationContext - Map to be used to provide other information for authorization. | public void | checkPermission(Blog blog, Map permissionContext, String userLogin, String permission) Check a permission for the given
Blog Parameters: blog - Blog Parameters: permissionContext - Map to be used to provide other information for permission check. | public void | init() | public void | setSessionFactory(SessionFactory sessionFactory) |
_sessionFactory | protected SessionFactory _sessionFactory(Code) | | |
DatabaseAuthorizationProvider | public DatabaseAuthorizationProvider()(Code) | | Create a new instance of the database authorization provider
|
authorize | public void authorize(Blog blog, Map authorizationContext, String userLogin, String password) throws AuthorizationException(Code) | | Authorize a username and password for the given
Blog Parameters: blog - Blog Parameters: authorizationContext - Map to be used to provide other information for authorization. This willchange depending on the authorization provider. Parameters: userLogin - Username Parameters: password - Password throws: AuthorizationException - If there is an error authorizing the username and password |
checkPermission | public void checkPermission(Blog blog, Map permissionContext, String userLogin, String permission) throws AuthorizationException(Code) | | Check a permission for the given
Blog Parameters: blog - Blog Parameters: permissionContext - Map to be used to provide other information for permission check. This willchange depending on the authorization provider. Parameters: userLogin - Username Parameters: permission - Permission throws: AuthorizationException - If there is an error checking the permission for the username and permission |
setSessionFactory | public void setSessionFactory(SessionFactory sessionFactory)(Code) | | Set the
SessionFactory Parameters: sessionFactory - SessionFactory |
|
|