public class DefaultTenantedPrincipleNameResolver extends Object implements org.pentaho.platform.api.mt.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(org.pentaho.platform.api.mt.ITenant tenant,
String principleName) |
String |
getPrincipleName(String principalId) |
org.pentaho.platform.api.mt.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 org.pentaho.platform.api.mt.ITenant getTenant(String principalId)
getTenant
in interface org.pentaho.platform.api.mt.ITenantedPrincipleNameResolver
public String getPrincipleName(String principalId)
getPrincipleName
in interface org.pentaho.platform.api.mt.ITenantedPrincipleNameResolver
public String getPrincipleId(org.pentaho.platform.api.mt.ITenant tenant, String principleName)
getPrincipleId
in interface org.pentaho.platform.api.mt.ITenantedPrincipleNameResolver
public 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 org.pentaho.platform.api.mt.ITenantedPrincipleNameResolver