Class MasterDataCache
- java.lang.Object
-
- io.mosip.authentication.common.service.cache.MasterDataCache
-
@Component public class MasterDataCache extends Object
The Class MasterDataCache.- Author:
- Manoj SP
-
-
Constructor Summary
Constructors Constructor Description MasterDataCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearMasterDataTemplateCache(String template)Clear master data template cache.voidclearMasterDataTitlesCache()Clear master data titles cache.Map<String,Object>getMasterDataTemplate(String template)Gets the master data template.Map<String,Object>getMasterDataTitles()Gets the master data titles.
-
-
-
Method Detail
-
getMasterDataTitles
@Cacheable(cacheNames="masterdata/titles") public Map<String,Object> getMasterDataTitles() throws IdAuthenticationBusinessException
Gets the master data titles.- Returns:
- the master data titles
- Throws:
IdAuthenticationBusinessException- the id authentication business exception
-
getMasterDataTemplate
@Cacheable(cacheNames="masterdata/templates", key="#template") public Map<String,Object> getMasterDataTemplate(String template) throws IdAuthenticationBusinessExceptionGets the master data template.- Parameters:
template- the template- Returns:
- the master data template
- Throws:
IdAuthenticationBusinessException- the id authentication business exception
-
clearMasterDataTemplateCache
@CacheEvict(value="masterdata/templates", key="#template") public void clearMasterDataTemplateCache(String template)Clear master data template cache.- Parameters:
template- the template
-
clearMasterDataTitlesCache
@CacheEvict("masterdata/titles") public void clearMasterDataTitlesCache()Clear master data titles cache.
-
-