Interface LoginDAO

All Superinterfaces:
org.europa.together.business.GenericDAO<LoginDO,String>, Serializable
All Known Implementing Classes:
LoginHbmDAO

@Repository public interface LoginDAO extends org.europa.together.business.GenericDAO<LoginDO,String>
Every account can have multiply logins. The logins track the last activity to increase security. Every user can see his last logins to detect unauthorized access.
Since:
1.0
Version:
1.0
Author:
elmar.dott@gmail.com
  • Field Summary

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

    FEATURE_ID
  • 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 interface org.europa.together.business.GenericDAO

    countAllElements, create, delete, deserializeJsonAsList, deserializeJsonAsObject, find, getPrimaryKeyOfObject, listAllElements, serializeAsJson, update
  • Method Details

    • getLoginsFromAccount

      @API(status=STABLE, since="1.0") List<LoginDO> getLoginsFromAccount(String account)
      Get all Logins by a given account. The account identifier is the e-mail address.
      Parameters:
      account - as String
      Returns:
      List of LoginDO
    • doLogout

      @API(status=STABLE, since="1.0") void doLogout(String account) throws org.europa.together.exceptions.DAOException
      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.
      Parameters:
      account - as String
      Throws:
      org.europa.together.exceptions.DAOException