Class AccountHbmDAO

java.lang.Object
org.europa.together.application.GenericHbmDAO<AccountDO,String>
org.europa.together.application.acl.AccountHbmDAO
All Implemented Interfaces:
Serializable, AccountDAO, org.europa.together.business.GenericDAO<AccountDO,String>

@Repository @Transactional public class AccountHbmDAO extends org.europa.together.application.GenericHbmDAO<AccountDO,String> implements AccountDAO
Implementation of the AccountDAO.
See Also:
  • Constructor Details

    • AccountHbmDAO

      public AccountHbmDAO()
      Default Constructor.
  • Method Details

    • findAccountByVerificationCode

      public AccountDO findAccountByVerificationCode(String verificationCode)
      Description copied from interface: AccountDAO
      Fetch an account by his verification code, to enanble the activation / registration procedure.
      Specified by:
      findAccountByVerificationCode in interface AccountDAO
      Parameters:
      verificationCode - as String
      Returns:
      account as AccountDO
    • deactivateAccount

      public boolean deactivateAccount(String email)
      Description copied from interface: AccountDAO
      Deactivates an Account. The Account PrimaryKey (ID) is the email address.
      Specified by:
      deactivateAccount in interface AccountDAO
      Parameters:
      email - as String
      Returns:
      true on success
    • verifyAccount

      public boolean verifyAccount(String email)
      Description copied from interface: AccountDAO
      Set an Account to verified. The Account PrimaryKey (ID) is the email address.
      Specified by:
      verifyAccount in interface AccountDAO
      Parameters:
      email - as String
      Returns:
      true on success
    • listActivatedAccounts

      @Transactional(readOnly=true) public List<AccountDO> listActivatedAccounts()
      Description copied from interface: AccountDAO
      Get all activated Accounts.
      Specified by:
      listActivatedAccounts in interface AccountDAO
      Returns:
      List of AccountDO
    • listDeactivatedAccounts

      @Transactional(readOnly=true) public List<AccountDO> listDeactivatedAccounts()
      Description copied from interface: AccountDAO
      Get all deactivated Accounts.
      Specified by:
      listDeactivatedAccounts in interface AccountDAO
      Returns:
      List of AccountDO
    • listNotConfirmedAccounts

      @Transactional(readOnly=true) public List<AccountDO> listNotConfirmedAccounts()
      Description copied from interface: AccountDAO
      Get all accounts, which are not verified.
      Specified by:
      listNotConfirmedAccounts in interface AccountDAO
      Returns:
      List of AccountDO
    • listAccountsOfRole

      @Transactional(readOnly=true) public List<AccountDO> listAccountsOfRole(String roleName)
      Description copied from interface: AccountDAO
      Get all Accounts for a specified role.
      Specified by:
      listAccountsOfRole in interface AccountDAO
      Parameters:
      roleName - as String
      Returns:
      List of AccountDO
    • listRegisterdAcountsBeforeDate

      @Transactional(readOnly=true) public List<AccountDO> listRegisterdAcountsBeforeDate(Timestamp date)
      Description copied from interface: AccountDAO
      Get all Accounts which registered before a given date.
      Specified by:
      listRegisterdAcountsBeforeDate in interface AccountDAO
      Parameters:
      date - as Timestamp
      Returns:
      List of AccountDO
    • listRegisterdAcountsAfterDate

      @Transactional(readOnly=true) public List<AccountDO> listRegisterdAcountsAfterDate(Timestamp date)
      Description copied from interface: AccountDAO
      Get all Accounts which registered after a given date.
      Specified by:
      listRegisterdAcountsAfterDate in interface AccountDAO
      Parameters:
      date - as Timestamp
      Returns:
      List of AccountDO