Interface AccountDAO

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

@Repository public interface AccountDAO extends org.europa.together.business.GenericDAO<AccountDO,String>
An account is identified by E-Mail addresses.
Since:
1.0
Version:
1.0
Author:
elmar.dott@gmail.com
  • Method Details

    • findAccountByVerificationCode

      @API(status=STABLE, since="1.0") AccountDO findAccountByVerificationCode(String verificationCode)
      Fetch an account by his verification code, to enanble the activation / registration procedure.
      Parameters:
      verificationCode - as String
      Returns:
      account as AccountDO
    • deactivateAccount

      @API(status=STABLE, since="1.0") boolean deactivateAccount(String email)
      Deactivates an Account. The Account PrimaryKey (ID) is the email address.
      Parameters:
      email - as String
      Returns:
      true on success
    • verifyAccount

      @API(status=STABLE, since="1.0") boolean verifyAccount(String email)
      Set an Account to verified. The Account PrimaryKey (ID) is the email address.
      Parameters:
      email - as String
      Returns:
      true on success
    • listActivatedAccounts

      @API(status=STABLE, since="1.0") List<AccountDO> listActivatedAccounts()
      Get all activated Accounts.
      Returns:
      List of AccountDO
    • listDeactivatedAccounts

      @API(status=STABLE, since="1.0") List<AccountDO> listDeactivatedAccounts()
      Get all deactivated Accounts.
      Returns:
      List of AccountDO
    • listNotConfirmedAccounts

      @API(status=STABLE, since="1.0") List<AccountDO> listNotConfirmedAccounts()
      Get all accounts, which are not verified.
      Returns:
      List of AccountDO
    • listAccountsOfRole

      @API(status=STABLE, since="1.0") List<AccountDO> listAccountsOfRole(String roleName)
      Get all Accounts for a specified role.
      Parameters:
      roleName - as String
      Returns:
      List of AccountDO
    • listRegisterdAcountsBeforeDate

      @API(status=STABLE, since="1.0") List<AccountDO> listRegisterdAcountsBeforeDate(Timestamp date)
      Get all Accounts which registered before a given date.
      Parameters:
      date - as Timestamp
      Returns:
      List of AccountDO
    • listRegisterdAcountsAfterDate

      @API(status=STABLE, since="1.0") List<AccountDO> listRegisterdAcountsAfterDate(Timestamp date)
      Get all Accounts which registered after a given date.
      Parameters:
      date - as Timestamp
      Returns:
      List of AccountDO