Package org.openiam.common.beans.cache
Class ManagedSystemCache
- java.lang.Object
-
- org.openiam.cache.AbstractRedisCacheProvider
-
- org.openiam.common.beans.cache.AbstractBackendRedisCache
-
- org.openiam.common.beans.cache.ManagedSystemCache
-
@Component public class ManagedSystemCache extends AbstractBackendRedisCache
Cache of Managed Systems in IDM.These objects don't change too often, and the cache doesn't have to be distributed due to the fact that the objects are read-only 99% of the time.
- Author:
- lbornova
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openiam.cache.AbstractRedisCacheProvider
AbstractRedisCacheProvider.CacheType, AbstractRedisCacheProvider.Context
-
-
Field Summary
Fields Modifier and Type Field Description static String
MS_PASSWORD_KEY
static String
MS_PASSWORD_MSATTR_KEY
static String
MS_RESOURCE_ATTRIBUTES_KEY
static String
MS_RESOURCE_ID_KEY
protected RabbitMQSender
rabbitMQSender
-
Fields inherited from class org.openiam.cache.AbstractRedisCacheProvider
log
-
-
Constructor Summary
Constructors Constructor Description ManagedSystemCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addResourceProperties(ManagedSysDto response)
ManagedSysDto
get(String id)
ManagedSysDto
getByResourceId(String id)
protected AbstractRedisCacheProvider.CacheType
getCacheType()
String
getDecryptedPassword(String id)
void
refreshCache()
-
Methods inherited from class org.openiam.common.beans.cache.AbstractBackendRedisCache
getContext
-
Methods inherited from class org.openiam.cache.AbstractRedisCacheProvider
buildCacheKey, buildCacheKey
-
-
-
-
Field Detail
-
MS_PASSWORD_KEY
public static final String MS_PASSWORD_KEY
- See Also:
- Constant Field Values
-
MS_RESOURCE_ATTRIBUTES_KEY
public static final String MS_RESOURCE_ATTRIBUTES_KEY
- See Also:
- Constant Field Values
-
MS_PASSWORD_MSATTR_KEY
public static final String MS_PASSWORD_MSATTR_KEY
- See Also:
- Constant Field Values
-
MS_RESOURCE_ID_KEY
public static final String MS_RESOURCE_ID_KEY
- See Also:
- Constant Field Values
-
rabbitMQSender
@Autowired protected RabbitMQSender rabbitMQSender
-
-
Method Detail
-
get
public ManagedSysDto get(String id)
-
addResourceProperties
public void addResourceProperties(ManagedSysDto response)
-
getByResourceId
public ManagedSysDto getByResourceId(String id)
-
refreshCache
public void refreshCache()
-
getCacheType
protected AbstractRedisCacheProvider.CacheType getCacheType()
- Specified by:
getCacheType
in classAbstractRedisCacheProvider
-
-