Class PermissionHbmDAO
java.lang.Object
org.europa.together.application.GenericHbmDAO<PermissionDO,String>
org.europa.together.application.acl.PermissionHbmDAO
- All Implemented Interfaces:
Serializable,PermissionDAO,org.europa.together.business.GenericDAO<PermissionDO,String>
@Repository
@Transactional
public class PermissionHbmDAO
extends org.europa.together.application.GenericHbmDAO<PermissionDO,String>
implements PermissionDAO
Implementation of the PermissionDAO.
- See Also:
-
Field Summary
Fields inherited from class org.europa.together.application.GenericHbmDAO
mainEntityManagerFactoryFields inherited from interface org.europa.together.business.GenericDAO
FEATURE_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOverride the find() method to fetch a permission by the given id.Override the find() method to fetch a permission by the given roleName, resource and view.listRolePermissions(String roleName) List all permissions of a role.Methods inherited from class org.europa.together.application.GenericHbmDAO
countAllElements, create, delete, deserializeJsonAsList, deserializeJsonAsObject, getPrimaryKeyOfObject, listAllElements, serializeAsJson, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.europa.together.business.GenericDAO
countAllElements, create, delete, deserializeJsonAsList, deserializeJsonAsObject, getPrimaryKeyOfObject, listAllElements, serializeAsJson, update
-
Constructor Details
-
PermissionHbmDAO
public PermissionHbmDAO()Default Constructor.
-
-
Method Details
-
find
Description copied from interface:PermissionDAOOverride the find() method to fetch a permission by the given id.- Specified by:
findin interfaceorg.europa.together.business.GenericDAO<PermissionDO,String> - Specified by:
findin interfacePermissionDAO- Overrides:
findin classorg.europa.together.application.GenericHbmDAO<PermissionDO,String> - Parameters:
permissionId- as String- Returns:
- PermissionDO as Object
-
find
Description copied from interface:PermissionDAOOverride the find() method to fetch a permission by the given roleName, resource and view.- Specified by:
findin interfacePermissionDAO
-
listRolePermissions
Description copied from interface:PermissionDAOList all permissions of a role. If a role not exist the result will be an empty list.- Specified by:
listRolePermissionsin interfacePermissionDAO- Parameters:
roleName- as String- Returns:
- List of PermissionDO
-