BaseDAO<Permission>, PermissionDAOpublic class PermissionDAOImpl extends BaseHibernateDAOImpl<Permission> implements PermissionDAO
| Constructor | Description |
|---|---|
PermissionDAOImpl() |
| Modifier and Type | Method | Description |
|---|---|---|
List<Permission> |
findByProjectIdAndPermission(Integer projectId,
int permissionType) |
Deprecated.
|
List<Permission> |
findByProjectIdAndPermission(Integer projectId,
PermissionType permissionType) |
Finds all Permissions of a given type granted on a project.
|
List<Permission> |
findByUserId(Integer userId) |
Finds all Permissions granted to a user.
|
delete, detach, merge, refresh, save, saveOrUpdatedelete, detach, merge, refresh, save, saveOrUpdatepublic List<Permission> findByUserId(Integer userId)
PermissionDAOfindByUserId in interface PermissionDAO@Deprecated public List<Permission> findByProjectIdAndPermission(Integer projectId, int permissionType)
findByProjectIdAndPermission in interface PermissionDAOpublic List<Permission> findByProjectIdAndPermission(Integer projectId, PermissionType permissionType)
PermissionDAOfindByProjectIdAndPermission in interface PermissionDAOprojectId - only permissions on this project will be returnedpermissionType - type of permissions to returnCopyright © 2002–2022 itracker. All rights reserved.