@Service public class UserCacheImpl extends Object implements UserCache
TODO: This could probably be made more efficient with bulk getting. The Google cache impl allows this: override loadAll and use getAll() to fetch multiple entities.
UserCache.CachedUser| Modifier and Type | Field and Description |
|---|---|
protected org.flowable.idm.api.IdmIdentityService |
identityService |
protected org.flowable.spring.boot.ldap.FlowableLdapProperties |
ldapProperties |
protected FlowableCommonAppProperties |
properties |
protected com.google.common.cache.LoadingCache<String,UserCache.CachedUser> |
userCache |
protected UserService |
userService |
| Constructor and Description |
|---|
UserCacheImpl() |
| Modifier and Type | Method and Description |
|---|---|
UserCache.CachedUser |
getUser(String userId) |
UserCache.CachedUser |
getUser(String userId,
boolean throwExceptionOnNotFound,
boolean throwExceptionOnInactive,
boolean checkValidity) |
protected void |
initCache() |
void |
invalidate(String userId) |
void |
putUser(String userId,
UserCache.CachedUser cachedUser) |
void |
setLdapProperties(org.flowable.spring.boot.ldap.FlowableLdapProperties ldapProperties) |
@Autowired protected FlowableCommonAppProperties properties
protected org.flowable.spring.boot.ldap.FlowableLdapProperties ldapProperties
@Autowired protected org.flowable.idm.api.IdmIdentityService identityService
@Autowired protected UserService userService
protected com.google.common.cache.LoadingCache<String,UserCache.CachedUser> userCache
@PostConstruct protected void initCache()
public void putUser(String userId, UserCache.CachedUser cachedUser)
public UserCache.CachedUser getUser(String userId)
public UserCache.CachedUser getUser(String userId, boolean throwExceptionOnNotFound, boolean throwExceptionOnInactive, boolean checkValidity)
public void invalidate(String userId)
invalidate in interface UserCache@Autowired(required=false) public void setLdapProperties(org.flowable.spring.boot.ldap.FlowableLdapProperties ldapProperties)
Copyright © 2018 Flowable. All rights reserved.