Class UserManager
java.lang.Object
com.caplin.orders.barracuda.extension.UserManager
An interface for querying user attributes.
Examples in this documentation refer to the following user permissions and naming conventions
Term | Meaning |
---|---|
Single Sign On Username (SSO) | The username the user logs into a Motif application with |
Trade On Behalf Of (TOBO) | An abstract username used to link traders and sales traders to their Client usernames |
TOBO Usernames | The TOBO Usernames that are permitted when a user would like to perform an action on behalf of someone else. Typically only provided to Sales Traders. |
Client Username | The TOBO Usernames that are permitted when a user would like to perform an action on behalf of someone else. Typically only provided to Sales Traders. |
-
Constructor Summary
ConstructorDescriptionUserManager
(SalesUserMapping salesUserMapping, SSOUserMapping ssoUserMapping, ClientCodeMapping barracudaClientMapping, ClientTraderMapping barracudaClientTraderMapping) -
Method Summary
Modifier and TypeMethodDescriptiongetClientCodeForSalesSSOUsername
(String ssoUsername, String toboUsername, String account) getClientCodeForSSOUsername
(String ssoUsername, String account) getClientCodeForTOBOUsername
(String toboUsername, String account) getClientTraderForSalesSSOUsername
(String ssoUsername, String toboUsername) getClientTraderForSSOUsername
(String ssoUsername) getSalesSSOUsernameForTOBOUsername
(String toboUsername) getSSOUsername
(String toboUsername) getTOBOUsername
(String ssoUsername) getTOBOUsernames
(String ssoUsername) boolean
isSalesTrader
(String ssoUsername)
-
Constructor Details
-
UserManager
@Inject public UserManager(SalesUserMapping salesUserMapping, SSOUserMapping ssoUserMapping, ClientCodeMapping barracudaClientMapping, ClientTraderMapping barracudaClientTraderMapping)
-
-
Method Details
-
getSalesSSOUsernameForTOBOUsername
@Nullable public Set<String> getSalesSSOUsernameForTOBOUsername(@Nonnull String toboUsername) throws UserManagerException - Throws:
UserManagerException
-
getTOBOUsernames
@Nullable public Set<String> getTOBOUsernames(@Nonnull String ssoUsername) throws UserManagerException - Throws:
UserManagerException
-
getSSOUsername
- Throws:
UserManagerException
-
getTOBOUsername
- Throws:
UserManagerException
-
getClientCodeForTOBOUsername
-
getClientCodeForSSOUsername
@Nullable public String getClientCodeForSSOUsername(@Nonnull String ssoUsername, @Nonnull String account) throws UserManagerException - Throws:
UserManagerException
-
getClientCodeForSalesSSOUsername
@Nullable public String getClientCodeForSalesSSOUsername(@Nonnull String ssoUsername, @Nonnull String toboUsername, @Nonnull String account) throws UserManagerException - Throws:
UserManagerException
-
isSalesTrader
-
getClientTraderForSSOUsername
@Nullable public String getClientTraderForSSOUsername(@Nonnull String ssoUsername) throws UserManagerException - Throws:
UserManagerException
-
getClientTraderForSalesSSOUsername
@Nullable public String getClientTraderForSalesSSOUsername(@Nonnull String ssoUsername, @Nonnull String toboUsername) throws UserManagerException - Throws:
UserManagerException
-