Class RemoteAccountArchiveServiceStub
- java.lang.Object
-
- net.anotheria.portalkit.services.accountarchive.generated.RemoteAccountArchiveServiceStub
-
- All Implemented Interfaces:
net.anotheria.anoprise.metafactory.Service,AccountArchiveService
public class RemoteAccountArchiveServiceStub extends java.lang.Object implements AccountArchiveService
-
-
Constructor Summary
Constructors Constructor Description RemoteAccountArchiveServiceStub()RemoteAccountArchiveServiceStub(org.distributeme.core.ServiceDescriptor target)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArchivedAccountcreateAccount(ArchivedAccount toUpdate)Creates a new archived account.voiddeleteAccount(net.anotheria.portalkit.services.common.AccountId accountId)Deletes archived account from database.voiddeleteAccountsByEmail(java.lang.String pattern)Deletes archived accounts from database whose emails match pattern.ArchivedAccountgetAccount(net.anotheria.portalkit.services.common.AccountId accountId)Returns an account by it's id.ArchivedAccountgetAccountByEmail(java.lang.String email)ArchivedAccountgetAccountByName(java.lang.String name)java.util.List<ArchivedAccount>getAccounts(java.util.List<net.anotheria.portalkit.services.common.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.StringgetCustomNote(net.anotheria.portalkit.services.common.AccountId accountId)Get custom note by account id.voidsaveCustomNote(net.anotheria.portalkit.services.common.AccountId accountId, java.lang.String customNote)Save custom note by account id.voidupdateAccount(ArchivedAccount toUpdate)Updates acrchived account.
-
-
-
Method Detail
-
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 java.util.List<ArchivedAccount> getAccounts(java.util.List<net.anotheria.portalkit.services.common.AccountId> accountId) throws AccountArchiveServiceException
Description copied from interface:AccountArchiveServiceReturns a list of archived accounts for given list of identities.- Specified by:
getAccountsin interfaceAccountArchiveService- Parameters:
accountId- account id.- Returns:
- list of
ArchivedAccount - Throws:
AccountArchiveServiceException- if error.
-
deleteAccount
public void deleteAccount(net.anotheria.portalkit.services.common.AccountId accountId) throws AccountArchiveServiceExceptionDescription copied from interface:AccountArchiveServiceDeletes archived account from database.- Specified by:
deleteAccountin interfaceAccountArchiveService- Parameters:
accountId- account id.- Throws:
AccountArchiveServiceException- if error.
-
deleteAccountsByEmail
public void deleteAccountsByEmail(java.lang.String pattern) throws AccountArchiveServiceExceptionDescription copied from interface:AccountArchiveServiceDeletes archived accounts from database whose emails match pattern.- Specified by:
deleteAccountsByEmailin interfaceAccountArchiveService- Parameters:
pattern- email pattern string- Throws:
AccountArchiveServiceException
-
updateAccount
public void updateAccount(ArchivedAccount toUpdate) throws AccountArchiveServiceException
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 java.lang.String getCustomNote(net.anotheria.portalkit.services.common.AccountId accountId) throws AccountArchiveServiceExceptionDescription 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, java.lang.String customNote) throws AccountArchiveServiceExceptionDescription copied from interface:AccountArchiveServiceSave custom note by account id.- Specified by:
saveCustomNotein interfaceAccountArchiveService- Parameters:
accountId- account idcustomNote- custom note- Throws:
AccountArchiveServiceException- if error
-
getAccountByName
public ArchivedAccount getAccountByName(java.lang.String name) throws AccountArchiveServiceException
- Specified by:
getAccountByNamein interfaceAccountArchiveService- Parameters:
name- account name.- Returns:
ArchivedAccount- Throws:
AccountArchiveServiceException- if error.
-
getAccountByEmail
public ArchivedAccount getAccountByEmail(java.lang.String email) throws AccountArchiveServiceException
- Specified by:
getAccountByEmailin interfaceAccountArchiveService- Parameters:
email- account email.- Returns:
ArchivedAccount- Throws:
AccountArchiveServiceException- if error.
-
getAllAccounts
public java.util.List<ArchivedAccount> getAllAccounts() throws AccountArchiveServiceException
- Specified by:
getAllAccountsin interfaceAccountArchiveService- Returns:
- list of
ArchivedAccount - Throws:
AccountArchiveServiceException- if error.
-
getAccountsByQuery
public java.util.List<ArchivedAccount> getAccountsByQuery(ArchivedAccountQuery query) throws AccountArchiveServiceException
- Specified by:
getAccountsByQueryin interfaceAccountArchiveService- Parameters:
query-ArchivedAccountQuery- Returns:
- list of
ArchivedAccount - Throws:
AccountArchiveServiceException- if error.
-
-