001/* 002 * (C) Copyright 2015 Nuxeo SA (http://nuxeo.com/) and contributors. 003 * 004 * All rights reserved. This program and the accompanying materials 005 * are made available under the terms of the GNU Lesser General Public License 006 * (LGPL) version 2.1 which accompanies this distribution, and is available at 007 * http://www.gnu.org/licenses/lgpl-2.1.html 008 * 009 * This library is distributed in the hope that it will be useful, 010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 012 * Lesser General Public License for more details. 013 * 014 * Contributors: 015 * vpasquier <vpasquier@nuxeo.com> 016 */ 017package org.nuxeo.automation.scripting.api; 018 019/** 020 * @since 7.2 021 */ 022public class AutomationScriptingConstants { 023 024 public static final String NASHORN_ENGINE = "Nashorn"; 025 026 public static final String AUTOMATION_MAPPER_KEY = "automation"; 027 028 public static final String AUTOMATION_CTX_KEY = "ctx"; 029 030 public static final String AUTOMATION_SCRIPTING_MONITOR = "automation.scripting.monitor.enable"; 031 032 public static final String AUTOMATION_SCRIPTING_PRECOMPILE = "automation.scripting.precompile.enable"; 033 034 public static final String DEFAULT_PRECOMPILE_STATUS = "true"; 035 036 public static final String XP_OPERATION = "operation"; 037 038 public static final String NX_NASHORN = "nx-nashorn"; 039 040 public static final String NASHORN_JAVA_VERSION = "1.8"; 041 042 public static final String COMPLIANT_JAVA_VERSION_CACHE = "1.8.0_25"; 043 044 public static final String COMPLIANT_JAVA_VERSION_CLASS_FILTER = "1.8.0_40"; 045 046 public static final String NASHORN_WARN_CLASS_FILTER = "Class Filter is not available. jdk8u40 is required to activate Automation Javascript imports security."; 047 048 public static final String NASHORN_WARN_CACHE = "Nashorn cache is not available. jdk8u25 is required to optimize Automation Javascript performances."; 049 050 public static final String NASHORN_WARN_VERSION = "Cannot use Nashorn. jdk8 is required to activate Automation Javascript."; 051 052}