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

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

Introduction

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

Prototype

String LANG_TYPE_JSON

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

Click Source Link

Usage

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

License:Open Source License

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

    if (extension.equals(TemplateConstants.LANG_TYPE_JSON)
            || extension.equals(TemplateConstants.LANG_TYPE_XML)) {

        return extension;
    }//  w ww  .  j a v a 2 s.  c  o m

    return TemplateConstants.LANG_TYPE_XML;
}