Package org.europa.together.business.acl
Interface AccountDAO
- All Superinterfaces:
org.europa.together.business.GenericDAO<AccountDO,
,String> Serializable
@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
-
Field Summary
Fields inherited from interface org.europa.together.business.GenericDAO
FEATURE_ID
-
Method Summary
Modifier and TypeMethodDescriptionboolean
deactivateAccount
(String email) Deactivates an Account.findAccountByVerificationCode
(String verificationCode) Fetch an account by his verification code, to enanble the activation / registration procedure.listAccountsOfRole
(String roleName) Get all Accounts for a specified role.Get all activated Accounts.Get all deactivated Accounts.Get all accounts, which are not verified.Get all Accounts which registered after a given date.Get all Accounts which registered before a given date.boolean
verifyAccount
(String email) Set an Account to verified.Methods inherited from interface org.europa.together.business.GenericDAO
countAllElements, create, delete, deserializeJsonAsList, deserializeJsonAsObject, find, getPrimaryKeyOfObject, listAllElements, serializeAsJson, update
-
Method Details
-
findAccountByVerificationCode
Fetch an account by his verification code, to enanble the activation / registration procedure.- Parameters:
verificationCode
- as String- Returns:
- account as AccountDO
-
deactivateAccount
Deactivates an Account. The Account PrimaryKey (ID) is the email address.- Parameters:
email
- as String- Returns:
- true on success
-
verifyAccount
Set an Account to verified. The Account PrimaryKey (ID) is the email address.- Parameters:
email
- as String- Returns:
- true on success
-
listActivatedAccounts
Get all activated Accounts.- Returns:
- List of AccountDO
-
listDeactivatedAccounts
Get all deactivated Accounts.- Returns:
- List of AccountDO
-
listNotConfirmedAccounts
Get all accounts, which are not verified.- Returns:
- List of AccountDO
-
listAccountsOfRole
Get all Accounts for a specified role.- Parameters:
roleName
- as String- Returns:
- List of AccountDO
-
listRegisterdAcountsBeforeDate
Get all Accounts which registered before a given date.- Parameters:
date
- as Timestamp- Returns:
- List of AccountDO
-
listRegisterdAcountsAfterDate
Get all Accounts which registered after a given date.- Parameters:
date
- as Timestamp- Returns:
- List of AccountDO
-