public class ClientStorage
extends java.lang.Object
| Constructor and Description |
|---|
ClientStorage(ClientDAO clientDAO)
Constructor for ClientStorage.
|
| Modifier and Type | Method and Description |
|---|---|
long |
countClients()
countClients.
|
Client |
createClient(Client client)
createClient.
|
void |
deleteClient(long clientId)
deleteClient.
|
Client |
getClientById(long ClientId)
getClientById.
|
java.util.List<Client> |
getClients()
getClients.
|
Client |
toDTO(ClientEntity clientEntity)
toDTO.
|
ClientEntity |
toEntity(Client client)
toEntity.
|
Client |
updateClient(Client client)
updateClient.
|
public void deleteClient(long clientId)
throws org.gatein.api.EntityNotFoundException
deleteClient.
clientId - a long.org.gatein.api.EntityNotFoundException - if any.public Client getClientById(long ClientId)
getClientById.
ClientId - a long.Client object.public java.util.List<Client> getClients()
getClients.
List object.public long countClients()
countClients.
public Client toDTO(ClientEntity clientEntity)
toDTO.
clientEntity - a ClientEntity object.Client object.public ClientEntity toEntity(Client client)
toEntity.
client - a Client object.ClientEntity object.Copyright © 2003–2021 eXo Platform SAS. All rights reserved.