@InterfaceAudience.Public
@InterfaceStability.Evolving
public interface GroupMappingServiceProvider
Groups.| Modifier and Type | Field and Description |
|---|---|
static String |
GROUP_MAPPING_CONFIG_PREFIX |
| Modifier and Type | Method and Description |
|---|---|
void |
cacheGroupsAdd(List<String> groups)
Caches the group user information
|
void |
cacheGroupsRefresh()
Refresh the cache of groups and user mapping
|
List<String> |
getGroups(String user)
Get all various group memberships of a given user.
|
static final String GROUP_MAPPING_CONFIG_PREFIX
List<String> getGroups(String user) throws IOException
user - User's nameIOExceptionvoid cacheGroupsRefresh()
throws IOException
IOExceptionvoid cacheGroupsAdd(List<String> groups) throws IOException
groups - list of groups to add to cacheIOExceptionCopyright © 2019 Apache Software Foundation. All Rights Reserved.