public class CachedGroupMapping extends Object implements GroupMappingService
GroupMappingService
.GroupMappingService.Factory
Constructor and Description |
---|
CachedGroupMapping(GroupMappingService service,
long groupMappingCacheTimeoutMs)
Constructor with specified
GroupMappingService . |
Modifier and Type | Method and Description |
---|---|
List<String> |
getGroups(String user)
Gets all various group memberships of a given user.
|
public CachedGroupMapping(GroupMappingService service, long groupMappingCacheTimeoutMs)
GroupMappingService
. Initializes the cache if enabled.service
- group mapping servicegroupMappingCacheTimeoutMs
- The timeout in millseconds before we should reload the cachepublic List<String> getGroups(String user) throws IOException
GroupMappingService
getGroups
in interface GroupMappingService
user
- user's nameIOException
Copyright © 2023. All Rights Reserved.