@Service public class UserCacheImpl extends Object implements UserCache
UserCache.CachedUser| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.core.env.Environment |
environment |
protected IdentityService |
identityService |
protected com.google.common.cache.LoadingCache<String,UserCache.CachedUser> |
userCache |
| 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) |
@Autowired protected org.springframework.core.env.Environment environment
@Autowired protected IdentityService identityService
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 UserCacheCopyright © 2017 Alfresco. All rights reserved.