public interface Persistence
Modifier and Type | Method and Description |
---|---|
boolean |
checkUser(String user)
Check if a user is already persisted with an associated password pair.
|
boolean |
checkUserPWD(String user,
String pwd)
Method that checks the proper authentication of a persisted user-password
pair.
|
void |
init(RemoteAPI remoteAPI,
ModuleContext context)
Sets up the underlying database, creating any tables if not present
before, and performing any mainenance operations.
|
void |
removeRegister(String id)
Eliminate all persisted info (node registration, subscribers and callees)
of a remote node
|
void |
restore()
Restore in the R-API implementation (and consequently in the MW) all the
persisted information (registration, subscribers and callees) for all
nodes.
|
void |
storeCallee(String id,
String profile)
Persist a request to have a service callee for a node
|
void |
storeRegister(String id,
String remote,
String v)
Persist a request to have a registration of a remote node
|
void |
storeSubscriber(String id,
String pattern)
Persist a request to have a context subscriber for a node
|
void |
storeUserPWD(String user,
String pwd)
Store a new user-password pair for later authentication.
|
void init(RemoteAPI remoteAPI, ModuleContext context)
remoteAPI
- The Remote API instance being used in the managercontext
- Module Context of universAALvoid storeRegister(String id, String remote, String v)
id
- The id used to uniquely identify the remote noderemote
- The remote access information for a remote nodev
- The version of client invoking the API. Descriptive only. Can
be null.void removeRegister(String id)
id
- The id used to uniquely identify the remote nodevoid storeSubscriber(String id, String pattern)
id
- The id used to uniquely identify the remote nodepattern
- The serialized ContextEventPattern sent by the remote node in
the requestvoid storeCallee(String id, String profile)
id
- The id used to uniquely identify the remote nodeprofile
- The serialized ServiceProfile sent by the remote node in the
requestvoid restore()
void storeUserPWD(String user, String pwd)
user
- Userpwd
- Passwordboolean checkUserPWD(String user, String pwd)
user
- Userpwd
- Passwordboolean checkUser(String user)
user
- to checkCopyright © 2018 universAAL Consortium. All rights reserved.