Package org.flowable.ui.idm.service
Class IdmIdentityServiceUserCacheImpl
- java.lang.Object
-
- org.flowable.ui.common.service.idm.cache.BaseUserCache
-
- org.flowable.ui.idm.service.IdmIdentityServiceUserCacheImpl
-
- All Implemented Interfaces:
UserCache
@Service public class IdmIdentityServiceUserCacheImpl extends BaseUserCache
Cache containing User objects to prevent too much DB-traffic (users exist separately from the Flowable tables, they need to be fetched afterward one by one to join with those entities).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.
- Author:
- Frederik Heremans, Joram Barrez, Filip Hrisafov
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.flowable.ui.common.service.idm.cache.UserCache
UserCache.CachedUser
-
-
Field Summary
Fields Modifier and Type Field Description protected org.flowable.idm.api.IdmIdentityServiceidentityServiceprotected org.flowable.spring.boot.ldap.FlowableLdapPropertiesldapPropertiesprotected com.google.common.cache.LoadingCache<String,UserCache.CachedUser>userCacheprotected UserServiceuserService-
Fields inherited from class org.flowable.ui.common.service.idm.cache.BaseUserCache
properties
-
-
Constructor Summary
Constructors Constructor Description IdmIdentityServiceUserCacheImpl(FlowableCommonAppProperties properties, org.flowable.idm.api.IdmIdentityService identityService, UserService userService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected UserCache.CachedUserloadUser(String userId)voidsetLdapProperties(org.flowable.spring.boot.ldap.FlowableLdapProperties ldapProperties)-
Methods inherited from class org.flowable.ui.common.service.idm.cache.BaseUserCache
getUser, getUser, initCache, invalidate, putUser
-
-
-
-
Field Detail
-
ldapProperties
protected org.flowable.spring.boot.ldap.FlowableLdapProperties ldapProperties
-
identityService
protected final org.flowable.idm.api.IdmIdentityService identityService
-
userService
protected final UserService userService
-
userCache
protected com.google.common.cache.LoadingCache<String,UserCache.CachedUser> userCache
-
-
Constructor Detail
-
IdmIdentityServiceUserCacheImpl
public IdmIdentityServiceUserCacheImpl(FlowableCommonAppProperties properties, org.flowable.idm.api.IdmIdentityService identityService, UserService userService)
-
-
Method Detail
-
loadUser
protected UserCache.CachedUser loadUser(String userId)
- Specified by:
loadUserin classBaseUserCache
-
setLdapProperties
@Autowired(required=false) public void setLdapProperties(org.flowable.spring.boot.ldap.FlowableLdapProperties ldapProperties)
-
-