@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.
|
default Set<String> |
getGroupsSet(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 nameIOException
- raised on errors performing I/O.void cacheGroupsRefresh() throws IOException
IOException
- raised on errors performing I/O.void cacheGroupsAdd(List<String> groups) throws IOException
groups
- list of groups to add to cacheIOException
- raised on errors performing I/O.default Set<String> getGroupsSet(String user) throws IOException
user
- User's nameIOException
- raised on errors performing I/O.Copyright © 2023 Apache Software Foundation. All rights reserved.