Attributes | Name and Description |
---|---|
|
caplin.trading.trademodel.TradeOnBehalfOf(caplin.services.messaging.MessageService oMessageService)
|
Attributes | Name and Description |
---|---|
|
void
addListener(caplin.trading.trademodel.TradeOnBehalfOfListener oTradeOnBehalfOfListener)
Register a listener to be informed of "trade on behalf of" events. |
|
void
clearTradeOnBehalfOfPermissionable(String sNamespace)
Clears any current "trade on behalf of" settings, reverting back to the original user's prices . |
|
void
destroy()
Destructor method. |
|
void
setTradeOnBehalfOfPermissionable(String sNamespace, String sPermissionable)
Initiate a trade on behalf of change, switching your application to display the prices for the specified permissionable item. |
►
caplin.trading.trademodel.TradeOnBehalfOf(caplin.services.messaging.MessageService oMessageService)
caplin.services.messaging.MessageService | oMessageService | Message Service implementation. |
►
void
addListener(caplin.trading.trademodel.TradeOnBehalfOfListener oTradeOnBehalfOfListener)
Register a listener to be informed of "trade on behalf of" events.
caplin.trading.trademodel.TradeOnBehalfOfListener | oTradeOnBehalfOfListener | The listener to be informed of the events. |
►
void
clearTradeOnBehalfOfPermissionable(String sNamespace)
Clears any current "trade on behalf of" settings, reverting back to the original user's prices .
String | sNamespace | The namespace of the permissionable to clear. |
►
void
destroy()
Destructor method.
►
void
setTradeOnBehalfOfPermissionable(String sNamespace, String sPermissionable)
Initiate a trade on behalf of change, switching your application to display the prices for the specified permissionable item.
String | sNamespace | The namespace within the /TOBOCHANGEUSER subject you want to contrib to. The value for this depends on what permissionable object you're changing to, e.g. UserName or Account. |
String | sPermissionable | Identifier for the permissioned item you want to trade on behalf of. Typically this would be a username, however could be anything with permissions (e.g. accounts in some instances). Passing in a null value will clear any current "trade on behalf of" settings, as if the clearTradeOnBehalfOfPermissionable function had been called. |