![]() |
BaltradDex
BALTRAD Data Exchange System
|
Public Member Functions | |
| StartSubscriptionController () | |
| String | startSubscription (HttpServletRequest request, Model model, @RequestParam(value="peer_name", required=true) String peerName) |
| void | setConfigurationManager (IConfigurationManager confManager) |
| void | setDataSourceManager (IDataSourceManager dataSourceManager) |
| void | setSubscriptionManager (ISubscriptionManager subscriptionManager) |
| void | setNodeStatusManager (INodeStatusManager nodeStatusManager) |
| void | setFilterManager (IFilterManager filterManager) |
| void | setUserManager (IUserManager userManager) |
| void | setHttpClient (IHttpClientUtil httpClient) |
| void | setAuthenticator (Authenticator authenticator) |
| void | setLog (Logger log) |
| void | setProtocolManager (ProtocolManager protocolManager) |
| void | setMessageHelper (ModelMessageHelper messageHelper) |
Protected Member Functions | |
| void | initConfiguration () |
| void | storeLocalSubscriptions (String nodeName, Set< DataSource > dataSources, String peerName) throws InternalControllerException |
| boolean | createDataSourceFilter (int id, DataSource ds) |
| Subscription | createSubscriptionObject (String type, String nodeName, String dsName, boolean active, boolean sync) |
Protected Attributes | |
| User | localNode |
Controls data source subscription process.
|
inline |
Default constructor.
|
inlineprotected |
Creates a data source filter if possible
| id | the id to store the filter with |
| ds | the data source |
|
inlineprotected |
|
inlineprotected |
Initializes controller with current configuration
|
inline |
| authenticator | the authenticator to set |
|
inline |
| configurationManager |
|
inline |
| dataSourceManager | the dataSourceManager to set |
|
inline |
| filterManager | the IFilterManager to set |
|
inline |
| httpClient | the httpClient to set |
|
inline |
| log | the log to set |
|
inline |
| messageHelper | the model message helper |
|
inline |
| nodeStatusManager | the nodeStatusManager to set |
|
inline |
| requestManager | the request manager to set |
|
inline |
| subscriptionManager | the subscriptionManager to set |
|
inline |
| userManager | the userManager to set |
|
inline |
userManager Sends subscription request to the server.
| model | Model |
| peerName | Peer node name |
| selectedDataSources | Data sources selected for subscription |
|
inlineprotected |
Stores local subscriptions.
| res | Http response |
| dataSourceString | Data sources Json string |
| peerName | Peer node name |