components/template-mgt/org.wso2.carbon.identity.template.mgt/src/main/java/org/wso2/carbon/identity/template/mgt/TemplateManagerImpl.java
/**
     * This method is used to add a new template.
     *
     * @param template Template element.
     * @return Return template element with template name, description and script.
     * @throws TemplateManagementException Template Management Exception.
     */
This method is used to add a new template.
@param template Template element.
@return Return template element with template name, description and script.
@throws TemplateManagementException Template Management Exception.
This method is used to add a new template . @param template Template element . @return Return template element with template name description and script . @throws TemplateManagementException Template Management Exception .
@Override
    public String addTemplate(Template template) throws TemplateManagementException {
        validateInputParameters(template);
        TemplateHandler templateHandler = TemplateManagerDataHolder.getInstance().getReadWriteTemplateHandler();
        return templateHandler.addTemplate(template);
    }
@ Override public String addTemplate ( Template template ) throws TemplateManagementException { validateInputParameters ( template ) ; TemplateHandler templateHandler = TemplateManagerDataHolder . getInstance ( ) . getReadWriteTemplateHandler ( ) ; return templateHandler . addTemplate ( template ) ; }
This method is used to add a new template.
This method is used to add a new template .