|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.tibco.bpm.web.client.model.pagebus.hub.ManagedHub
public class ManagedHub
The ManagedHub class provides a GWT JSNI interface to the TIBCO PageBus(TM) version 2.0.0 manager-side APIs to the Managed Hub.
The ManagedHub allows an application to control communication between both trusted and untrusted components using Inline and Iframe containers and Hub clients configured to run in these containers. ©2011 Cloud Software Group, Inc.
ManagedHubFrame
,
IframeContainer
,
IframeHubClient
,
InlineContainer
,
InlineHubClient
Constructor Summary | |
---|---|
ManagedHub()
Creates a ManagedHub with no HubPolicy and a default noop callback is used for optional callbacks. |
|
ManagedHub(HubPolicy hubPolicy)
Creates a ManagedHub with the provided HubPolicy and a default noop callback is used for all optional callbacks. |
|
ManagedHub(HubPolicy hubPolicy,
OnPublishCallback onPublishCallback,
OnSubscribeCallback onSubscribeCallback,
OnUnsubscribeCallback onUnsubscribeCallback,
OnLogCallback onLogCallback)
Creates a ManagedHub with the provided HubPolicy and the given optional callbacks. |
Method Summary | |
---|---|
void |
disconnect()
Destroy this ManagedHub 1. |
java.lang.Object |
getContainer(java.lang.String containerId)
Get a container belonging to this ManagedHub by its clientID, or null if this ManagedHub has no such container This function can be called even if the ManagedHub is not in a CONNECTED state. |
com.google.gwt.core.client.JavaScriptObject |
getManagedHub()
|
java.lang.Object |
getParameters()
|
java.lang.Object |
getScope()
|
SubscriberData |
getSubscriberData(Subscription subscription)
|
java.lang.Object |
getSubscriberScope()
|
boolean |
isConnected()
|
java.lang.Object |
listContainers()
Returns an array listing all containers belonging to this ManagedHub. |
void |
publish(PageBusMessage message)
|
void |
publish(java.lang.String topic,
PageBusMessage message)
|
protected void |
publishNative(java.lang.String topic,
com.google.gwt.core.client.JavaScriptObject message)
|
PageBusMessage[] |
query(java.lang.String topic)
|
void |
removeContainer(Container container)
Remove a container from this ManagedHub immediately. |
void |
store(java.lang.String topic,
PageBusMessage message)
|
Subscription |
subscribe(java.lang.String topic,
OnDataCallback onDataCallback,
OnSubscribeCompleteCallback onSubscribeCompleteCallback,
SubscriberData subscriberData)
|
protected Subscription |
subscribeNative(java.lang.String topic,
com.google.gwt.core.client.JavaScriptObject subscriberCallback,
com.google.gwt.core.client.JavaScriptObject onCompleteCallback,
com.google.gwt.core.client.JavaScriptObject subscriberData)
|
void |
unsubscribe(Subscription subscription,
OnSubscribeCompleteCallback onSubscribeCompleteCallback)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ManagedHub()
BadParametersException
public ManagedHub(HubPolicy hubPolicy)
hubPolicy
- The HubPolicy instance used for security control of this ManagedHub.
BadParametersException
public ManagedHub(HubPolicy hubPolicy, OnPublishCallback onPublishCallback, OnSubscribeCallback onSubscribeCallback, OnUnsubscribeCallback onUnsubscribeCallback, OnLogCallback onLogCallback)
hubPolicy
- The HubPolicy instance used for security control of this ManagedHub.onPublishCallback
- Callback function that is invoked whenever a
data value published by a Container is about
to be delivered to some (possibly the same) Container.
This callback function implements a security policy;
it returns true if the delivery of the data is
permitted and false if permission is denied.onSubscribeCallback
- Called whenever a Container tries to subscribe
on behalf of its client.
This callback function implements a security policy;
it returns true if the subscription is permitted
and false if permission is denied.onUnsubscribeCallback
- Called whenever a Container unsubscribes on
behalf of its client.
Unlike the other callbacks, onUnsubscribe is
intended only for informative purposes, and is
not used to implement a security policy.onLogCallback
- Receives build-in logging from the PageBus.
BadParametersException
Method Detail |
---|
public com.google.gwt.core.client.JavaScriptObject getManagedHub()
public Subscription subscribe(java.lang.String topic, OnDataCallback onDataCallback, OnSubscribeCompleteCallback onSubscribeCompleteCallback, SubscriberData subscriberData)
subscribe
in interface Hub
protected Subscription subscribeNative(java.lang.String topic, com.google.gwt.core.client.JavaScriptObject subscriberCallback, com.google.gwt.core.client.JavaScriptObject onCompleteCallback, com.google.gwt.core.client.JavaScriptObject subscriberData)
public void publish(PageBusMessage message)
publish
in interface Hub
public void publish(java.lang.String topic, PageBusMessage message)
publish
in interface Hub
protected void publishNative(java.lang.String topic, com.google.gwt.core.client.JavaScriptObject message)
public PageBusMessage[] query(java.lang.String topic)
EventCache.query(JavaScriptObject, String)
public void store(java.lang.String topic, PageBusMessage message)
EventCache.store(JavaScriptObject, String, PageBusMessage)
public void disconnect()
public java.lang.Object getContainer(java.lang.String containerId)
containerId
- The ID associated with the containerpublic java.lang.Object listContainers()
public void removeContainer(Container container)
container
- A Container (wraps the native type: {OpenAjax.hub.Container}) to be removed from this ManagedHub.
NoContainerException
- if no such container is foundpublic void unsubscribe(Subscription subscription, OnSubscribeCompleteCallback onSubscribeCompleteCallback)
unsubscribe
in interface Hub
public boolean isConnected()
isConnected
in interface Hub
public java.lang.Object getScope()
getScope
in interface Hub
public SubscriberData getSubscriberData(Subscription subscription)
getSubscriberData
in interface Hub
public java.lang.Object getSubscriberScope()
getSubscriberScope
in interface Hub
public java.lang.Object getParameters()
getParameters
in interface Hub
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |