|
||||||||||
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.ManagedObject com.tibco.bpm.web.client.model.pagebus.hub.InlineHubClient
public class InlineHubClient
Wraps the TIBCO PageBus JavaScript InlineHubClient providing a JSNI interface enabling the use of Managed Hub events.
©2011 Cloud Software Group, Inc.
Constructor Summary | |
---|---|
InlineHubClient(InlineContainer inlineContainer)
Creates an InlineHubClient with defaults values for optional parameters. |
|
InlineHubClient(InlineContainer inlineContainer,
HubPolicy hubPolicy,
OnSecurityAlertCallback onSecurityAlertCallback,
OnLogCallback onLogCallback)
Creates an InlineHubClient with the given optional parameters. |
Method Summary | |
---|---|
void |
connect(OnCompleteCallback onCompleteCallback)
Requests a connection to the ManagedHub, via the Container associated with this HubClient. |
void |
disconnect(OnCompleteCallback onCompleteCallback)
Disconnect from the ManagedHub Disconnect immediately: 1. |
java.lang.String |
getClientId()
Returns the client ID of this HubClient |
java.lang.Object |
getParameters()
|
java.lang.String |
getPartnerOrigin()
If DISCONNECTED: Returns null If CONNECTED: Returns the origin associated with the window containing the Container associated with this HubClient instance. |
java.lang.Object |
getScope()
|
SubscriberData |
getSubscriberData(Subscription subscription)
|
java.lang.Object |
getSubscriberScope()
|
boolean |
isConnected()
|
void |
publish(PageBusMessage message)
|
void |
publish(java.lang.String topic,
PageBusMessage message)
|
PageBusMessage[] |
query(java.lang.String topic)
|
void |
store(java.lang.String topic,
PageBusMessage message)
|
Subscription |
subscribe(java.lang.String topic,
OnDataCallback onDataCallback,
OnSubscribeCompleteCallback onSubscribeCompleteCallback,
SubscriberData subscriberData)
|
void |
unsubscribe(Subscription subscription,
OnSubscribeCompleteCallback onSubscribeCompleteCallback)
|
Methods inherited from class com.tibco.bpm.web.client.model.pagebus.hub.ManagedObject |
---|
addObject, getManagedObjectForNative |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InlineHubClient(InlineContainer inlineContainer)
BadParametersException
public InlineHubClient(InlineContainer inlineContainer, HubPolicy hubPolicy, OnSecurityAlertCallback onSecurityAlertCallback, OnLogCallback onLogCallback)
hubPolicy
- The HubPolicy instance used for security control of this InlineHubClient.onSecurityAlertCallback
- Invoked when a security alert is raised.onLogCallback
- Receives build-in logging from the PageBus.
BadParametersException
Method Detail |
---|
public void connect(OnCompleteCallback onCompleteCallback)
HubClient
connect
in interface HubClient
onCompleteCallback
- Callback function to call when this operation completes.public java.lang.String getPartnerOrigin()
HubClient
getPartnerOrigin
in interface HubClient
public java.lang.String getClientId()
HubClient
getClientId
in interface HubClient
public void publish(PageBusMessage message)
publish
in interface Hub
public void publish(java.lang.String topic, PageBusMessage message)
publish
in interface Hub
public Subscription subscribe(java.lang.String topic, OnDataCallback onDataCallback, OnSubscribeCompleteCallback onSubscribeCompleteCallback, SubscriberData subscriberData)
subscribe
in interface Hub
public void disconnect(OnCompleteCallback onCompleteCallback)
HubClient
disconnect
in interface HubClient
onCompleteCallback
- Callback function to call when this operation completes.public 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
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |