org.apache.lens.server.user
Class LDAPBackedDatabaseUserConfigLoader

java.lang.Object
  extended by org.apache.lens.server.user.UserConfigLoader
      extended by org.apache.lens.server.user.DatabaseUserConfigLoader
          extended by org.apache.lens.server.user.LDAPBackedDatabaseUserConfigLoader

public class LDAPBackedDatabaseUserConfigLoader
extends DatabaseUserConfigLoader

The Class LDAPBackedDatabaseUserConfigLoader.


Field Summary
 
Fields inherited from class org.apache.lens.server.user.DatabaseUserConfigLoader
ds, keys, querySql
 
Fields inherited from class org.apache.lens.server.user.UserConfigLoader
hiveConf
 
Constructor Summary
LDAPBackedDatabaseUserConfigLoader(org.apache.hadoop.hive.conf.HiveConf conf)
          Instantiates a new LDAP backed database user config loader.
 
Method Summary
protected  SearchResult findAccountByAccountName(String accountName)
          Find account by account name.
 String[] getAttributes(String user)
          Gets the attributes.
 Map<String,String> getUserConfig(String loggedInUser)
          Gets the user config.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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.