Class ImmutableUserMappingCache
- java.lang.Object
-
- com.caplin.motif.fx.ret.common.extension.usermanager.ImmutableUserMappingCache
-
public class ImmutableUserMappingCache extends java.lang.Object
Stores user manager data. - (longlife) needs to be accessed throughout the application run. - (cannotfail) does not have any terminal failure states. - (concurrent) will be accessed concurrently (immutable, builder).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ImmutableUserMappingCache.Builder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.lang.String>
getAllUserGroups()
java.lang.String
getRetClientForSsoUsername(java.lang.String assetClass, java.lang.String ssoUsername)
java.lang.String
getRetClientForToboUsername(java.lang.String assetClass, java.lang.String toboUserName)
java.util.Set<java.lang.String>
getRetClientsTradedBySsoUser(java.lang.String ssoUserName)
java.util.Set<java.lang.String>
getRetClientsTradedByToboUser(java.lang.String toboUsername)
java.lang.String
getSsoPassword(java.lang.String ssoUsername)
java.lang.String
getSsoUsername(java.lang.String toboUsername)
java.util.Set<java.lang.String>
getSsoUsernames()
java.util.Set<java.lang.String>
getSsoUserNamesWhoCanTobo(java.lang.String retClientName)
java.util.Set<java.lang.String>
getSsoUsersInGroup(java.lang.String group)
java.lang.String
getToboUsername(java.lang.String retClientName)
java.util.Set<java.lang.String>
getToboUsers(java.lang.String ssoUsername)
-
-
-
Method Detail
-
getRetClientForToboUsername
public java.lang.String getRetClientForToboUsername(java.lang.String assetClass, java.lang.String toboUserName) throws java.util.NoSuchElementException
- Throws:
java.util.NoSuchElementException
-
getRetClientForSsoUsername
public java.lang.String getRetClientForSsoUsername(java.lang.String assetClass, java.lang.String ssoUsername) throws java.util.NoSuchElementException
- Throws:
java.util.NoSuchElementException
-
getSsoUsername
public java.lang.String getSsoUsername(java.lang.String toboUsername) throws java.util.NoSuchElementException
- Throws:
java.util.NoSuchElementException
-
getToboUsername
public java.lang.String getToboUsername(java.lang.String retClientName) throws java.util.NoSuchElementException
- Throws:
java.util.NoSuchElementException
-
getToboUsers
public java.util.Set<java.lang.String> getToboUsers(java.lang.String ssoUsername) throws java.util.NoSuchElementException
- Throws:
java.util.NoSuchElementException
-
getSsoUserNamesWhoCanTobo
public java.util.Set<java.lang.String> getSsoUserNamesWhoCanTobo(java.lang.String retClientName) throws java.util.NoSuchElementException
- Throws:
java.util.NoSuchElementException
-
getRetClientsTradedBySsoUser
public java.util.Set<java.lang.String> getRetClientsTradedBySsoUser(java.lang.String ssoUserName) throws java.util.NoSuchElementException
- Throws:
java.util.NoSuchElementException
-
getRetClientsTradedByToboUser
public java.util.Set<java.lang.String> getRetClientsTradedByToboUser(java.lang.String toboUsername)
-
getSsoUsernames
public java.util.Set<java.lang.String> getSsoUsernames() throws java.util.NoSuchElementException
- Throws:
java.util.NoSuchElementException
-
getSsoPassword
public java.lang.String getSsoPassword(java.lang.String ssoUsername) throws java.util.NoSuchElementException
- Throws:
java.util.NoSuchElementException
-
getAllUserGroups
public java.util.Set<java.lang.String> getAllUserGroups() throws java.util.NoSuchElementException
- Throws:
java.util.NoSuchElementException
-
getSsoUsersInGroup
public java.util.Set<java.lang.String> getSsoUsersInGroup(java.lang.String group) throws java.util.NoSuchElementException
- Throws:
java.util.NoSuchElementException
-
-