Class PermissionHbmDAO

java.lang.Object
org.europa.together.application.GenericHbmDAO<org.europa.together.domain.acl.PermissionDO,String>
org.europa.together.application.acl.PermissionHbmDAO
All Implemented Interfaces:
Serializable, org.europa.together.business.acl.PermissionDAO, org.europa.together.business.GenericDAO<org.europa.together.domain.acl.PermissionDO,String>

@Repository @Transactional public class PermissionHbmDAO extends org.europa.together.application.GenericHbmDAO<org.europa.together.domain.acl.PermissionDO,String> implements org.europa.together.business.acl.PermissionDAO
Implementation of the PermissionDAO.
See Also:
  • Field Summary

    Fields inherited from class org.europa.together.application.GenericHbmDAO

    mainEntityManagerFactory

    Fields inherited from interface org.europa.together.business.GenericDAO

    FEATURE_ID
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.europa.together.domain.acl.PermissionDO
    find(String permissionId)
     
    org.europa.together.domain.acl.PermissionDO
    find(String roleName, String resource, String view)
     
    List<org.europa.together.domain.acl.PermissionDO>
     

    Methods inherited from class org.europa.together.application.GenericHbmDAO

    countAllElements, create, delete, deserializeJsonAsList, deserializeJsonAsObject, getPrimaryKeyOfObject, listAllElements, serializeAsJson, update

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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

      public org.europa.together.domain.acl.PermissionDO find(String permissionId)
      Specified by:
      find in interface org.europa.together.business.GenericDAO<org.europa.together.domain.acl.PermissionDO,String>
      Specified by:
      find in interface org.europa.together.business.acl.PermissionDAO
      Overrides:
      find in class org.europa.together.application.GenericHbmDAO<org.europa.together.domain.acl.PermissionDO,String>
    • find

      public org.europa.together.domain.acl.PermissionDO find(String roleName, String resource, String view)
      Specified by:
      find in interface org.europa.together.business.acl.PermissionDAO
    • listRolePermissions

      @Transactional(readOnly=true) public List<org.europa.together.domain.acl.PermissionDO> listRolePermissions(String roleName)
      Specified by:
      listRolePermissions in interface org.europa.together.business.acl.PermissionDAO