public interface ClientStorage
| Modifier and Type | Method and Description |
|---|---|
Optional<Client> |
addClient(String id,
String secret,
Client.Role role,
String contactInfo)
Adds a new client to the storage using the provided details and the default priority.
|
Optional<Client> |
addClient(String id,
String secret,
Client.Role role,
String contactInfo,
Priority priority)
Adds a new client to the storage using the provided details.
|
Client |
defaultClient()
Returns the default client
|
boolean |
delete(String id)
Removes the client, the default client can't be deleted.
|
Optional<Client> |
get(String id)
Get the client idetified by the id.
|
List<? extends Client> |
getAll()
Gets all the clients in the system.
|
Optional<Client> |
update(String id,
String secret,
Client.Role role,
String contactInfo,
Priority priority)
Updates the client using the new values.
|
List<? extends Client> getAll()
id - boolean delete(String id)
client - Optional<Client> update(String id, String secret, Client.Role role, String contactInfo, Priority priority)
client - Optional<Client> addClient(String id, String secret, Client.Role role, String contactInfo, Priority priority)
id - secret - role - contactInfo - priority - Optional<Client> addClient(String id, String secret, Client.Role role, String contactInfo)
id - secret - role - contactInfo - priority - Client defaultClient()
id - secret - role - contactInfo - priority - Copyright © 2010–2026 The DAISY Consortium. All rights reserved.