Class CachedGroupMapping

    • Constructor Detail

      • CachedGroupMapping

        public CachedGroupMapping​(GroupMappingService service,
                                  long groupMappingCacheTimeoutMs)
        Constructor with specified GroupMappingService. Initializes the cache if enabled.
        Parameters:
        service - group mapping service
        groupMappingCacheTimeoutMs - The timeout in millseconds before we should reload the cache
    • Method Detail

      • getGroups

        public java.util.List<java.lang.String> getGroups​(java.lang.String user)
                                                   throws java.io.IOException
        Description copied from interface: GroupMappingService
        Gets all various group memberships of a given user. Returns EMPTY list in case of non-existing user.
        Specified by:
        getGroups in interface GroupMappingService
        Parameters:
        user - user's name
        Returns:
        group memberships of user
        Throws:
        java.io.IOException