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 StringMS_PASSWORD_KEYstatic StringMS_PASSWORD_MSATTR_KEYstatic StringMS_RESOURCE_ATTRIBUTES_KEYstatic StringMS_RESOURCE_ID_KEYprotected RabbitMQSenderrabbitMQSender-
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 voidaddResourceProperties(ManagedSysDto response)ManagedSysDtoget(String id)ManagedSysDtogetByResourceId(String id)protected AbstractRedisCacheProvider.CacheTypegetCacheType()StringgetDecryptedPassword(String id)voidrefreshCache()-
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:
getCacheTypein classAbstractRedisCacheProvider
-
-