|
| 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) |
|
Controls subscription process.
- Author
- Maciej Szewczykowski | macie.nosp@m.j@ba.nosp@m.ltrad.nosp@m..eu
- Version
- 1.1.0
- Since
- 1.1.0
◆ UpdateSubscriptionController()
eu.baltrad.dex.net.controller.UpdateSubscriptionController.UpdateSubscriptionController |
( |
| ) |
|
|
inline |
◆ createSubscriptionRequest()
List< Subscription > eu.baltrad.dex.net.controller.UpdateSubscriptionController.createSubscriptionRequest |
( |
String[] | activeSubscriptionIds, |
|
|
String[] | inactiveSubscriptionIds ) |
|
inlineprotected |
Creates subscription request list.
- Parameters
-
activeSubscriptionIds | Active subscription ids |
inactiveSubscriptionIds | Inactive subscription ids |
- Returns
- List of requested subscriptions
◆ initConfiguration()
void eu.baltrad.dex.net.controller.UpdateSubscriptionController.initConfiguration |
( |
| ) |
|
|
inlineprotected |
Initializes controller with current configuration
◆ selectedSubscription()
String eu.baltrad.dex.net.controller.UpdateSubscriptionController.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 ) |
|
inline |
Shows list of selected subscriptions. The list is posted on the remote node and subscription status is modified accordingly.
- Parameters
-
model | Model |
peerName | Peer node name |
currentSubscriptionIds | IDs of current subscriptions |
selectedSubscriptionIds | IDs of selected subscriptions
|
- Returns
- Selected subscriptions view
◆ setAuthenticator()
void eu.baltrad.dex.net.controller.UpdateSubscriptionController.setAuthenticator |
( |
Authenticator | authenticator | ) |
|
|
inline |
- Parameters
-
authenticator | the authenticator to set |
◆ setConfigurationManager()
void eu.baltrad.dex.net.controller.UpdateSubscriptionController.setConfigurationManager |
( |
IConfigurationManager | confManager | ) |
|
|
inline |
◆ setHttpClient()
void eu.baltrad.dex.net.controller.UpdateSubscriptionController.setHttpClient |
( |
IHttpClientUtil | httpClient | ) |
|
|
inline |
- Parameters
-
httpClient | the httpClient to set |
◆ setLog()
void eu.baltrad.dex.net.controller.UpdateSubscriptionController.setLog |
( |
Logger | log | ) |
|
|
inline |
◆ setMessageHelper()
void eu.baltrad.dex.net.controller.UpdateSubscriptionController.setMessageHelper |
( |
ModelMessageHelper | messageHelper | ) |
|
|
inline |
- Parameters
-
messageHelper | the message helper |
◆ setNodeStatusManager()
void eu.baltrad.dex.net.controller.UpdateSubscriptionController.setNodeStatusManager |
( |
INodeStatusManager | nodeStatusManager | ) |
|
|
inline |
- Parameters
-
nodeStatusManager | the nodeStatusManager to set |
◆ setProtocolManager()
void eu.baltrad.dex.net.controller.UpdateSubscriptionController.setProtocolManager |
( |
ProtocolManager | protocolManager | ) |
|
|
inline |
- Parameters
-
protocolManager | the protocol manager |
◆ setSubscriptionManager()
void eu.baltrad.dex.net.controller.UpdateSubscriptionController.setSubscriptionManager |
( |
ISubscriptionManager | subscriptionManager | ) |
|
|
inline |
- Parameters
-
subscriptionManager | the subscriptionManager to set |
◆ setUserManager()
void eu.baltrad.dex.net.controller.UpdateSubscriptionController.setUserManager |
( |
IUserManager | userManager | ) |
|
|
inline |
- Parameters
-
userManager | the userManager to set |
◆ storeLocalSubscriptions()
Stores local subscriptions.
- Parameters
-
res | Http response |
subscriptionString | Subscriptions Json string |
- Returns
- True if subscriptions are successfully saved
◆ subscribedPeers()
String eu.baltrad.dex.net.controller.UpdateSubscriptionController.subscribedPeers |
( |
Model | model | ) |
|
|
inline |
Shows lists of subscribed peer nodes.
- Parameters
-
- Returns
- Subscribed peers view
◆ subscriptionByPeer()
String eu.baltrad.dex.net.controller.UpdateSubscriptionController.subscriptionByPeer |
( |
Model | model, |
|
|
@RequestParam(value="peer_name", required=true) String | peerName ) |
|
inline |
Shows list of subscriptions for a given peer node.
- Parameters
-
model | Model |
peerName | Peer node name |
- Returns
- Subscriptions by peer view
◆ updateSubscription()
String eu.baltrad.dex.net.controller.UpdateSubscriptionController.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 ) |
|
inline |
Post subscription request on the peer node.
- Parameters
-
model | Model |
peerName | Peer node name |
activeSubscriptionIds | List contains IDs of active subscriptions |
inactiveSubscriptionIds | List contains IDs of inactive subscriptions |
- Returns
- Subscription status view
The documentation for this class was generated from the following file:
- src/java/eu/baltrad/dex/net/controller/UpdateSubscriptionController.java