public class NullGroupsMapping extends Object implements GroupMappingServiceProvider
UserGroupInformation when the
user group information will not be used.GROUP_MAPPING_CONFIG_PREFIX| Constructor and Description |
|---|
NullGroupsMapping() |
| Modifier and Type | Method and Description |
|---|---|
void |
cacheGroupsAdd(List<String> groups)
Nothing is returned, so nothing is cached.
|
void |
cacheGroupsRefresh()
Nothing is returned, so nothing is cached.
|
List<String> |
getGroups(String user)
Returns an empty list.
|
Set<String> |
getGroupsSet(String user)
Get all various group memberships of a given user.
|
public void cacheGroupsAdd(List<String> groups)
cacheGroupsAdd in interface GroupMappingServiceProvidergroups - ignoredpublic Set<String> getGroupsSet(String user) throws IOException
getGroupsSet in interface GroupMappingServiceProvideruser - User's nameIOException - raised on errors performing I/O.public List<String> getGroups(String user)
getGroups in interface GroupMappingServiceProvideruser - ignoredpublic void cacheGroupsRefresh()
cacheGroupsRefresh in interface GroupMappingServiceProviderCopyright © 2008–2025 Apache Software Foundation. All rights reserved.