| Constructor and Description |
|---|
EncryptedMemoryStore(android.content.Context context,
IdGenerator idGenerator,
String password,
Class<T> modelClass) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEmpty()
Checks if the storage system contains no stored elements.
|
T |
read(Serializable id)
Reads a specific object/record from the underlying storage system.
|
Collection<T> |
readAll()
Reads all the data from the underlying storage system.
|
List<T> |
readWithFilter(org.jboss.aerogear.android.core.ReadFilter filter)
Search for objects/records from the underlying storage system.
|
void |
remove(Serializable id)
Removes a specific object/record from the underlying storage system.
|
void |
reset()
Resets the entire storage system.
|
void |
save(Collection<T> items)
Saves the given objects in the underlying storage system.
|
void |
save(T item)
Saves the given object in the underlying storage system.
|
public EncryptedMemoryStore(android.content.Context context,
IdGenerator idGenerator,
String password,
Class<T> modelClass)
public Collection<T> readAll() throws org.jboss.aerogear.android.security.InvalidKeyException
public T read(Serializable id) throws org.jboss.aerogear.android.security.InvalidKeyException
public List<T> readWithFilter(org.jboss.aerogear.android.core.ReadFilter filter) throws org.jboss.aerogear.android.security.InvalidKeyException
readWithFilter in interface Store<T>filter - a filter to use to fetch an objectorg.jboss.aerogear.android.security.InvalidKeyExceptionpublic void save(T item)
public void save(Collection<T> items)
public void reset()
public void remove(Serializable id)
Copyright © 2016 JBoss by Red Hat. All rights reserved.