|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.blojsom.authorization.database.DatabaseAuthorizationProvider
Database authorization provider
| Field Summary | |
protected org.hibernate.SessionFactory |
_sessionFactory
|
| Constructor Summary | |
DatabaseAuthorizationProvider()
Create a new instance of the database authorization provider |
|
| Method Summary | |
void |
authorize(Blog blog,
java.util.Map authorizationContext,
java.lang.String userLogin,
java.lang.String password)
Authorize a username and password for the given Blog |
void |
checkPermission(Blog blog,
java.util.Map permissionContext,
java.lang.String userLogin,
java.lang.String permission)
Check a permission for the given Blog |
void |
init()
Initialization method for the authorization provider |
void |
setSessionFactory(org.hibernate.SessionFactory sessionFactory)
Set the SessionFactory |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected org.hibernate.SessionFactory _sessionFactory
| Constructor Detail |
public DatabaseAuthorizationProvider()
| Method Detail |
public void init()
throws ConfigurationException
init in interface AuthorizationProviderConfigurationException - If there is an error initializing the providerpublic void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
SessionFactory
sessionFactory - SessionFactory
public void authorize(Blog blog,
java.util.Map authorizationContext,
java.lang.String userLogin,
java.lang.String password)
throws AuthorizationException
Blog
authorize in interface AuthorizationProviderblog - BlogauthorizationContext - Map to be used to provide other information for authorization. This will
change depending on the authorization provider.userLogin - Usernamepassword - Password
AuthorizationException - If there is an error authorizing the username and password
public void checkPermission(Blog blog,
java.util.Map permissionContext,
java.lang.String userLogin,
java.lang.String permission)
throws AuthorizationException
Blog
checkPermission in interface AuthorizationProviderblog - BlogpermissionContext - Map to be used to provide other information for permission check. This will
change depending on the authorization provider.userLogin - Usernamepermission - Permission
AuthorizationException - If there is an error checking the permission for the username and permission
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||