BaseDAO<Permission>
, PermissionDAO
public 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, saveOrUpdate
delete, detach, merge, refresh, save, saveOrUpdate
public List<Permission> findByUserId(Integer userId)
PermissionDAO
findByUserId
in interface PermissionDAO
@Deprecated public List<Permission> findByProjectIdAndPermission(Integer projectId, int permissionType)
findByProjectIdAndPermission
in interface PermissionDAO
public List<Permission> findByProjectIdAndPermission(Integer projectId, PermissionType permissionType)
PermissionDAO
findByProjectIdAndPermission
in interface PermissionDAO
projectId
- only permissions on this project will be returnedpermissionType
- type of permissions to returnCopyright © 2002–2019 itracker. All rights reserved.