Controls data source subscription process.
- Author
- Maciej Szewczykowski | macie.nosp@m.j@ba.nosp@m.ltrad.nosp@m..eu
- Version
- 1.1.0
- Since
- 1.1.0
◆ StartSubscriptionController()
eu.baltrad.dex.net.controller.StartSubscriptionController.StartSubscriptionController |
( |
| ) |
|
|
inline |
◆ createDataSourceFilter()
boolean eu.baltrad.dex.net.controller.StartSubscriptionController.createDataSourceFilter |
( |
int | id, |
|
|
DataSource | ds ) |
|
inlineprotected |
Creates a data source filter if possible
- Parameters
-
id | the id to store the filter with |
ds | the data source |
- Returns
- true if filter was created otherwise false
◆ createSubscriptionObject()
Subscription eu.baltrad.dex.net.controller.StartSubscriptionController.createSubscriptionObject |
( |
String | type, |
|
|
String | nodeName, |
|
|
String | dsName, |
|
|
boolean | active, |
|
|
boolean | sync ) |
|
inlineprotected |
- Returns
- the created subscription object
◆ initConfiguration()
void eu.baltrad.dex.net.controller.StartSubscriptionController.initConfiguration |
( |
| ) |
|
|
inlineprotected |
Initializes controller with current configuration
◆ setAuthenticator()
void eu.baltrad.dex.net.controller.StartSubscriptionController.setAuthenticator |
( |
Authenticator | authenticator | ) |
|
|
inline |
- Parameters
-
authenticator | the authenticator to set |
◆ setConfigurationManager()
void eu.baltrad.dex.net.controller.StartSubscriptionController.setConfigurationManager |
( |
IConfigurationManager | confManager | ) |
|
|
inline |
◆ setDataSourceManager()
void eu.baltrad.dex.net.controller.StartSubscriptionController.setDataSourceManager |
( |
IDataSourceManager | dataSourceManager | ) |
|
|
inline |
- Parameters
-
dataSourceManager | the dataSourceManager to set |
◆ setFilterManager()
void eu.baltrad.dex.net.controller.StartSubscriptionController.setFilterManager |
( |
IFilterManager | filterManager | ) |
|
|
inline |
- Parameters
-
filterManager | the IFilterManager to set |
◆ setHttpClient()
void eu.baltrad.dex.net.controller.StartSubscriptionController.setHttpClient |
( |
IHttpClientUtil | httpClient | ) |
|
|
inline |
- Parameters
-
httpClient | the httpClient to set |
◆ setLog()
void eu.baltrad.dex.net.controller.StartSubscriptionController.setLog |
( |
Logger | log | ) |
|
|
inline |
◆ setMessageHelper()
void eu.baltrad.dex.net.controller.StartSubscriptionController.setMessageHelper |
( |
ModelMessageHelper | messageHelper | ) |
|
|
inline |
- Parameters
-
messageHelper | the model message helper |
◆ setNodeStatusManager()
void eu.baltrad.dex.net.controller.StartSubscriptionController.setNodeStatusManager |
( |
INodeStatusManager | nodeStatusManager | ) |
|
|
inline |
- Parameters
-
nodeStatusManager | the nodeStatusManager to set |
◆ setProtocolManager()
void eu.baltrad.dex.net.controller.StartSubscriptionController.setProtocolManager |
( |
ProtocolManager | protocolManager | ) |
|
|
inline |
- Parameters
-
requestManager | the request manager to set |
◆ setSubscriptionManager()
void eu.baltrad.dex.net.controller.StartSubscriptionController.setSubscriptionManager |
( |
ISubscriptionManager | subscriptionManager | ) |
|
|
inline |
- Parameters
-
subscriptionManager | the subscriptionManager to set |
◆ setUserManager()
void eu.baltrad.dex.net.controller.StartSubscriptionController.setUserManager |
( |
IUserManager | userManager | ) |
|
|
inline |
- Parameters
-
userManager | the userManager to set |
◆ startSubscription()
String eu.baltrad.dex.net.controller.StartSubscriptionController.startSubscription |
( |
HttpServletRequest | request, |
|
|
Model | model, |
|
|
@RequestParam(value="peer_name", required=true) String | peerName ) |
|
inline |
userManager Sends subscription request to the server.
- Parameters
-
model | Model |
peerName | Peer node name |
selectedDataSources | Data sources selected for subscription |
- Returns
- View name
◆ storeLocalSubscriptions()
void eu.baltrad.dex.net.controller.StartSubscriptionController.storeLocalSubscriptions |
( |
String | nodeName, |
|
|
Set< DataSource > | dataSources, |
|
|
String | peerName ) throws InternalControllerException |
|
inlineprotected |
Stores local subscriptions.
- Parameters
-
res | Http response |
dataSourceString | Data sources Json string |
peerName | Peer node name |
- Returns
- True if subscriptions are successfully saved
The documentation for this class was generated from the following file:
- src/java/eu/baltrad/dex/net/controller/StartSubscriptionController.java