org.itracker.persistence.dao
Class PermissionDAOImpl

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by org.itracker.persistence.dao.BaseHibernateDAOImpl<Permission>
              extended by org.itracker.persistence.dao.PermissionDAOImpl
All Implemented Interfaces:
BaseDAO<Permission>, PermissionDAO, org.springframework.beans.factory.InitializingBean

public class PermissionDAOImpl
extends BaseHibernateDAOImpl<Permission>
implements PermissionDAO


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
PermissionDAOImpl()
           
 
Method Summary
 List<Permission> findByProjectIdAndPermission(Integer projectId, int permissionType)
          Finds all Permissions of a given type granted on a project.
 List<Permission> findByUserId(Integer userId)
          Finds all Permissions granted to a user.
 
Methods inherited from class org.itracker.persistence.dao.BaseHibernateDAOImpl
delete, detach, merge, refresh, save, saveOrUpdate
 
Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.itracker.persistence.dao.BaseDAO
delete, detach, merge, refresh, save, saveOrUpdate
 

Constructor Detail

PermissionDAOImpl

public PermissionDAOImpl()
Method Detail

findByUserId

public List<Permission> findByUserId(Integer userId)
Description copied from interface: PermissionDAO
Finds all Permissions granted to a user.

Specified by:
findByUserId in interface PermissionDAO
Returns:
list of permissions granted to the given user, in unspecified order

findByProjectIdAndPermission

public List<Permission> findByProjectIdAndPermission(Integer projectId,
                                                     int permissionType)
Description copied from interface: PermissionDAO
Finds all Permissions of a given type granted on a project.

Specified by:
findByProjectIdAndPermission in interface PermissionDAO
Parameters:
projectId - only permissions on this project will be returned
permissionType - type of permissions to return
Returns:
list of permissions, in unspecified order


Copyright © 2002-2012 itracker. All Rights Reserved.