public interface ClientStorage
Modifier and Type | Method and Description |
---|---|
com.google.common.base.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.
|
com.google.common.base.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.
|
com.google.common.base.Optional<Client> |
get(String id)
Get the client idetified by the id.
|
List<? extends Client> |
getAll()
Gets all the clients in the system.
|
com.google.common.base.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
- com.google.common.base.Optional<Client> get(String id)
id
- boolean delete(String id)
client
- com.google.common.base.Optional<Client> update(String id, String secret, Client.Role role, String contactInfo, Priority priority)
client
- com.google.common.base.Optional<Client> addClient(String id, String secret, Client.Role role, String contactInfo, Priority priority)
id
- secret
- role
- contactInfo
- priority
- com.google.common.base.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–2024 The DAISY Consortium. All rights reserved.