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 a list of groups for the 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
getGroups
in interface GroupMappingService
user
- user nameIOException
Copyright © 2023. All Rights Reserved.