public class FixedGroupsMapping extends Object implements IGroupMappingServiceProvider
Modifier and Type | Field and Description |
---|---|
Map<String,Set<String>> |
cachedGroups |
static org.slf4j.Logger |
LOG |
static String |
STORM_FIXED_GROUP_MAPPING |
Constructor and Description |
---|
FixedGroupsMapping() |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getGroups(String user)
Returns list of groups for a user.
|
void |
prepare(Map<String,Object> stormConf)
Invoked once immediately after construction.
|
public static final String STORM_FIXED_GROUP_MAPPING
public static org.slf4j.Logger LOG
public void prepare(Map<String,Object> stormConf)
Invoked once immediately after construction.
prepare
in interface IGroupMappingServiceProvider
stormConf
- Storm configurationpublic Set<String> getGroups(String user) throws IOException
Returns list of groups for a user.
getGroups
in interface IGroupMappingServiceProvider
user
- get groups for this userIOException
Copyright © 2019 The Apache Software Foundation. All rights reserved.