org.figure8.join.businessobjects.security.persistence
Class HibernatePermissionDao

java.lang.Object
  extended by org.springframework.orm.hibernate.support.HibernateDaoSupport
      extended by org.figure8.join.core.persistence.HibernateObjectDao
          extended by org.figure8.join.businessobjects.security.persistence.HibernatePermissionDao
All Implemented Interfaces:
PermissionDao, ObjectDao, org.springframework.beans.factory.InitializingBean

public class HibernatePermissionDao
extends HibernateObjectDao
implements PermissionDao

Implementation of PermissionDao using Hibernate ORM system.

Version:
$Revision: 1.1 $
Author:
Laurent Broudoux

Field Summary
 
Fields inherited from class org.figure8.join.core.persistence.HibernateObjectDao
log
 
Fields inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport
logger
 
Constructor Summary
HibernatePermissionDao()
          Creates a HibernatePermissionDao
 
Method Summary
 java.util.List getPermissionsByUser(User user)
          Retrieve the security permissions of a specified user
 java.lang.Class getPersistentClass()
          Get the persistent class associated to this Dao.
 
Methods inherited from class org.figure8.join.core.persistence.HibernateObjectDao
findAll, findAllSorted, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getById, initialize, initializeAssociation, isInitialized, refresh, remove, replicate, save
 
Methods inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport
afterPropertiesSet, closeSessionIfNecessary, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, initDao, setHibernateTemplate, setSessionFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.figure8.join.core.persistence.ObjectDao
findAll, findAllSorted, initialize, initializeAssociation, isInitialized, refresh, remove, replicate, save
 

Constructor Detail

HibernatePermissionDao

public HibernatePermissionDao()
Creates a HibernatePermissionDao

Method Detail

getPermissionsByUser

public java.util.List getPermissionsByUser(User user)
Retrieve the security permissions of a specified user

Specified by:
getPermissionsByUser in interface PermissionDao
Parameters:
user - The user to retrieve permissions for
Returns:
List of org.figure8.join.businessobjects.security.Permission

getPersistentClass

public java.lang.Class getPersistentClass()
Description copied from interface: ObjectDao
Get the persistent class associated to this Dao.

Specified by:
getPersistentClass in interface ObjectDao
Returns:
org.figure8.join.businessobjects.security.Permission class


Copyright © 2005-2008 Join. All Rights Reserved.