Interface AccountArchivePersistenceService
- All Superinterfaces:
net.anotheria.anoprise.metafactory.Service
- All Known Implementing Classes:
JdbcAccountArchivePersistenceServiceImpl
public interface AccountArchivePersistenceService
extends net.anotheria.anoprise.metafactory.Service
- Since:
- 21.04.14 19:04
- Author:
- VKoulakov
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteAccount(net.anotheria.portalkit.services.common.AccountId id) Deletes the account with submitted id.getAccount(net.anotheria.portalkit.services.common.AccountId id) Returns the account with that account id.getAccounts(List<net.anotheria.portalkit.services.common.AccountId> identities) Returns the list ofAccountIdwith specified identities.Get accounts by query.List<net.anotheria.portalkit.services.common.AccountId> getAccountsByType(int id) Collection<net.anotheria.portalkit.services.common.AccountId> Get all account id's.getCustomNote(net.anotheria.portalkit.services.common.AccountId id) Returns the custom note of the account with the given id.net.anotheria.portalkit.services.common.AccountIdgetIdByEmail(String email) Returns the id of the account with the given email.net.anotheria.portalkit.services.common.AccountIdgetIdByName(String name) Returns the id of the account with the given name.voidsaveAccount(ArchivedAccount account) Saves the account.voidsaveCustomNote(net.anotheria.portalkit.services.common.AccountId id, String customNote) Save custom note.
-
Method Details
-
getAccount
ArchivedAccount getAccount(net.anotheria.portalkit.services.common.AccountId id) throws ArchivedAccountPersistenceServiceException Returns the account with that account id.- Parameters:
id- account identity- Returns:
ArchivedAccount- Throws:
ArchivedAccountPersistenceServiceException- if some error occurred
-
getAccounts
List<ArchivedAccount> getAccounts(List<net.anotheria.portalkit.services.common.AccountId> identities) throws ArchivedAccountPersistenceServiceException Returns the list ofAccountIdwith specified identities.- Parameters:
identities- list of identities to find.- Returns:
- list of
AccountId - Throws:
ArchivedAccountPersistenceServiceException- if some error occurred
-
getAllAccounts
- Returns:
- list of
AccountId - Throws:
ArchivedAccountPersistenceServiceException
-
saveAccount
Saves the account.- Parameters:
account-ArchivedAccountto be saved- Throws:
ArchivedAccountPersistenceServiceException- if some error occurred
-
deleteAccount
void deleteAccount(net.anotheria.portalkit.services.common.AccountId id) throws ArchivedAccountPersistenceServiceException Deletes the account with submitted id.- Parameters:
id- account identity- Throws:
ArchivedAccountPersistenceServiceException- if some error occurred
-
getIdByName
net.anotheria.portalkit.services.common.AccountId getIdByName(String name) throws ArchivedAccountPersistenceServiceException Returns the id of the account with the given name.- Parameters:
name- account name to find- Returns:
AccountId- Throws:
ArchivedAccountPersistenceServiceException- if some error occurred
-
getCustomNote
String getCustomNote(net.anotheria.portalkit.services.common.AccountId id) throws ArchivedAccountPersistenceServiceException Returns the custom note of the account with the given id.- Parameters:
id- account id to find- Returns:
- custom note
- Throws:
ArchivedAccountPersistenceServiceException- if some error occurred
-
saveCustomNote
void saveCustomNote(net.anotheria.portalkit.services.common.AccountId id, String customNote) throws ArchivedAccountPersistenceServiceException Save custom note.- Parameters:
id- account idcustomNote- custom note- Throws:
ArchivedAccountPersistenceServiceException- if some error occurred
-
getIdByEmail
net.anotheria.portalkit.services.common.AccountId getIdByEmail(String email) throws ArchivedAccountPersistenceServiceException Returns the id of the account with the given email.- Parameters:
email- account email to find- Returns:
- AccountId
- Throws:
ArchivedAccountPersistenceServiceException- if some error occurred
-
getAllAccountIds
Collection<net.anotheria.portalkit.services.common.AccountId> getAllAccountIds() throws ArchivedAccountPersistenceServiceExceptionGet all account id's.- Returns:
CollectionofAccountId- Throws:
ArchivedAccountPersistenceServiceException- if some error occurred
-
getAccountsByType
List<net.anotheria.portalkit.services.common.AccountId> getAccountsByType(int id) throws ArchivedAccountPersistenceServiceException - Parameters:
id- account id.- Returns:
- list of
AccountId - Throws:
ArchivedAccountPersistenceServiceException- if some error occurred
-
getAccountsByQuery
List<ArchivedAccount> getAccountsByQuery(ArchivedAccountQuery query) throws ArchivedAccountPersistenceServiceException Get accounts by query.- Parameters:
query-ArchivedAccountQuery- Returns:
ListofArchivedAccount- Throws:
ArchivedAccountPersistenceServiceException- if some error occurred
-