@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)
ClientRetrievalService
clientChanged
in interface ClientRetrievalService
clientId
- the ID of the changed clientpublic ClientTO findClient(String clientId) throws ClientNotFoundException
ClientRetrievalService
findClient
in interface ClientRetrievalService
clientId
- the client idClientNotFoundException
- in case there is no client with the given IDpublic Collection<ClientTO> getAllActiveClients()
ClientRetrievalService
getAllActiveClients
in interface ClientRetrievalService
public Collection<ClientTO> getAllClients()
ClientRetrievalService
getAllClients
in interface ClientRetrievalService
public void setCacheElementProvider(CacheElementProvider<StringIdBasedCacheKey,ClientTO> cacheElementProvider)
StringIdBasedCacheKey
whose ID member holds the clientId.cacheElementProvider
- the element providerCopyright © 2019 Communote team. All rights reserved.