public class DefaultTenantedPrincipleNameResolver extends Object implements ITenantedPrincipleNameResolver
| Modifier and Type | Field and Description |
|---|---|
static String |
ALTERNATE_DELIMETER |
static String |
DEFAULT_DELIMETER |
boolean |
userNameNaturallyContainsEmbeddedTenantName |
| Constructor and Description |
|---|
DefaultTenantedPrincipleNameResolver() |
DefaultTenantedPrincipleNameResolver(String delimiter) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDelimeter() |
String |
getPrincipleId(ITenant tenant,
String principleName) |
String |
getPrincipleName(String principalId) |
ITenant |
getTenant(String principalId) |
boolean |
getUserNameFollowsTenantName() |
boolean |
getUserNameNaturallyContainsEmbeddedTenantName() |
boolean |
isValid(String principleId) |
void |
setDelimeter(String delimeter) |
void |
setUserNameFollowsTenantName(boolean userNameFollowsTenantName) |
void |
setUserNameNaturallyContainsEmbeddedTenantName(boolean userNameNaturallyContainsEmbeddedTenantName) |
public static final String DEFAULT_DELIMETER
public static final String ALTERNATE_DELIMETER
public boolean userNameNaturallyContainsEmbeddedTenantName
public DefaultTenantedPrincipleNameResolver()
public DefaultTenantedPrincipleNameResolver(String delimiter)
public ITenant getTenant(String principalId)
getTenant in interface ITenantedPrincipleNameResolverpublic String getPrincipleName(String principalId)
getPrincipleName in interface ITenantedPrincipleNameResolverpublic String getPrincipleId(ITenant tenant, String principleName)
getPrincipleId in interface ITenantedPrincipleNameResolverpublic boolean getUserNameNaturallyContainsEmbeddedTenantName()
public void setUserNameNaturallyContainsEmbeddedTenantName(boolean userNameNaturallyContainsEmbeddedTenantName)
public String getDelimeter()
public void setDelimeter(String delimeter)
public boolean getUserNameFollowsTenantName()
public void setUserNameFollowsTenantName(boolean userNameFollowsTenantName)
public boolean isValid(String principleId)
isValid in interface ITenantedPrincipleNameResolverCopyright © 2002–2017 Pentaho Corporation. All rights reserved.