public class DirectorUserManager extends java.lang.Object implements UserManager, com.caplin.datasource.subscription.SubscriptionListener
UserManager
which integrates with Caplin Director.UserManager.Context
Constructor and Description |
---|
DirectorUserManager(com.caplin.datasource.DataSource dataSource) |
Modifier and Type | Method and Description |
---|---|
void |
containerUpdated(com.caplin.datasource.subscription.Subscription subscription,
com.caplin.datasource.Peer peer,
com.caplin.datasource.messaging.container.ContainerMessage message) |
void |
genericMessageUpdated(com.caplin.datasource.subscription.Subscription subscription,
com.caplin.datasource.Peer peer,
com.caplin.datasource.messaging.record.GenericMessage message) |
java.lang.String |
getRetClientForSsoUsername(java.lang.String assetClass,
java.lang.String ssoUsername)
Given an asset class and a Single Sign On (SSO) user name, returns the RET client name.
|
java.lang.String |
getRetClientForToboUsername(java.lang.String assetClass,
java.lang.String toboUsername)
Given an asset class and a Trade On Behalf Of (TOBO) user name, returns the RET client name.
|
java.util.Set<java.lang.String> |
getRetClientsTradedBySsoUser(java.lang.String ssoUsername)
Given a Single Sign On (SSO) user name, returns the set of RET clients which can be
traded on behalf of.
|
java.util.Set<java.lang.String> |
getRetClientsTradedByToboUser(java.lang.String toboUsername)
Given a Trade On Behalf Of (TOBO) user name, returns the set of RET clients which can be
traded on behalf of.
|
java.lang.String |
getSsoUsername(java.lang.String toboUsername)
Given a Trade On Behalf Of (TOBO) user name, returns a Single Sign On (SSO) user name.
|
java.util.Set<java.lang.String> |
getSsoUserNamesWhoCanTobo(java.lang.String retClientName)
Given a RET client name, returns the set of all Single Sign On (SSO) users with permission to Trade On Behalf Of
(TOBO) them.
|
java.lang.String |
getToboUsername(java.lang.String retClientName)
Given a RET client name, returns the Trade On Behalf Of (TOBO) user name.
|
java.util.Set<java.lang.String> |
getToboUsers(java.lang.String ssoUsername)
Given a Single Sign On (SSO) user name, returns the set of related Trade On Behalf Of (TOBO) users.
|
void |
initialise(UserManager.Context context)
This notifies the
UserManager that it is about to be loaded. |
void |
newsUpdated(com.caplin.datasource.subscription.Subscription subscription,
com.caplin.datasource.Peer peer,
com.caplin.datasource.messaging.news.NewsMessage message) |
void |
pageUpdated(com.caplin.datasource.subscription.Subscription subscription,
com.caplin.datasource.Peer peer,
com.caplin.datasource.messaging.page.PageMessage message) |
void |
permissionUpdated(com.caplin.datasource.subscription.Subscription subscription,
com.caplin.datasource.Peer peer,
com.caplin.datasource.messaging.permission.PermissionMessage message) |
void |
recordType2Updated(com.caplin.datasource.subscription.Subscription subscription,
com.caplin.datasource.Peer peer,
com.caplin.datasource.messaging.record.RecordType2Message message) |
void |
recordType3Updated(com.caplin.datasource.subscription.Subscription subscription,
com.caplin.datasource.Peer peer,
com.caplin.datasource.messaging.record.RecordType3Message message) |
void |
recordUpdated(com.caplin.datasource.subscription.Subscription subscription,
com.caplin.datasource.Peer peer,
com.caplin.datasource.messaging.record.RecordMessage message) |
void |
storyUpdated(com.caplin.datasource.subscription.Subscription subscription,
com.caplin.datasource.Peer peer,
com.caplin.datasource.messaging.story.StoryMessage message) |
void |
subjectErrorReceived(com.caplin.datasource.subscription.Subscription subscription,
com.caplin.datasource.Peer peer,
com.caplin.datasource.SubjectErrorEvent subjectErrorEvent) |
void |
subjectStatusReceived(com.caplin.datasource.subscription.Subscription subscription,
com.caplin.datasource.Peer peer,
com.caplin.datasource.SubjectStatusEvent subjectStatusEvent) |
public DirectorUserManager(com.caplin.datasource.DataSource dataSource)
public void initialise(UserManager.Context context) throws UserManagerException
UserManager
This notifies the UserManager
that it is about to be loaded. This method will be
called by the system once.
You should use this method to perform any initialisation required before the
UserManager
is loaded by the system.
initialise
in interface UserManager
UserManagerException
- if for any reason initialisation fails.public java.lang.String getRetClientForToboUsername(java.lang.String assetClass, java.lang.String toboUsername) throws UserManagerException
UserManager
Asset Class | TOBO User Name | Returns |
---|---|---|
FX | client1 | client1.ret.client.fx |
Commodities | client1 | client1.ret.client.pm |
getRetClientForToboUsername
in interface UserManager
UserManagerException
- if no user is found.public java.lang.String getRetClientForSsoUsername(java.lang.String assetClass, java.lang.String ssoUsername) throws UserManagerException
UserManager
Asset Class | SSOUser | Returns |
---|---|---|
FX | user1@caplin.com | user1.ret.client.fx |
Commodities | user1@caplin.com | user1.ret.client.pm |
getRetClientForSsoUsername
in interface UserManager
UserManagerException
- if no user is found.public java.lang.String getSsoUsername(java.lang.String toboUsername) throws UserManagerException
UserManager
TOBO User Name | Returns |
---|---|
client1 | user1@caplin.com |
client2 | user2@caplin.com |
getSsoUsername
in interface UserManager
UserManagerException
- if no user is found.public java.lang.String getToboUsername(java.lang.String retClientName) throws UserManagerException
UserManager
RET Client Name | Returns |
---|---|
michael.ret.client.fx | michael |
michael.ret.client.pm | michael |
terry.ret.client.pm | terry |
getToboUsername
in interface UserManager
UserManagerException
- if no client is found.public java.util.Set<java.lang.String> getToboUsers(java.lang.String ssoUsername) throws UserManagerException
UserManager
SSO User Name | Returns |
---|---|
salestrader1@caplin.com | (salestrader, graham, john, terry, eric, michael) |
user1@caplin.com | (client1) |
getToboUsers
in interface UserManager
UserManagerException
- if no user is found.public java.util.Set<java.lang.String> getSsoUserNamesWhoCanTobo(java.lang.String retClientName) throws UserManagerException
UserManager
RET Client Name | Returns |
---|---|
terry.ret.client.fx | (salestrader1@caplin.com) |
client1.ret.client.fx | (user1@caplin.com) |
getSsoUserNamesWhoCanTobo
in interface UserManager
UserManagerException
- if no client is found.public java.util.Set<java.lang.String> getRetClientsTradedBySsoUser(java.lang.String ssoUsername) throws UserManagerException
UserManager
SSO User Name | Returns |
---|---|
salestrader1@caplin.com | (rates.ret.client.fx, graham.ret.client.fx, john.ret.client.fx, terry.ret.client.fx, eric.ret.client.fx, michael.ret.client.fx) |
user1@caplin.com | (client1.ret.client.fx, client1.ret.client.pm) |
getRetClientsTradedBySsoUser
in interface UserManager
UserManagerException
- if no user is found.public java.util.Set<java.lang.String> getRetClientsTradedByToboUser(java.lang.String toboUsername) throws UserManagerException
UserManager
TOBO User Name | Returns |
---|---|
graham | (graham.ret.client.fx) |
user1 | (client1.ret.client.fx, client1.ret.client.pm) |
getRetClientsTradedByToboUser
in interface UserManager
UserManagerException
- if no user is found.public void containerUpdated(com.caplin.datasource.subscription.Subscription subscription, com.caplin.datasource.Peer peer, com.caplin.datasource.messaging.container.ContainerMessage message)
containerUpdated
in interface com.caplin.datasource.subscription.SubscriptionListener
public void recordUpdated(com.caplin.datasource.subscription.Subscription subscription, com.caplin.datasource.Peer peer, com.caplin.datasource.messaging.record.RecordMessage message)
recordUpdated
in interface com.caplin.datasource.subscription.SubscriptionListener
public void recordType2Updated(com.caplin.datasource.subscription.Subscription subscription, com.caplin.datasource.Peer peer, com.caplin.datasource.messaging.record.RecordType2Message message)
recordType2Updated
in interface com.caplin.datasource.subscription.SubscriptionListener
public void recordType3Updated(com.caplin.datasource.subscription.Subscription subscription, com.caplin.datasource.Peer peer, com.caplin.datasource.messaging.record.RecordType3Message message)
recordType3Updated
in interface com.caplin.datasource.subscription.SubscriptionListener
public void genericMessageUpdated(com.caplin.datasource.subscription.Subscription subscription, com.caplin.datasource.Peer peer, com.caplin.datasource.messaging.record.GenericMessage message)
genericMessageUpdated
in interface com.caplin.datasource.subscription.SubscriptionListener
public void permissionUpdated(com.caplin.datasource.subscription.Subscription subscription, com.caplin.datasource.Peer peer, com.caplin.datasource.messaging.permission.PermissionMessage message)
permissionUpdated
in interface com.caplin.datasource.subscription.SubscriptionListener
public void newsUpdated(com.caplin.datasource.subscription.Subscription subscription, com.caplin.datasource.Peer peer, com.caplin.datasource.messaging.news.NewsMessage message)
newsUpdated
in interface com.caplin.datasource.subscription.SubscriptionListener
public void storyUpdated(com.caplin.datasource.subscription.Subscription subscription, com.caplin.datasource.Peer peer, com.caplin.datasource.messaging.story.StoryMessage message)
storyUpdated
in interface com.caplin.datasource.subscription.SubscriptionListener
public void pageUpdated(com.caplin.datasource.subscription.Subscription subscription, com.caplin.datasource.Peer peer, com.caplin.datasource.messaging.page.PageMessage message)
pageUpdated
in interface com.caplin.datasource.subscription.SubscriptionListener
public void subjectErrorReceived(com.caplin.datasource.subscription.Subscription subscription, com.caplin.datasource.Peer peer, com.caplin.datasource.SubjectErrorEvent subjectErrorEvent)
subjectErrorReceived
in interface com.caplin.datasource.subscription.SubscriptionListener
public void subjectStatusReceived(com.caplin.datasource.subscription.Subscription subscription, com.caplin.datasource.Peer peer, com.caplin.datasource.SubjectStatusEvent subjectStatusEvent)
subjectStatusReceived
in interface com.caplin.datasource.subscription.SubscriptionListener
Copyright © 2019 Caplin Systems.