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

Public Member Functions

 RemoveSubscriptionController ()
 
String subscribedPeers (Model model)
 
String downloadsByPeer (Model model, @RequestParam(value="peer_name", required=false) String peerName)
 
String removeSelectedDownloads (HttpServletRequest request, Model model)
 
String removeDownloadsStatus (Model model)
 
String removeUploads (Model model)
 
String removeSelectedUploads (HttpServletRequest request, Model model)
 
String removeUploadsStatus (Model model)
 
void setConfigurationManager (IConfigurationManager confManager)
 
void setAuthenticator (Authenticator authenticator)
 
void setUserManager (IUserManager userManager)
 
void setHttpClient (IHttpClientUtil httpClient)
 
void setSubscriptionManager (ISubscriptionManager subscriptionManager)
 
void setDataSourceManager (IDataSourceManager dataSourceManager)
 
void setNodeStatusManager (INodeStatusManager nodeStatusManager)
 
void setTxManager (PlatformTransactionManager txManager)
 
void setProtocolManager (ProtocolManager protocolManager)
 
void setMessageHelper (ModelMessageHelper messageHelper)
 

Protected Member Functions

void initConfiguration ()
 
int cancelDownloads (String peerName, User local, List< Subscription > downloads)
 
int removeDownloads (List< Subscription > downloads)
 

Protected Attributes

List< SubscriptionselectedDownloads
 
List< SubscriptionselectedActiveDownloads
 
List< SubscriptionselectedUploads
 
String peerName
 
User localNode
 

Detailed Description

Allows to remove subscriptions.

Author
Maciej Szewczykowski | macie.nosp@m.j@ba.nosp@m.ltrad.nosp@m..eu
Version
1.2.2
Since
1.0.0

Constructor & Destructor Documentation

◆ RemoveSubscriptionController()

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

Constructor.

Member Function Documentation

◆ cancelDownloads()

int eu.baltrad.dex.net.controller.RemoveSubscriptionController.cancelDownloads ( String peerName,
User local,
List< Subscription > downloads )
inlineprotected

Cancel subscriptions at the peer node.

Parameters
peerNamePeer node name
localLocal node user
downloadsActive subscriptions to cancel
Returns
HTTP status code

◆ downloadsByPeer()

String eu.baltrad.dex.net.controller.RemoveSubscriptionController.downloadsByPeer ( Model model,
@RequestParam(value="peer_name", required=false) String peerName )
inline

Shows list of subscriptions for a given peer node.

Parameters
modelModel
peerNamePeer node name
Returns
Subscriptions by peer view

◆ initConfiguration()

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

Initializes controller with current configuration

◆ removeDownloads()

int eu.baltrad.dex.net.controller.RemoveSubscriptionController.removeDownloads ( List< Subscription > downloads)
inlineprotected

Remove subscriptions from local registry.

Parameters
downloadsSubscriptions to remove
Returns
Operation status code: 0 in case of success, otherwise 1

◆ removeDownloadsStatus()

String eu.baltrad.dex.net.controller.RemoveSubscriptionController.removeDownloadsStatus ( Model model)
inline

Removes selected downloads.

Parameters
modelModel map
Returns
View name

◆ removeSelectedDownloads()

String eu.baltrad.dex.net.controller.RemoveSubscriptionController.removeSelectedDownloads ( HttpServletRequest request,
Model model )
inline

Creates list of downloads selected fro removal.

Parameters
requestHttp servlet request
modelModel map
Returns
View name

◆ removeSelectedUploads()

String eu.baltrad.dex.net.controller.RemoveSubscriptionController.removeSelectedUploads ( HttpServletRequest request,
Model model )
inline

Creates list of uploads selected fro removal.

Parameters
requestHttp servlet request
modelModel map
Returns
View name

◆ removeUploads()

String eu.baltrad.dex.net.controller.RemoveSubscriptionController.removeUploads ( Model model)
inline

Creates list of all available uploads.

Parameters
modelModel map
Returns
View name

◆ removeUploadsStatus()

String eu.baltrad.dex.net.controller.RemoveSubscriptionController.removeUploadsStatus ( Model model)
inline

Removes selected uploads.

Parameters
modelModel map
Returns
View name

◆ setAuthenticator()

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

◆ setConfigurationManager()

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

◆ setDataSourceManager()

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

◆ setHttpClient()

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

◆ setNodeStatusManager()

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

◆ setSubscriptionManager()

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

◆ setTxManager()

void eu.baltrad.dex.net.controller.RemoveSubscriptionController.setTxManager ( PlatformTransactionManager txManager)
inline
Parameters
txManagerthe txManager to set

◆ setUserManager()

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

◆ subscribedPeers()

String eu.baltrad.dex.net.controller.RemoveSubscriptionController.subscribedPeers ( Model model)
inline

Shows lists of subscribed peer nodes.

Parameters
modelModel
Returns
Subscribed peers view

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