Class MasterDataManager
- java.lang.Object
-
- io.mosip.authentication.common.service.integration.MasterDataManager
-
@Component public class MasterDataManager extends Object
MasterDataManager.- Author:
- Dinesh Karuppiah.T, Manoj SP, Nagarjuna
-
-
Constructor Summary
Constructors Constructor Description MasterDataManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringfetchTemplate(String langCode, String templateName)Fetch templates based on Language code and Template Name.StringfetchTemplate(String templateName, List<String> templateLanguages)To fetch template from master data manager for all languages.Map<String,List<String>>fetchTitles()To fetch titles.
-
-
-
Method Detail
-
fetchTemplate
public String fetchTemplate(String langCode, String templateName) throws IdAuthenticationBusinessException
Fetch templates based on Language code and Template Name.- Parameters:
langCode- the lang codetemplateName- the template name- Returns:
- the string
- Throws:
IdAuthenticationBusinessException- the id authentication business exception
-
fetchTemplate
public String fetchTemplate(String templateName, List<String> templateLanguages) throws IdAuthenticationBusinessException
To fetch template from master data manager for all languages.- Parameters:
templateName- the template name- Returns:
- the string
- Throws:
IdAuthenticationBusinessException- the id authentication business exception
-
fetchTitles
public Map<String,List<String>> fetchTitles() throws IdAuthenticationBusinessException
To fetch titles.- Returns:
- the map
- Throws:
IdAuthenticationBusinessException- the id authentication business exception
-
-