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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeleteAccount(net.anotheria.portalkit.services.common.AccountId id)Deletes the account with submitted id.ArchivedAccountgetAccount(net.anotheria.portalkit.services.common.AccountId id)Returns the account with that account id.java.util.List<ArchivedAccount>getAccounts(java.util.List<net.anotheria.portalkit.services.common.AccountId> identities)Returns the list ofAccountIdwith specified identities.java.util.List<ArchivedAccount>getAccountsByQuery(ArchivedAccountQuery query)Get accounts by query.java.util.List<net.anotheria.portalkit.services.common.AccountId>getAccountsByType(int id)java.util.Collection<net.anotheria.portalkit.services.common.AccountId>getAllAccountIds()Get all account id's.java.util.List<ArchivedAccount>getAllAccounts()java.lang.StringgetCustomNote(net.anotheria.portalkit.services.common.AccountId id)Returns the custom note of the account with the given id.net.anotheria.portalkit.services.common.AccountIdgetIdByEmail(java.lang.String email)Returns the id of the account with the given email.net.anotheria.portalkit.services.common.AccountIdgetIdByName(java.lang.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, java.lang.String customNote)Save custom note.
-
-
-
Method Detail
-
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
java.util.List<ArchivedAccount> getAccounts(java.util.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
java.util.List<ArchivedAccount> getAllAccounts() throws ArchivedAccountPersistenceServiceException
- Returns:
- list of
AccountId - Throws:
ArchivedAccountPersistenceServiceException
-
saveAccount
void saveAccount(ArchivedAccount account) throws ArchivedAccountPersistenceServiceException
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 ArchivedAccountPersistenceServiceExceptionDeletes the account with submitted id.- Parameters:
id- account identity- Throws:
ArchivedAccountPersistenceServiceException- if some error occurred
-
getIdByName
net.anotheria.portalkit.services.common.AccountId getIdByName(java.lang.String name) throws ArchivedAccountPersistenceServiceExceptionReturns the id of the account with the given name.- Parameters:
name- account name to find- Returns:
AccountId- Throws:
ArchivedAccountPersistenceServiceException- if some error occurred
-
getCustomNote
java.lang.String getCustomNote(net.anotheria.portalkit.services.common.AccountId id) throws ArchivedAccountPersistenceServiceExceptionReturns 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, java.lang.String customNote) throws ArchivedAccountPersistenceServiceExceptionSave custom note.- Parameters:
id- account idcustomNote- custom note- Throws:
ArchivedAccountPersistenceServiceException- if some error occurred
-
getIdByEmail
net.anotheria.portalkit.services.common.AccountId getIdByEmail(java.lang.String email) throws ArchivedAccountPersistenceServiceExceptionReturns the id of the account with the given email.- Parameters:
email- account email to find- Returns:
- AccountId
- Throws:
ArchivedAccountPersistenceServiceException- if some error occurred
-
getAllAccountIds
java.util.Collection<net.anotheria.portalkit.services.common.AccountId> getAllAccountIds() throws ArchivedAccountPersistenceServiceExceptionGet all account id's.- Returns:
CollectionofAccountId- Throws:
ArchivedAccountPersistenceServiceException- if some error occurred
-
getAccountsByType
java.util.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
java.util.List<ArchivedAccount> getAccountsByQuery(ArchivedAccountQuery query) throws ArchivedAccountPersistenceServiceException
Get accounts by query.- Parameters:
query-ArchivedAccountQuery- Returns:
ListofArchivedAccount- Throws:
ArchivedAccountPersistenceServiceException- if some error occurred
-
-