001/*
002 * (C) Copyright 2015 Nuxeo SA (http://nuxeo.com/) and others.
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 *     http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 *
016 * Contributors:
017 *     vpasquier <vpasquier@nuxeo.com>
018 */
019package org.nuxeo.automation.scripting.api;
020
021/**
022 * @since 7.2
023 */
024public class AutomationScriptingConstants {
025
026    public static final String NASHORN_ENGINE = "Nashorn";
027
028    public static final String AUTOMATION_MAPPER_KEY = "automation";
029
030    public static final String AUTOMATION_CTX_KEY = "ctx";
031
032    public static final String AUTOMATION_SCRIPTING_MONITOR = "automation.scripting.monitor.enable";
033
034    public static final String AUTOMATION_SCRIPTING_PRECOMPILE = "automation.scripting.precompile.enable";
035
036    public static final String DEFAULT_PRECOMPILE_STATUS = "true";
037
038    public static final String XP_OPERATION = "operation";
039
040    public static final String NX_NASHORN = "nx-nashorn";
041
042    public static final String NASHORN_JAVA_VERSION = "1.8.0_1";
043
044    public static final String COMPLIANT_JAVA_VERSION_CACHE = "1.8.0_25";
045
046    public static final String COMPLIANT_JAVA_VERSION_CLASS_FILTER = "1.8.0_40";
047
048    public static final String NASHORN_WARN_CLASS_FILTER = "Class Filter is not available. jdk8u40 is required to activate Automation Javascript imports security.";
049
050    public static final String NASHORN_WARN_CACHE = "Nashorn cache is not available. jdk8u25 is required to optimize Automation Javascript performances.";
051
052    public static final String NASHORN_WARN_VERSION = "Cannot use Nashorn. jdk8 is required to activate Automation Javascript.";
053
054}