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

Public Member Functions

 DataSourceListController ()
 
String nodeConnect (Model model)
 
String nodeConnected (Model model, @RequestParam(value="node_select", required=false) String nodeSelect, @RequestParam(value="url_input", required=false) String urlInput, @RequestParam(value="connect", required=false) String connect, @RequestParam(value="send_key", required=false) String sendKey)
 
String selectedDataSources (HttpServletRequest request, Model model, @RequestParam(value="selected_data_sources", required=false) String[] selectedDataSources, @RequestParam(value="peer_name", required=true) String peerName)
 
void setConfigurationManager (IConfigurationManager confManager)
 
void setUserManager (IUserManager userManager)
 
void setUrlValidator (UrlValidatorUtil urlValidator)
 
void setModelMessageHelper (ModelMessageHelper messageHelper)
 
void setAuthenticator (Authenticator authenticator)
 
void setHttpClient (IHttpClientUtil httpClient)
 
void setLog (Logger log)
 
void setProtocolManager (ProtocolManager protocolManager)
 
MessageResourceUtil getMessages ()
 
void setMessages (MessageResourceUtil messages)
 

Protected Member Functions

void initConfiguration ()
 
String extractBaseUrlFromRedirect (String baseURI, String originURI, String redirectURI)
 
String nodeConnected_connect (Model model, String nodeSelect, String urlInput)
 
byte[] createLocalPubKeyZip ()
 

Protected Attributes

Map< String, DataSourcepeerDataSources
 
User localNode
 

Detailed Description

Controls access to data sources available at the peer node for subscription.

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

◆ DataSourceListController()

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

Default constructor.

Member Function Documentation

◆ createLocalPubKeyZip()

byte[] eu.baltrad.dex.net.controller.DataSourceListController.createLocalPubKeyZip ( )
inlineprotected

Packs the local public key

Returns
the public key

◆ initConfiguration()

void eu.baltrad.dex.net.controller.DataSourceListController.initConfiguration ( )
inlineprotected

Initializes controller with current configuration

◆ nodeConnect()

String eu.baltrad.dex.net.controller.DataSourceListController.nodeConnect ( Model model)
inline

Renders initial connect view.

Parameters
modelModel
Returns
View name

◆ nodeConnected()

String eu.baltrad.dex.net.controller.DataSourceListController.nodeConnected ( Model model,
@RequestParam(value="node_select", required=false) String nodeSelect,
@RequestParam(value="url_input", required=false) String urlInput,
@RequestParam(value="connect", required=false) String connect,
@RequestParam(value="send_key", required=false) String sendKey )
inline

Sends data source listing request to the server.

Parameters
modelModel
nodeSelectNode name selected from the drop-down list
urlInputURL typed in the text box
Returns
View name

◆ nodeConnected_connect()

String eu.baltrad.dex.net.controller.DataSourceListController.nodeConnected_connect ( Model model,
String nodeSelect,
String urlInput )
inlineprotected

Handles when connect is pressed

Parameters
modelthe model
nodeSelectthe
urlInput
Returns

◆ selectedDataSources()

String eu.baltrad.dex.net.controller.DataSourceListController.selectedDataSources ( HttpServletRequest request,
Model model,
@RequestParam(value="selected_data_sources", required=false) String[] selectedDataSources,
@RequestParam(value="peer_name", required=true) String peerName )
inline

Allows to select data sources at a peer node.

Parameters
modelModel
selectedDataSourcesData sources selected for subscription
Returns
View name

◆ setAuthenticator()

void eu.baltrad.dex.net.controller.DataSourceListController.setAuthenticator ( Authenticator authenticator)
inline
Parameters
authenticatorthe authenticator to set

◆ setConfigurationManager()

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

◆ setHttpClient()

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

◆ setLog()

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

◆ setProtocolManager()

void eu.baltrad.dex.net.controller.DataSourceListController.setProtocolManager ( ProtocolManager protocolManager)
inline
Parameters
protocolManagerthe protocol manager to use

◆ setUrlValidator()

void eu.baltrad.dex.net.controller.DataSourceListController.setUrlValidator ( UrlValidatorUtil urlValidator)
inline
Parameters
urlValidatorthe urlValidator to set

◆ setUserManager()

void eu.baltrad.dex.net.controller.DataSourceListController.setUserManager ( IUserManager userManager)
inline
Parameters
userManagerthe userManager to set

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