Class AccountArchiveServiceImpl
java.lang.Object
net.anotheria.portalkit.services.accountarchive.AccountArchiveServiceImpl
- All Implemented Interfaces:
net.anotheria.anoprise.metafactory.Service,net.anotheria.moskito.core.entity.EntityManagingService,AccountArchiveService
public class AccountArchiveServiceImpl
extends Object
implements AccountArchiveService, net.anotheria.moskito.core.entity.EntityManagingService
- Since:
- 21.04.14 19:03
- Author:
- VKoulakov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateAccount(ArchivedAccount toUpdate) Creates a new archived account.voiddeleteAccount(net.anotheria.portalkit.services.common.AccountId accountId) Deletes archived account from database.voiddeleteAccountsByEmail(String pattern) Deletes archived accounts from database whose emails match pattern.getAccount(net.anotheria.portalkit.services.common.AccountId accountId) Returns an account by it's id.getAccountByEmail(String email) getAccountByName(String name) getAccounts(List<net.anotheria.portalkit.services.common.AccountId> accountIds) Returns a list of archived accounts for given list of identities.getCustomNote(net.anotheria.portalkit.services.common.AccountId accountId) Get custom note by account id.intvoidsaveCustomNote(net.anotheria.portalkit.services.common.AccountId accountId, String customNote) Save custom note by account id.voidupdateAccount(ArchivedAccount toUpdate) Updates acrchived account.
-
Constructor Details
-
AccountArchiveServiceImpl
public AccountArchiveServiceImpl()
-
-
Method Details
-
getEntityCount
- Specified by:
getEntityCountin interfacenet.anotheria.moskito.core.entity.EntityManagingService
-
getAccount
public ArchivedAccount getAccount(net.anotheria.portalkit.services.common.AccountId accountId) throws AccountArchiveServiceException Description copied from interface:AccountArchiveServiceReturns an account by it's id.- Specified by:
getAccountin interfaceAccountArchiveService- Parameters:
accountId- account id. id of account to find- Returns:
- archived account
- Throws:
AccountArchiveServiceException- if error.
-
getAccounts
public List<ArchivedAccount> getAccounts(List<net.anotheria.portalkit.services.common.AccountId> accountIds) throws AccountArchiveServiceException Description copied from interface:AccountArchiveServiceReturns a list of archived accounts for given list of identities.- Specified by:
getAccountsin interfaceAccountArchiveService- Parameters:
accountIds- account id.- Returns:
- list of
ArchivedAccount - Throws:
AccountArchiveServiceException- if error.
-
deleteAccount
public void deleteAccount(net.anotheria.portalkit.services.common.AccountId accountId) throws AccountArchiveServiceException Description copied from interface:AccountArchiveServiceDeletes archived account from database.- Specified by:
deleteAccountin interfaceAccountArchiveService- Parameters:
accountId- account id.- Throws:
AccountArchiveServiceException- if error.
-
deleteAccountsByEmail
Description copied from interface:AccountArchiveServiceDeletes archived accounts from database whose emails match pattern.- Specified by:
deleteAccountsByEmailin interfaceAccountArchiveService- Parameters:
pattern- email pattern string- Throws:
AccountArchiveServiceException
-
updateAccount
Description copied from interface:AccountArchiveServiceUpdates acrchived account.- Specified by:
updateAccountin interfaceAccountArchiveService- Parameters:
toUpdate- archive to update.- Throws:
AccountArchiveServiceException- if error.
-
createAccount
public ArchivedAccount createAccount(ArchivedAccount toUpdate) throws AccountArchiveServiceException Description copied from interface:AccountArchiveServiceCreates a new archived account.- Specified by:
createAccountin interfaceAccountArchiveService- Parameters:
toUpdate- archive to update.- Returns:
ArchivedAccount- Throws:
AccountArchiveServiceException- if error.
-
getCustomNote
public String getCustomNote(net.anotheria.portalkit.services.common.AccountId accountId) throws AccountArchiveServiceException Description copied from interface:AccountArchiveServiceGet custom note by account id.- Specified by:
getCustomNotein interfaceAccountArchiveService- Parameters:
accountId- account id- Returns:
- custom note
- Throws:
AccountArchiveServiceException- if error
-
saveCustomNote
public void saveCustomNote(net.anotheria.portalkit.services.common.AccountId accountId, String customNote) throws AccountArchiveServiceException Description copied from interface:AccountArchiveServiceSave custom note by account id.- Specified by:
saveCustomNotein interfaceAccountArchiveService- Parameters:
accountId- account idcustomNote- custom note- Throws:
AccountArchiveServiceException- if error
-
getAccountByName
- Specified by:
getAccountByNamein interfaceAccountArchiveService- Parameters:
name- account name.- Returns:
ArchivedAccount- Throws:
AccountArchiveServiceException- if error.
-
getAccountByEmail
- Specified by:
getAccountByEmailin interfaceAccountArchiveService- Parameters:
email- account email.- Returns:
ArchivedAccount- Throws:
AccountArchiveServiceException- if error.
-
getAllAccounts
- Specified by:
getAllAccountsin interfaceAccountArchiveService- Returns:
- list of
ArchivedAccount - Throws:
AccountArchiveServiceException- if error.
-
getAccountsByQuery
public List<ArchivedAccount> getAccountsByQuery(ArchivedAccountQuery query) throws AccountArchiveServiceException - Specified by:
getAccountsByQueryin interfaceAccountArchiveService- Parameters:
query-ArchivedAccountQuery- Returns:
- list of
ArchivedAccount - Throws:
AccountArchiveServiceException- if error.
-