/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. 
 */
package fr.hhdev.ocelot;

/**
 * Constants Class
 *
 * @author hhfrancois
 */
public interface Constants {

	String LOCALE = "LOCALE";
	String OCELOT_SERVICES_JS = "ocelot-services.js";
	String OCELOT_CORE_JS = "ocelot-core.js";
	String OCELOT_SERVICES = "ocelot-services";
	String MINIFY_PARAMETER = "minify";
	String JS = ".js";
	String JSTYPE = "text/javascript;charset=UTF-8";
	String FALSE = "false";
	String TRUE = "true";
	
	interface Options {

		String MINIFYJS = "ocelot.minifyjs";
		String STACKTRACE = "ocelot.stacktrace.length";
	}

	interface Message {

		String ID = "id";
		String DATASERVICE = "ds";
		String OPERATION = "op";
		String ARGUMENTS = "args";
		String ARGUMENTNAMES = "argNames";
		String DEADLINE = "deadline";
		String STORE = "store";
		String RESULT = "result";
		String FAULT = "fault";

		interface Fault {

			String MESSAGE = "message";
			String CLASSNAME = "classname";
			String STACKTRACE = "stacktrace";

		}
	}

	interface Resolver {

		String POJO = "pojo";
		String CDI = "cdi";
		String EJB = "ejb";
		String SPRING = "spring";
	}

	interface Cache {

		String CLEANCACHE_TOPIC = "ocelot-cleancache";
		String ALL = "all";
	}

	interface Command {

		// Attention si on modifie ces deux varaibles, elles sont aussi dans ocelot-core.js en dur
		String COMMAND = "cmd";
		String MESSAGE = "msg";

		interface Value {

			String SUBSCRIBE = "subscribe";
			String UNSUBSCRIBE = "unsubscribe";
			String CALL = "call";
		}
	}
}

@@ -320,75 +320,73 @@
 ing 
-LOCALE = %22LOCALE%22;%0A%09String OCELOT_SERVICES_JS = %22ocelot-services.js
+SLASH = %22/%22;%0A%09String BACKSLASH_N = %22%5Cn%22;%0A%09String LOCALE = %22LOCALE
 %22;%0A%09
@@ -407,11 +407,8 @@
 CORE
-_JS
  = %22
@@ -418,19 +418,16 @@
 lot-core
-.js
 %22;%0A%09Stri
@@ -503,16 +503,56 @@
 inify%22;%0A
+%09String MIN = %22min%22;%0A%09String DOT = %22-%22;%0A
 %09String 
@@ -689,47 +689,8 @@
  %7B%0A%0A
-%09%09String MINIFYJS = %22ocelot.minifyjs%22;%0A
 %09%09St

add constants