org.itracker.persistence.dao
Interface PermissionDAO
- All Superinterfaces:
- BaseDAO<Permission>
- All Known Implementing Classes:
- PermissionDAOImpl
public interface PermissionDAO
- extends BaseDAO<Permission>
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 returnedpermissionType - type of permissions to return
- Returns:
- list of permissions, in unspecified order
Copyright © 2002-2012 itracker. All Rights Reserved.