org.apache.lens.server.user
Class LDAPBackedDatabaseUserConfigLoader
java.lang.Object
org.apache.lens.server.user.UserConfigLoader
org.apache.lens.server.user.DatabaseUserConfigLoader
org.apache.lens.server.user.LDAPBackedDatabaseUserConfigLoader
public class LDAPBackedDatabaseUserConfigLoader
- extends DatabaseUserConfigLoader
The Class LDAPBackedDatabaseUserConfigLoader.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LDAPBackedDatabaseUserConfigLoader
public LDAPBackedDatabaseUserConfigLoader(org.apache.hadoop.hive.conf.HiveConf conf)
throws UserConfigLoaderException
- Instantiates a new LDAP backed database user config loader.
- Parameters:
conf - the conf
- Throws:
UserConfigLoaderException - the user config loader exception
findAccountByAccountName
protected SearchResult findAccountByAccountName(String accountName)
throws NamingException
- Find account by account name.
- Parameters:
accountName - the account name
- Returns:
- the search result
- Throws:
NamingException - the naming exception
getAttributes
public String[] getAttributes(String user)
throws NamingException
- Gets the attributes.
- Parameters:
user - the user
- Returns:
- the attributes
- Throws:
NamingException - the naming exception
getUserConfig
public Map<String,String> getUserConfig(String loggedInUser)
throws UserConfigLoaderException
- Description copied from class:
UserConfigLoader
- Gets the user config.
- Overrides:
getUserConfig in class DatabaseUserConfigLoader
- Parameters:
loggedInUser - the logged in user
- Returns:
- the user config
- Throws:
UserConfigLoaderException - the user config loader exception
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.