@InterfaceAudience.LimitedPrivate(value={"HDFS","MapReduce"}) @InterfaceStability.Evolving public class ShellBasedUnixGroupsMapping extends Object implements GroupMappingServiceProvider
GroupMappingServiceProvider
that exec's the groups
shell command to fetch the group
memberships of a given user.Constructor and Description |
---|
ShellBasedUnixGroupsMapping() |
Modifier and Type | Method and Description |
---|---|
void |
cacheGroupsAdd(List<String> groups)
Adds groups to cache, no need to do that for this provider
|
void |
cacheGroupsRefresh()
Caches groups, no need to do that for this provider
|
List<String> |
getGroups(String user)
Returns list of groups for a user
|
public List<String> getGroups(String user) throws IOException
getGroups
in interface GroupMappingServiceProvider
user
- get groups for this userIOException
public void cacheGroupsRefresh() throws IOException
cacheGroupsRefresh
in interface GroupMappingServiceProvider
IOException
public void cacheGroupsAdd(List<String> groups) throws IOException
cacheGroupsAdd
in interface GroupMappingServiceProvider
groups
- unusedIOException
Copyright © 2013 Apache Software Foundation. All rights reserved.