Class IdTemplateManager
- java.lang.Object
-
- io.mosip.authentication.common.service.integration.IdTemplateManager
-
@Component public class IdTemplateManager extends Object
Manage fetching / applying Templates based on entity.- Author:
- Dinesh Karuppiah.T, Nagarjuna
-
-
Constructor Summary
Constructors Constructor Description IdTemplateManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringapplyTemplate(String templateName, Map<String,Object> values, List<String> templateLanguages)To apply Template for PDF Generation.StringfetchTemplate(String templateName, List<String> templateLanguages)Fetch Templates for e-KYC based on Template name.voididTemplateManagerPostConstruct()Id template manager post construct.
-
-
-
Method Detail
-
idTemplateManagerPostConstruct
@PostConstruct public void idTemplateManagerPostConstruct()
Id template manager post construct.
-
applyTemplate
public String applyTemplate(String templateName, Map<String,Object> values, List<String> templateLanguages) throws IdAuthenticationBusinessException, IOException
To apply Template for PDF Generation.- Parameters:
templateName- - template name for pdf formatvalues- - list of contents- Returns:
- the string
- Throws:
IdAuthenticationBusinessException- the id authentication business exceptionIOException- Signals that an I/O exception has occurred.
-
fetchTemplate
public String fetchTemplate(String templateName, List<String> templateLanguages) throws IdAuthenticationBusinessException
Fetch Templates for e-KYC based on Template name.- Parameters:
templateName- the template name- Returns:
- the string
- Throws:
IdAuthenticationBusinessException- the id authentication business exception
-
-