001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.kernel.template;
016    
017    import com.liferay.portal.kernel.util.StringPool;
018    
019    /**
020     * @author Tina Tian
021     */
022    public interface TemplateConstants {
023    
024            public static final String[] ALLOWED_LANG_TYPES = {
025                    TemplateConstants.LANG_TYPE_CSS, TemplateConstants.LANG_TYPE_FTL,
026                    TemplateConstants.LANG_TYPE_TPL, TemplateConstants.LANG_TYPE_VM,
027                    TemplateConstants.LANG_TYPE_XSL
028            };
029    
030            public static final String CLASS_NAME_ID = "class_name_id";
031    
032            public static final String DEFAUT_ENCODING = StringPool.UTF8;
033    
034            /**
035             * @deprecated As of 6.2.0
036             */
037            public static final String JOURNAL_SEPARATOR = "_JOURNAL_CONTEXT_";
038    
039            public static final String LANG_TYPE_CSS = "css";
040    
041            public static final String LANG_TYPE_FTL = "ftl";
042    
043            public static final String LANG_TYPE_TPL = "tpl";
044    
045            public static final String LANG_TYPE_VM = "vm";
046    
047            public static final String LANG_TYPE_XSL = "xsl";
048    
049            public static final String SERVLET_SEPARATOR = "_SERVLET_CONTEXT_";
050    
051            public static final String TEMPLATE_ID = "template_id";
052    
053            public static final String TEMPLATE_RESOURCE_UUID_PREFIX =
054                    "TEMPLATE_RESOURCE_UUID";
055    
056            public static final String TEMPLATE_SEPARATOR = "_TEMPLATE_CONTEXT_";
057    
058            public static final String THEME_LOADER_SEPARATOR =
059                    "_THEME_LOADER_CONTEXT_";
060    
061            public static final String WRITER = "writer";
062    
063    }