Class RemoteIdmUserCache
- java.lang.Object
-
- org.flowable.ui.common.service.idm.cache.BaseUserCache
-
- org.flowable.ui.common.service.idm.cache.RemoteIdmUserCache
-
- All Implemented Interfaces:
UserCache
public class RemoteIdmUserCache 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 RemoteIdmServiceremoteIdmService-
Fields inherited from class org.flowable.ui.common.service.idm.cache.BaseUserCache
properties, userCache
-
-
Constructor Summary
Constructors Constructor Description RemoteIdmUserCache(FlowableCommonAppProperties properties, RemoteIdmService remoteIdmService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected UserCache.CachedUserloadUser(String userId)-
Methods inherited from class org.flowable.ui.common.service.idm.cache.BaseUserCache
getUser, getUser, initCache, invalidate, putUser
-
-
-
-
Field Detail
-
remoteIdmService
protected final RemoteIdmService remoteIdmService
-
-
Constructor Detail
-
RemoteIdmUserCache
public RemoteIdmUserCache(FlowableCommonAppProperties properties, RemoteIdmService remoteIdmService)
-
-
Method Detail
-
loadUser
protected UserCache.CachedUser loadUser(String userId)
- Specified by:
loadUserin classBaseUserCache
-
-