public class PersistenceDerby extends Object implements Persistence
| Constructor and Description |
|---|
PersistenceDerby() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkUser(String id)
Check if a user is already persisted with an associated password pair.
|
boolean |
checkUserPWD(String id,
String pwd)
Method that checks the proper authentication of a persisted user-password
pair.
|
void |
init(ModuleContext context) |
void |
removeCallee(String space,
String subid) |
void |
removeCaller(String space,
String subid) |
void |
removeOlderThan(Long millis)
Maintenance method that removes all stored data from all tables that was
introduced more than @param millis ago.
|
void |
removePublisher(String space,
String subid) |
void |
removeSpace(String s) |
void |
removeSubscriber(String space,
String subid) |
void |
restore()
Restore in the MW all the persisted information (registration,
subscribers and callees)
|
void |
storeCallee(String space,
Callee c) |
void |
storeCaller(String space,
Caller c) |
void |
storePublisher(String space,
Publisher p) |
void |
storeSpace(Space s,
String v) |
void |
storeSubscriber(String space,
Subscriber s) |
void |
storeUserPWD(String id,
String pwd)
Store a new user-password pair for later authentication.
|
public void init(ModuleContext context)
init in interface Persistencepublic void storeSpace(Space s, String v)
storeSpace in interface Persistencepublic void storeSubscriber(String space, Subscriber s)
storeSubscriber in interface Persistencepublic void removeSubscriber(String space, String subid)
removeSubscriber in interface Persistencepublic void storePublisher(String space, Publisher p)
storePublisher in interface Persistencepublic void removePublisher(String space, String subid)
removePublisher in interface Persistencepublic void storeCaller(String space, Caller c)
storeCaller in interface Persistencepublic void removeCaller(String space, String subid)
removeCaller in interface Persistencepublic void storeCallee(String space, Callee c)
storeCallee in interface Persistencepublic void removeCallee(String space, String subid)
removeCallee in interface Persistencepublic void removeSpace(String s)
removeSpace in interface Persistencepublic void restore()
Persistencerestore in interface Persistencepublic void storeUserPWD(String id, String pwd)
PersistencestoreUserPWD in interface Persistenceid - Userpwd - Passwordpublic boolean checkUserPWD(String id, String pwd)
PersistencecheckUserPWD in interface Persistenceid - Userpwd - Passwordpublic boolean checkUser(String id)
PersistencecheckUser in interface Persistenceid - to checkpublic void removeOlderThan(Long millis)
millis - Minimum age, in milliseconds, at which the data will be
removed (data older than this will be removed)Copyright © 2018 universAAL Consortium. All rights reserved.