Example usage for com.liferay.portal.kernel.template TemplateConstants LANG_TYPE_CSS

List of usage examples for com.liferay.portal.kernel.template TemplateConstants LANG_TYPE_CSS

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.template TemplateConstants LANG_TYPE_CSS.

Prototype

String LANG_TYPE_CSS

To view the source code for com.liferay.portal.kernel.template TemplateConstants LANG_TYPE_CSS.

Click Source Link

Usage

From source file:com.liferay.exportimport.resources.importer.internal.util.FileSystemImporter.java

License:Open Source License

protected String getDDMTemplateLanguage(String fileName) {
    String extension = FileUtil.getExtension(fileName);

    if (extension.equals(TemplateConstants.LANG_TYPE_CSS) || extension.equals(TemplateConstants.LANG_TYPE_FTL)
            || extension.equals(TemplateConstants.LANG_TYPE_VM)
            || extension.equals(TemplateConstants.LANG_TYPE_XSL)) {

        return extension;
    }//  w ww.ja v a  2s. co  m

    return TemplateConstants.LANG_TYPE_VM;
}