@DistributeMe
@FailBy(strategyClass=org.distributeme.core.failing.RetryCallOnce.class)
public interface AccountArchiveService
extends net.anotheria.anoprise.metafactory.Service
| Modifier and Type | Method and Description |
|---|---|
ArchivedAccount |
createAccount(ArchivedAccount toUpdate)
Creates a new archived account.
|
void |
deleteAccount(AccountId accountId)
Deletes archived account from database.
|
void |
deleteAccountsByEmail(java.lang.String pattern)
Deletes archived accounts from database whose emails match pattern.
|
ArchivedAccount |
getAccount(AccountId accountId)
Returns an account by it's id.
|
ArchivedAccount |
getAccountByEmail(java.lang.String email) |
ArchivedAccount |
getAccountByName(java.lang.String name) |
java.util.List<ArchivedAccount> |
getAccounts(java.util.List<AccountId> accountId)
Returns a list of archived accounts for given list of identities.
|
java.util.List<ArchivedAccount> |
getAccountsByQuery(ArchivedAccountQuery query) |
java.util.List<ArchivedAccount> |
getAllAccounts() |
java.lang.String |
getCustomNote(AccountId accountId)
Get custom note by account id.
|
void |
saveCustomNote(AccountId accountId,
java.lang.String customNote)
Save custom note by account id.
|
void |
updateAccount(ArchivedAccount toUpdate)
Updates acrchived account.
|
ArchivedAccount getAccount(AccountId accountId) throws AccountArchiveServiceException
accountId - account id. id of account to findAccountArchiveServiceException - if error.java.util.List<ArchivedAccount> getAccounts(java.util.List<AccountId> accountId) throws AccountArchiveServiceException
accountId - account id.ArchivedAccountAccountArchiveServiceException - if error.void deleteAccount(AccountId accountId) throws AccountArchiveServiceException
accountId - account id.AccountArchiveServiceException - if error.void deleteAccountsByEmail(java.lang.String pattern)
throws AccountArchiveServiceException
pattern - email pattern stringAccountArchiveServiceExceptionvoid updateAccount(ArchivedAccount toUpdate) throws AccountArchiveServiceException
toUpdate - archive to update.AccountArchiveServiceException - if error.ArchivedAccount createAccount(ArchivedAccount toUpdate) throws AccountArchiveServiceException
toUpdate - archive to update.ArchivedAccountAccountArchiveServiceException - if error.java.lang.String getCustomNote(AccountId accountId) throws AccountArchiveServiceException
accountId - account idAccountArchiveServiceException - if errorvoid saveCustomNote(AccountId accountId, java.lang.String customNote) throws AccountArchiveServiceException
accountId - account idcustomNote - custom noteAccountArchiveServiceException - if errorArchivedAccount getAccountByName(java.lang.String name) throws AccountArchiveServiceException
name - account name.ArchivedAccountAccountArchiveServiceException - if error.ArchivedAccount getAccountByEmail(java.lang.String email) throws AccountArchiveServiceException
email - account email.ArchivedAccountAccountArchiveServiceException - if error.java.util.List<ArchivedAccount> getAllAccounts() throws AccountArchiveServiceException
ArchivedAccountAccountArchiveServiceException - if error.java.util.List<ArchivedAccount> getAccountsByQuery(ArchivedAccountQuery query) throws AccountArchiveServiceException
query - ArchivedAccountQueryArchivedAccountAccountArchiveServiceException - if error.Copyright © 2012-2023 anotheria.net. All Rights Reserved.