All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.mosip.registration.service.template.TemplateService Maven / Gradle / Ivy

package io.mosip.registration.service.template;

import io.mosip.registration.exception.RegBaseCheckedException;

/**
 * The {@code TemplateService} represents the Template that needs to be
 * displayed. This class will be invoked during New Registration, UIN Update and
 * Lost UIN based on the template code.
 *
 * @author Himaja Dhanyamraju
 */
public interface TemplateService {
	
	/**
	 * This method returns the template data to display based on the corresponding
	 * template and primary language code
	 * 
	 * 

If provided Template code is not null

*

Fetch Template and Template Type and Template File Format from the database by passing Template code * return the template which matches with language code and file format code

*

If provided Template code is null:

*

returns empty string

* * @param templateName * {@code String} defines the template name * @param langCode * {@code String} the language code in which the template is required * * @return {@code String} which contains the template data * @throws RegBaseCheckedException the custom exception to handle all checked exceptions */ public String getHtmlTemplate(String templateName, String langCode) throws RegBaseCheckedException; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy