public interface StorageClient
| Modifier and Type | Method and Description |
|---|---|
Account |
getAccount(java.lang.String accountId)
Get the Account object with its id
|
java.util.List<Account> |
getAllAccounts()
Get all accounts stored in the system.
|
java.util.List<PushNotification> |
getAllNotifications()
Get all notifications from the storage system.
|
java.util.List<PushNotification> |
getAllNotificationsForMechanism(Mechanism mechanism)
Get all notifications for within the mechanism.
|
Mechanism |
getMechanismByUUID(java.lang.String mechanismUID)
Get the mechanism by UUID.
|
java.util.List<Mechanism> |
getMechanismsForAccount(Account account)
Get the mechanisms associated with an account.
|
PushNotification |
getNotification(java.lang.String notificationId)
Get the PushNotification object with its id
|
boolean |
isEmpty()
Whether the storage system currently contains any data.
|
boolean |
removeAccount(Account account)
Delete the Account that was passed in.
|
boolean |
removeMechanism(Mechanism mechanism)
Delete the mechanism uniquely identified by an id.
|
boolean |
removeNotification(PushNotification pushNotification)
Delete the pushNotification uniquely identified by an id.
|
boolean |
setAccount(Account account)
Add or Update the Account to the storage system.
|
boolean |
setMechanism(Mechanism mechanism)
Add or update the mechanism to the storage system.
|
boolean |
setNotification(PushNotification pushNotification)
Add or update the pushNotification to the storage system.
|
Account getAccount(java.lang.String accountId)
accountId - The account unique IDjava.util.List<Account> getAllAccounts()
boolean removeAccount(Account account)
account - The account object to delete.boolean setAccount(Account account)
account - The Account to store or update.java.util.List<Mechanism> getMechanismsForAccount(Account account)
account - The Account objectMechanism getMechanismByUUID(java.lang.String mechanismUID)
mechanismUID - The uniquely identifiable UUID for the mechanismboolean removeMechanism(Mechanism mechanism)
mechanism - The mechanism object to delete.boolean setMechanism(Mechanism mechanism)
mechanism - The mechanism to store or update.java.util.List<PushNotification> getAllNotifications()
java.util.List<PushNotification> getAllNotificationsForMechanism(Mechanism mechanism)
mechanism - The mechanism objectboolean removeNotification(PushNotification pushNotification)
pushNotification - The pushNotification object to delete.boolean setNotification(PushNotification pushNotification)
pushNotification - The pushNotification to store.PushNotification getNotification(java.lang.String notificationId)
notificationId - The PushNotification unique IDboolean isEmpty()