@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 GroupMappingServiceProvideruser - get groups for this userIOExceptionpublic void cacheGroupsRefresh()
throws IOException
cacheGroupsRefresh in interface GroupMappingServiceProviderIOExceptionpublic void cacheGroupsAdd(List<String> groups) throws IOException
cacheGroupsAdd in interface GroupMappingServiceProvidergroups - unusedIOExceptionCopyright © 2013 Apache Software Foundation. All rights reserved.