org.itracker.persistence.dao
Interface PermissionDAO

All Superinterfaces:
BaseDAO<Permission>
All Known Implementing Classes:
PermissionDAOImpl

public interface PermissionDAO
extends BaseDAO<Permission>


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 interface org.itracker.persistence.dao.BaseDAO
delete, detach, merge, refresh, save, saveOrUpdate
 

Method Detail

findByUserId

List<Permission> findByUserId(Integer userId)
Finds all Permissions granted to a user.

Parameters:
userId -
Returns:
list of permissions granted to the given user, in unspecified order

findByProjectIdAndPermission

List<Permission> findByProjectIdAndPermission(Integer projectId,
                                              int permissionType)
Finds all Permissions of a given type granted on a project.

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.