org.apache.lens.server.user
Class UserConfigLoaderFactory

java.lang.Object
  extended by org.apache.lens.server.user.UserConfigLoaderFactory

public final class UserConfigLoaderFactory
extends Object

A factory for creating UserConfigLoader objects.


Nested Class Summary
static class UserConfigLoaderFactory.RESOLVER_TYPE
          The Enum RESOLVER_TYPE.
 
Method Summary
static UserConfigLoader getQueryUserResolver(UserConfigLoaderFactory.RESOLVER_TYPE resolverType)
          Gets the query user resolver.
static Map<String,String> getUserConfig(String loggedInUser)
          Gets the user config.
static void init(org.apache.hadoop.hive.conf.HiveConf c)
          Inits the.
static UserConfigLoader initializeUserConfigLoader()
          Initialize user config loader.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

init

public static void init(org.apache.hadoop.hive.conf.HiveConf c)
Inits the.

Parameters:
c - the c

initializeUserConfigLoader

public static UserConfigLoader initializeUserConfigLoader()
Initialize user config loader.

Returns:
the user config loader

getQueryUserResolver

public static UserConfigLoader getQueryUserResolver(UserConfigLoaderFactory.RESOLVER_TYPE resolverType)
Gets the query user resolver.

Parameters:
resolverType - the resolver type
Returns:
the query user resolver

getUserConfig

public static Map<String,String> getUserConfig(String loggedInUser)
Gets the user config.

Parameters:
loggedInUser - the logged in user
Returns:
the user config


Copyright © 2014–2015 Apache Software Foundation. All rights reserved.