@Service(value="clientRetrievalService") public class ClientRetrievalServiceImpl extends Object implements ClientRetrievalService
| Constructor and Description |
|---|
ClientRetrievalServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
clientChanged(String clientId)
Notify the service that fields of a client changed.
|
ClientTO |
findClient(String clientId)
Find a client by its unique string-based ID
|
Collection<ClientTO> |
getAllActiveClients()
Get all clients with status ACTIVE
|
Collection<ClientTO> |
getAllClients()
Get all clients
|
void |
setCacheElementProvider(CacheElementProvider<StringIdBasedCacheKey,ClientTO> cacheElementProvider)
Set a custom cache element provider for loading clients within findClient.
|
public void clientChanged(String clientId)
ClientRetrievalServiceclientChanged in interface ClientRetrievalServiceclientId - the ID of the changed clientpublic ClientTO findClient(String clientId) throws ClientNotFoundException
ClientRetrievalServicefindClient in interface ClientRetrievalServiceclientId - the client idClientNotFoundException - in case there is no client with the given IDpublic Collection<ClientTO> getAllActiveClients()
ClientRetrievalServicegetAllActiveClients in interface ClientRetrievalServicepublic Collection<ClientTO> getAllClients()
ClientRetrievalServicegetAllClients in interface ClientRetrievalServicepublic void setCacheElementProvider(CacheElementProvider<StringIdBasedCacheKey,ClientTO> cacheElementProvider)
StringIdBasedCacheKey whose ID member holds the clientId.cacheElementProvider - the element providerCopyright © 2019 Communote team. All rights reserved.