Class LoginHbmDAO

java.lang.Object
org.europa.together.application.GenericHbmDAO<LoginDO,String>
org.europa.together.application.acl.LoginHbmDAO
All Implemented Interfaces:
Serializable, LoginDAO, org.europa.together.business.GenericDAO<LoginDO,String>

@Repository @Transactional public class LoginHbmDAO extends org.europa.together.application.GenericHbmDAO<LoginDO,String> implements LoginDAO
Implementation of the LoginDAO.
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
    doLogout(String account)
    Fethc the last (newest) login object of an account to perform a logout.
    Get all Logins by a given account.

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

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

    • LoginHbmDAO

      public LoginHbmDAO()
      Default Constructor.
  • Method Details

    • getLoginsFromAccount

      @Transactional(readOnly=true) public List<LoginDO> getLoginsFromAccount(String account)
      Description copied from interface: LoginDAO
      Get all Logins by a given account. The account identifier is the e-mail address.
      Specified by:
      getLoginsFromAccount in interface LoginDAO
      Parameters:
      account - as String
      Returns:
      List of LoginDO
    • doLogout

      public void doLogout(String account) throws org.europa.together.exceptions.DAOException
      Description copied from interface: LoginDAO
      Fethc the last (newest) login object of an account to perform a logout. A logout means, that the logout timestamp will set to the datarow.
      Specified by:
      doLogout in interface LoginDAO
      Parameters:
      account - as String
      Throws:
      org.europa.together.exceptions.DAOException