BaltradDex
BALTRAD Data Exchange System
Loading...
Searching...
No Matches
eu.baltrad.dex.net.controller.StartSubscriptionController Class Reference

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
 

Detailed Description

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

Constructor & Destructor Documentation

◆ StartSubscriptionController()

eu.baltrad.dex.net.controller.StartSubscriptionController.StartSubscriptionController ( )
inline

Default constructor.

Member Function Documentation

◆ createDataSourceFilter()

boolean eu.baltrad.dex.net.controller.StartSubscriptionController.createDataSourceFilter ( int id,
DataSource ds )
inlineprotected

Creates a data source filter if possible

Parameters
idthe id to store the filter with
dsthe 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
authenticatorthe authenticator to set

◆ setConfigurationManager()

void eu.baltrad.dex.net.controller.StartSubscriptionController.setConfigurationManager ( IConfigurationManager confManager)
inline
Parameters
configurationManager

◆ setDataSourceManager()

void eu.baltrad.dex.net.controller.StartSubscriptionController.setDataSourceManager ( IDataSourceManager dataSourceManager)
inline
Parameters
dataSourceManagerthe dataSourceManager to set

◆ setFilterManager()

void eu.baltrad.dex.net.controller.StartSubscriptionController.setFilterManager ( IFilterManager filterManager)
inline
Parameters
filterManagerthe IFilterManager to set

◆ setHttpClient()

void eu.baltrad.dex.net.controller.StartSubscriptionController.setHttpClient ( IHttpClientUtil httpClient)
inline
Parameters
httpClientthe httpClient to set

◆ setLog()

void eu.baltrad.dex.net.controller.StartSubscriptionController.setLog ( Logger log)
inline
Parameters
logthe log to set

◆ setMessageHelper()

void eu.baltrad.dex.net.controller.StartSubscriptionController.setMessageHelper ( ModelMessageHelper messageHelper)
inline
Parameters
messageHelperthe model message helper

◆ setNodeStatusManager()

void eu.baltrad.dex.net.controller.StartSubscriptionController.setNodeStatusManager ( INodeStatusManager nodeStatusManager)
inline
Parameters
nodeStatusManagerthe nodeStatusManager to set

◆ setProtocolManager()

void eu.baltrad.dex.net.controller.StartSubscriptionController.setProtocolManager ( ProtocolManager protocolManager)
inline
Parameters
requestManagerthe request manager to set

◆ setSubscriptionManager()

void eu.baltrad.dex.net.controller.StartSubscriptionController.setSubscriptionManager ( ISubscriptionManager subscriptionManager)
inline
Parameters
subscriptionManagerthe subscriptionManager to set

◆ setUserManager()

void eu.baltrad.dex.net.controller.StartSubscriptionController.setUserManager ( IUserManager userManager)
inline
Parameters
userManagerthe 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
modelModel
peerNamePeer node name
selectedDataSourcesData 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
resHttp response
dataSourceStringData sources Json string
peerNamePeer node name
Returns
True if subscriptions are successfully saved

The documentation for this class was generated from the following file: