Class RolesHbmDAO

java.lang.Object
org.europa.together.application.GenericHbmDAO<RolesDO,String>
org.europa.together.application.acl.RolesHbmDAO
All Implemented Interfaces:
Serializable, RolesDAO, org.europa.together.business.GenericDAO<RolesDO,String>

@Repository @Transactional public class RolesHbmDAO extends org.europa.together.application.GenericHbmDAO<RolesDO,String> implements RolesDAO
Implementation of the RolesDAO.
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
    void
    delete(String roleName)
     
    Return a list of all roles which protected against deleting, to prevent accidents.

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

    countAllElements, create, deserializeJsonAsList, deserializeJsonAsObject, find, 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, deserializeJsonAsList, deserializeJsonAsObject, find, getPrimaryKeyOfObject, listAllElements, serializeAsJson, update
  • Constructor Details

    • RolesHbmDAO

      public RolesHbmDAO()
      Default Constructor.
  • Method Details

    • delete

      public void delete(String roleName) throws jakarta.persistence.EntityNotFoundException
      Specified by:
      delete in interface org.europa.together.business.GenericDAO<RolesDO,String>
      Overrides:
      delete in class org.europa.together.application.GenericHbmDAO<RolesDO,String>
      Throws:
      jakarta.persistence.EntityNotFoundException
    • listProtectedRoles

      @Transactional(readOnly=true) public List<RolesDO> listProtectedRoles()
      Description copied from interface: RolesDAO
      Return a list of all roles which protected against deleting, to prevent accidents.
      Specified by:
      listProtectedRoles in interface RolesDAO
      Returns:
      List of RolesDO