Class LDAPGroupCache


  • public class LDAPGroupCache
    extends Object
    Simple cache for groups a user belongs to, which avoid hitting the LDAP system too much. Groups are fetched internally by the engine for example when doing queries, eg when fetching tasks for a candidateUser. Configured through the LDAPConfiguration. Cached entries have an expiration time. For example when set to one hour, changes to the ldap system around the groups of a user will be visible after that hour. Experimental: can have a listener for cache events, and instance of LDAPGroupCache.LDAPGroupCacheListener.
    Author:
    Joram Barrez
    • Constructor Detail

      • LDAPGroupCache

        public LDAPGroupCache​(int cacheSize,
                              long expirationTime,
                              org.flowable.common.engine.impl.runtime.ClockReader clockReader)
      • LDAPGroupCache

        public LDAPGroupCache​(int cacheSize,
                              long expirationTime,
                              Supplier<org.flowable.common.engine.impl.runtime.ClockReader> clockReader)
    • Method Detail

      • clear

        public void clear()
      • getGroupCache

        public Map<String,​org.flowable.ldap.LDAPGroupCache.LDAPGroupCacheEntry> getGroupCache()
      • setGroupCache

        public void setGroupCache​(Map<String,​org.flowable.ldap.LDAPGroupCache.LDAPGroupCacheEntry> groupCache)
      • getExpirationTime

        public long getExpirationTime()
      • setExpirationTime

        public void setExpirationTime​(long expirationTime)