Class DefaultTenantedPrincipleNameResolver
- java.lang.Object
-
- org.pentaho.platform.security.userroledao.DefaultTenantedPrincipleNameResolver
-
- All Implemented Interfaces:
org.pentaho.platform.api.mt.ITenantedPrincipleNameResolver
public class DefaultTenantedPrincipleNameResolver extends Object implements org.pentaho.platform.api.mt.ITenantedPrincipleNameResolver
-
-
Field Summary
Fields Modifier and Type Field Description static String
ALTERNATE_DELIMETER
static String
DEFAULT_DELIMETER
boolean
userNameNaturallyContainsEmbeddedTenantName
-
Constructor Summary
Constructors Constructor Description DefaultTenantedPrincipleNameResolver()
DefaultTenantedPrincipleNameResolver(String delimiter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
DEFAULT_DELIMETER
public static final String DEFAULT_DELIMETER
- See Also:
- Constant Field Values
-
ALTERNATE_DELIMETER
public static final String ALTERNATE_DELIMETER
- See Also:
- Constant Field Values
-
userNameNaturallyContainsEmbeddedTenantName
public boolean userNameNaturallyContainsEmbeddedTenantName
-
-
Constructor Detail
-
DefaultTenantedPrincipleNameResolver
public DefaultTenantedPrincipleNameResolver()
-
DefaultTenantedPrincipleNameResolver
public DefaultTenantedPrincipleNameResolver(String delimiter)
-
-
Method Detail
-
getTenant
public org.pentaho.platform.api.mt.ITenant getTenant(String principalId)
- Specified by:
getTenant
in interfaceorg.pentaho.platform.api.mt.ITenantedPrincipleNameResolver
-
getPrincipleName
public String getPrincipleName(String principalId)
- Specified by:
getPrincipleName
in interfaceorg.pentaho.platform.api.mt.ITenantedPrincipleNameResolver
-
getPrincipleId
public String getPrincipleId(org.pentaho.platform.api.mt.ITenant tenant, String principleName)
- Specified by:
getPrincipleId
in interfaceorg.pentaho.platform.api.mt.ITenantedPrincipleNameResolver
-
getUserNameNaturallyContainsEmbeddedTenantName
public boolean getUserNameNaturallyContainsEmbeddedTenantName()
-
setUserNameNaturallyContainsEmbeddedTenantName
public void setUserNameNaturallyContainsEmbeddedTenantName(boolean userNameNaturallyContainsEmbeddedTenantName)
-
getDelimeter
public String getDelimeter()
-
setDelimeter
public void setDelimeter(String delimeter)
-
getUserNameFollowsTenantName
public boolean getUserNameFollowsTenantName()
-
setUserNameFollowsTenantName
public void setUserNameFollowsTenantName(boolean userNameFollowsTenantName)
-
isValid
public boolean isValid(String principleId)
- Specified by:
isValid
in interfaceorg.pentaho.platform.api.mt.ITenantedPrincipleNameResolver
-
-