public interface AccountArchivePersistenceService
extends net.anotheria.anoprise.metafactory.Service
| Modifier and Type | Method and Description |
|---|---|
void |
deleteAccount(AccountId id)
Deletes the account with submitted id.
|
ArchivedAccount |
getAccount(AccountId id)
Returns the account with that account id.
|
java.util.List<ArchivedAccount> |
getAccounts(java.util.List<AccountId> identities)
Returns the list of
AccountId with specified identities. |
java.util.List<ArchivedAccount> |
getAccountsByQuery(ArchivedAccountQuery query)
Get accounts by query.
|
java.util.List<AccountId> |
getAccountsByType(int id) |
java.util.Collection<AccountId> |
getAllAccountIds()
Get all account id's.
|
java.util.List<ArchivedAccount> |
getAllAccounts() |
java.lang.String |
getCustomNote(AccountId id)
Returns the custom note of the account with the given id.
|
AccountId |
getIdByEmail(java.lang.String email)
Returns the id of the account with the given email.
|
AccountId |
getIdByName(java.lang.String name)
Returns the id of the account with the given name.
|
void |
saveAccount(ArchivedAccount account)
Saves the account.
|
void |
saveCustomNote(AccountId id,
java.lang.String customNote)
Save custom note.
|
ArchivedAccount getAccount(AccountId id) throws ArchivedAccountPersistenceServiceException
id - account identityArchivedAccountArchivedAccountPersistenceServiceException - if some error occurredjava.util.List<ArchivedAccount> getAccounts(java.util.List<AccountId> identities) throws ArchivedAccountPersistenceServiceException
AccountId with specified identities.identities - list of identities to find.AccountIdArchivedAccountPersistenceServiceException - if some error occurredjava.util.List<ArchivedAccount> getAllAccounts() throws ArchivedAccountPersistenceServiceException
AccountIdArchivedAccountPersistenceServiceExceptionvoid saveAccount(ArchivedAccount account) throws ArchivedAccountPersistenceServiceException
account - ArchivedAccount to be savedArchivedAccountPersistenceServiceException - if some error occurredvoid deleteAccount(AccountId id) throws ArchivedAccountPersistenceServiceException
id - account identityArchivedAccountPersistenceServiceException - if some error occurredAccountId getIdByName(java.lang.String name) throws ArchivedAccountPersistenceServiceException
name - account name to findAccountIdArchivedAccountPersistenceServiceException - if some error occurredjava.lang.String getCustomNote(AccountId id) throws ArchivedAccountPersistenceServiceException
id - account id to findArchivedAccountPersistenceServiceException - if some error occurredvoid saveCustomNote(AccountId id, java.lang.String customNote) throws ArchivedAccountPersistenceServiceException
id - account idcustomNote - custom noteArchivedAccountPersistenceServiceException - if some error occurredAccountId getIdByEmail(java.lang.String email) throws ArchivedAccountPersistenceServiceException
email - account email to findArchivedAccountPersistenceServiceException - if some error occurredjava.util.Collection<AccountId> getAllAccountIds() throws ArchivedAccountPersistenceServiceException
Collection of AccountIdArchivedAccountPersistenceServiceException - if some error occurredjava.util.List<AccountId> getAccountsByType(int id) throws ArchivedAccountPersistenceServiceException
id - account id.AccountIdArchivedAccountPersistenceServiceException - if some error occurredjava.util.List<ArchivedAccount> getAccountsByQuery(ArchivedAccountQuery query) throws ArchivedAccountPersistenceServiceException
query - ArchivedAccountQueryList of ArchivedAccountArchivedAccountPersistenceServiceException - if some error occurredCopyright © 2012-2023 anotheria.net. All Rights Reserved.