![]() |
BaltradDex
BALTRAD Data Exchange System
|
Public Member Functions | |
| UpdateSubscriptionController () | |
| String | subscribedPeers (Model model) |
| String | subscriptionByPeer (Model model, @RequestParam(value="peer_name", required=true) String peerName) |
| String | selectedSubscription (Model model, @RequestParam(value="peer_name", required=true) String peerName, @RequestParam(value="current_subscription_ids", required=true) String[] currentSubscriptionIds, @RequestParam(value="selected_subscription_ids", required=false) String[] selectedSubscriptionIds) |
| String | updateSubscription (Model model, @RequestParam(value="peer_name", required=true) String peerName, @RequestParam(value="active_subscription_ids", required=false) String[] activeSubscriptionIds, @RequestParam(value="inactive_subscription_ids", required=false) String[] inactiveSubscriptionIds) |
| void | setConfigurationManager (IConfigurationManager confManager) |
| void | setSubscriptionManager (ISubscriptionManager subscriptionManager) |
| void | setNodeStatusManager (INodeStatusManager nodeStatusManager) |
| void | setUserManager (IUserManager userManager) |
| void | setHttpClient (IHttpClientUtil httpClient) |
| void | setLog (Logger log) |
| void | setAuthenticator (Authenticator authenticator) |
| void | setMessageHelper (ModelMessageHelper messageHelper) |
| void | setProtocolManager (ProtocolManager protocolManager) |
Protected Member Functions | |
| void | initConfiguration () |
| List< Subscription > | createSubscriptionRequest (String[] activeSubscriptionIds, String[] inactiveSubscriptionIds) |
| void | storeLocalSubscriptions (String nodeName, List< Subscription > subscriptions) throws InternalControllerException |
Protected Attributes | |
| User | localNode |
Controls subscription process.
|
inline |
Default constructor.
|
inlineprotected |
Creates subscription request list.
| activeSubscriptionIds | Active subscription ids |
| inactiveSubscriptionIds | Inactive subscription ids |
|
inlineprotected |
Initializes controller with current configuration
|
inline |
Shows list of selected subscriptions. The list is posted on the remote node and subscription status is modified accordingly.
| model | Model |
| peerName | Peer node name |
| currentSubscriptionIds | IDs of current subscriptions |
| selectedSubscriptionIds | IDs of selected subscriptions |
|
inline |
| authenticator | the authenticator to set |
|
inline |
| configurationManager |
|
inline |
| httpClient | the httpClient to set |
|
inline |
| log | the log to set |
|
inline |
| messageHelper | the message helper |
|
inline |
| nodeStatusManager | the nodeStatusManager to set |
|
inline |
| protocolManager | the protocol manager |
|
inline |
| subscriptionManager | the subscriptionManager to set |
|
inline |
| userManager | the userManager to set |
|
inlineprotected |
Stores local subscriptions.
| res | Http response |
| subscriptionString | Subscriptions Json string |
|
inline |
Shows lists of subscribed peer nodes.
| model | Model |
|
inline |
Shows list of subscriptions for a given peer node.
| model | Model |
| peerName | Peer node name |
|
inline |
Post subscription request on the peer node.
| model | Model |
| peerName | Peer node name |
| activeSubscriptionIds | List contains IDs of active subscriptions |
| inactiveSubscriptionIds | List contains IDs of inactive subscriptions |