public class AccountArchiveServiceImpl extends java.lang.Object implements AccountArchiveService
| Constructor and Description |
|---|
AccountArchiveServiceImpl() |
| 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> accountIds)
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.
|
public ArchivedAccount getAccount(AccountId accountId) throws AccountArchiveServiceException
AccountArchiveServicegetAccount in interface AccountArchiveServiceaccountId - account id. id of account to findAccountArchiveServiceException - if error.public java.util.List<ArchivedAccount> getAccounts(java.util.List<AccountId> accountIds) throws AccountArchiveServiceException
AccountArchiveServicegetAccounts in interface AccountArchiveServiceaccountIds - account id.ArchivedAccountAccountArchiveServiceException - if error.public void deleteAccount(AccountId accountId) throws AccountArchiveServiceException
AccountArchiveServicedeleteAccount in interface AccountArchiveServiceaccountId - account id.AccountArchiveServiceException - if error.public void deleteAccountsByEmail(java.lang.String pattern)
throws AccountArchiveServiceException
AccountArchiveServicedeleteAccountsByEmail in interface AccountArchiveServicepattern - email pattern stringAccountArchiveServiceExceptionpublic void updateAccount(ArchivedAccount toUpdate) throws AccountArchiveServiceException
AccountArchiveServiceupdateAccount in interface AccountArchiveServicetoUpdate - archive to update.AccountArchiveServiceException - if error.public ArchivedAccount createAccount(ArchivedAccount toUpdate) throws AccountArchiveServiceException
AccountArchiveServicecreateAccount in interface AccountArchiveServicetoUpdate - archive to update.ArchivedAccountAccountArchiveServiceException - if error.public java.lang.String getCustomNote(AccountId accountId) throws AccountArchiveServiceException
AccountArchiveServicegetCustomNote in interface AccountArchiveServiceaccountId - account idAccountArchiveServiceException - if errorpublic void saveCustomNote(AccountId accountId, java.lang.String customNote) throws AccountArchiveServiceException
AccountArchiveServicesaveCustomNote in interface AccountArchiveServiceaccountId - account idcustomNote - custom noteAccountArchiveServiceException - if errorpublic ArchivedAccount getAccountByName(java.lang.String name) throws AccountArchiveServiceException
getAccountByName in interface AccountArchiveServicename - account name.ArchivedAccountAccountArchiveServiceException - if error.public ArchivedAccount getAccountByEmail(java.lang.String email) throws AccountArchiveServiceException
getAccountByEmail in interface AccountArchiveServiceemail - account email.ArchivedAccountAccountArchiveServiceException - if error.public java.util.List<ArchivedAccount> getAllAccounts() throws AccountArchiveServiceException
getAllAccounts in interface AccountArchiveServiceArchivedAccountAccountArchiveServiceException - if error.public java.util.List<ArchivedAccount> getAccountsByQuery(ArchivedAccountQuery query) throws AccountArchiveServiceException
getAccountsByQuery in interface AccountArchiveServicequery - ArchivedAccountQueryArchivedAccountAccountArchiveServiceException - if error.Copyright © 2012-2023 anotheria.net. All Rights Reserved.