]> git.argeo.org Git - gpl/argeo-slc.git/commitdiff
Rename
authorCharles du Jeu <charles.dujeu@gmail.com>
Fri, 27 Feb 2009 12:06:10 +0000 (12:06 +0000)
committerCharles du Jeu <charles.dujeu@gmail.com>
Fri, 27 Feb 2009 12:06:10 +0000 (12:06 +0000)
git-svn-id: https://svn.argeo.org/slc/trunk@2195 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

org.argeo.slc.webapp/src/main/webapp/argeo-ria-lib/slc/class/org/argeo/slc/ria/execution/ExecutionFlow.js [deleted file]
org.argeo.slc.webapp/src/main/webapp/argeo-ria-lib/slc/class/org/argeo/slc/ria/execution/ExecutionModule.js [deleted file]
org.argeo.slc.webapp/src/main/webapp/argeo-ria-lib/slc/class/org/argeo/slc/ria/execution/ExecutionSpec.js [deleted file]
org.argeo.slc.webapp/src/main/webapp/argeo-ria-lib/slc/class/org/argeo/slc/ria/execution/Flow.js [new file with mode: 0644]
org.argeo.slc.webapp/src/main/webapp/argeo-ria-lib/slc/class/org/argeo/slc/ria/execution/Module.js [new file with mode: 0644]
org.argeo.slc.webapp/src/main/webapp/argeo-ria-lib/slc/class/org/argeo/slc/ria/execution/Spec.js [new file with mode: 0644]

diff --git a/org.argeo.slc.webapp/src/main/webapp/argeo-ria-lib/slc/class/org/argeo/slc/ria/execution/ExecutionFlow.js b/org.argeo.slc.webapp/src/main/webapp/argeo-ria-lib/slc/class/org/argeo/slc/ria/execution/ExecutionFlow.js
deleted file mode 100644 (file)
index 4728fe9..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-/**\r
- * Wrapper for ExecutionFlow server object\r
- */\r
-qx.Class.define("org.argeo.slc.ria.module.ExecutionFlow", {\r
-       \r
-       extend : qx.core.Object,\r
-       \r
-       properties : {\r
-               /**\r
-                * Name of this Execution Flow \r
-                */\r
-               name : {\r
-                       check : "String",\r
-                       init : ""\r
-               },\r
-               /**\r
-                * Name of the associated spec, to be found in the module \r
-                */\r
-               executionSpecName : {\r
-                       check : "String"\r
-               },\r
-               /**\r
-                * Reference the actual ExecutionSpec object\r
-                */\r
-               executionSpec : {\r
-                       check : "org.argeo.slc.ria.module.ExecutionSpec"\r
-               },\r
-               /**\r
-                * Castor representation of the object \r
-                */\r
-               xmlNode : {\r
-                       apply : "_applyXmlNode"\r
-               }\r
-       },\r
-       \r
-       statics : {\r
-               XPATH_NAME : "@name",\r
-               XPATH_EXEC_SPEC_NAME : "@executionSpec",\r
-               XPATH_VALUES : "slc:values"\r
-       },\r
-       \r
-       construct : function(){},\r
-       \r
-       members : {             \r
-               /**\r
-                * Init the object from an XML representation\r
-                * @param xmlNode {Node} Castor representation of this object\r
-                */\r
-               _applyXmlNode : function(xmlNode){\r
-                       this.set({\r
-                               name : org.argeo.ria.util.Element.getSingleNodeText(xmlNode, this.self(arguments).XPATH_NAME),\r
-                               executionSpecName : org.argeo.ria.util.Element.getSingleNodeText(xmlNode, this.self(arguments).XPATH_EXEC_SPEC_NAME)\r
-                       });\r
-               }               \r
-       }       \r
-       \r
-});
\ No newline at end of file
diff --git a/org.argeo.slc.webapp/src/main/webapp/argeo-ria-lib/slc/class/org/argeo/slc/ria/execution/ExecutionModule.js b/org.argeo.slc.webapp/src/main/webapp/argeo-ria-lib/slc/class/org/argeo/slc/ria/execution/ExecutionModule.js
deleted file mode 100644 (file)
index bd5c4c8..0000000
+++ /dev/null
@@ -1,111 +0,0 @@
-/**\r
- * Wrapper for ExecutionModule server object\r
- */\r
-qx.Class.define("org.argeo.slc.ria.module.ExecutionModule", {\r
-       \r
-       extend : qx.core.Object,\r
-       \r
-       properties : {\r
-               /**\r
-                * The name of the module\r
-                */\r
-               name : {\r
-                       check : "String",\r
-                       init : ""\r
-               },\r
-               /**\r
-                * The version of the module\r
-                */\r
-               version : {\r
-                       check : "String",\r
-                       init : ""\r
-               },\r
-               /**\r
-                * All execution flows registered by their name\r
-                */\r
-               executionFlows : {\r
-                       check : "Map",\r
-                       init : {}\r
-               },\r
-               /**\r
-                * All execution specs registered by their name\r
-                */\r
-               executionSpecs : {\r
-                       check : "Map", \r
-                       init : {}\r
-               },\r
-               /**\r
-                * XML description (castor)\r
-                */\r
-               xmlNode : {\r
-                       apply : "_applyXmlNode"\r
-               }\r
-       },\r
-       \r
-       statics : {\r
-               XPATH_NAME : "slc:execution-module-descriptor/slc:name",\r
-               XPATH_VERSION : "slc:execution-module-descriptor/slc:version",\r
-               XPATH_EXECUTION_FLOWS : "slc:execution-module-descriptor/slc:executionFlows/slc:execution-flow-descriptor",\r
-               XPATH_EXECUTION_SPECS : "slc:execution-module-descriptor/slc:executionSpecs/slc:simple-execution-spec"\r
-       },\r
-       \r
-       construct : function(){},\r
-       \r
-       members : {\r
-               /**\r
-                * Add an execution flow to this module\r
-                * @param executionFlow {org.argeo.slc.ria.module.ExecutionFlow}\r
-                */\r
-               addExecutionFlow : function(executionFlow){\r
-                       var spec = this.getExecutionSpecByName(executionFlow.getExecutionSpecName());\r
-                       if(spec){\r
-                               executionFlow.setExecutionSpec(spec);\r
-                       }else{\r
-                               this.error("Warning, reference to an unknown ExecutionSpec : "+executionFlow.getExecutionSpecName());\r
-                       }\r
-                       this.getExecutionFlows()[executionFlow.getName()] = executionFlow;\r
-               },\r
-               \r
-               /**\r
-                * Add an execution Spec to this module\r
-                * @param executionSpec {org.argeo.slc.ria.module.ExecutionSpec}\r
-                */\r
-               addExecutionSpec : function(executionSpec){\r
-                       this.getExecutionSpecs()[executionSpec.getName()] = executionSpec;\r
-               },\r
-               \r
-               getExecutionSpecByName : function(name){\r
-                       return this.getExecutionSpecs()[name];\r
-               },\r
-               \r
-               getExecutionFlowByName : function(name){\r
-                       return this.getExecutionFlows()[name];\r
-               },\r
-               \r
-               /**\r
-                * An xml node containing the castor mapped description of this object\r
-                * @param xmlNode {Node}\r
-                */\r
-               _applyXmlNode : function(xmlNode){\r
-                       // Parse now\r
-                       this.setName(org.argeo.ria.util.Element.getSingleNodeText(xmlNode, this.self(arguments).XPATH_NAME));\r
-                       this.setVersion(org.argeo.ria.util.Element.getSingleNodeText(xmlNode, this.self(arguments).XPATH_VERSION));\r
-                       // Parse Specs first\r
-                       var specs = org.argeo.ria.util.Element.selectNodes(xmlNode, this.self(arguments).XPATH_EXECUTION_SPECS);\r
-                       for(i=0; i< specs.length;i++){\r
-                               var execSpec = new org.argeo.slc.ria.module.ExecutionSpec();\r
-                               execSpec.setXmlNode(specs[i]);\r
-                               this.addExecutionSpec(execSpec);\r
-                       }\r
-                       // Now parse Flows : to do AFTER specs\r
-                       var flows = org.argeo.ria.util.Element.selectNodes(xmlNode, this.self(arguments).XPATH_EXECUTION_FLOWS);\r
-                       for(var i=0;i<flows.length;i++){\r
-                               var execFlow = new org.argeo.slc.ria.module.ExecutionFlow();\r
-                               execFlow.setXmlNode(flows[i]);\r
-                               this.addExecutionFlow(execFlow);\r
-                       }\r
-               }\r
-               \r
-       }       \r
-       \r
-});
\ No newline at end of file
diff --git a/org.argeo.slc.webapp/src/main/webapp/argeo-ria-lib/slc/class/org/argeo/slc/ria/execution/ExecutionSpec.js b/org.argeo.slc.webapp/src/main/webapp/argeo-ria-lib/slc/class/org/argeo/slc/ria/execution/ExecutionSpec.js
deleted file mode 100644 (file)
index 6b430a3..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-/**\r
- * Wrapper for ExecutionSpec server object\r
- */\r
-qx.Class.define("org.argeo.slc.ria.module.ExecutionSpec", {\r
-       \r
-       extend : qx.core.Object,\r
-       \r
-       properties : {\r
-               /**\r
-                * Unique name of this spec \r
-                */\r
-               name : {\r
-                       check : "String",\r
-                       init : ""\r
-               },\r
-               /**\r
-                * Defined parameters \r
-                */\r
-               values : {\r
-                       check : "Map", \r
-                       init : {}\r
-               },\r
-               /**\r
-                * Castor representation of this object\r
-                */\r
-               xmlNode : {\r
-                       apply : "_applyXmlNode"                 \r
-               }\r
-       },\r
-       \r
-       statics : {\r
-               XPATH_NAME : "@name",\r
-               XPATH_VALUES : "slc:values"\r
-       },\r
-       \r
-       construct : function(){},\r
-       \r
-       members : {\r
-               /**\r
-                * Init the object from an XML representation\r
-                * @param xmlNode {Node} Castor representation of this object\r
-                */             \r
-               _applyXmlNode : function(xmlNode){\r
-                       // Parse now\r
-                       this.setName(org.argeo.ria.util.Element.getSingleNodeText(xmlNode, this.self(arguments).XPATH_NAME));\r
-               }               \r
-       }       \r
-       \r
-});
\ No newline at end of file
diff --git a/org.argeo.slc.webapp/src/main/webapp/argeo-ria-lib/slc/class/org/argeo/slc/ria/execution/Flow.js b/org.argeo.slc.webapp/src/main/webapp/argeo-ria-lib/slc/class/org/argeo/slc/ria/execution/Flow.js
new file mode 100644 (file)
index 0000000..4728fe9
--- /dev/null
@@ -0,0 +1,57 @@
+/**\r
+ * Wrapper for ExecutionFlow server object\r
+ */\r
+qx.Class.define("org.argeo.slc.ria.module.ExecutionFlow", {\r
+       \r
+       extend : qx.core.Object,\r
+       \r
+       properties : {\r
+               /**\r
+                * Name of this Execution Flow \r
+                */\r
+               name : {\r
+                       check : "String",\r
+                       init : ""\r
+               },\r
+               /**\r
+                * Name of the associated spec, to be found in the module \r
+                */\r
+               executionSpecName : {\r
+                       check : "String"\r
+               },\r
+               /**\r
+                * Reference the actual ExecutionSpec object\r
+                */\r
+               executionSpec : {\r
+                       check : "org.argeo.slc.ria.module.ExecutionSpec"\r
+               },\r
+               /**\r
+                * Castor representation of the object \r
+                */\r
+               xmlNode : {\r
+                       apply : "_applyXmlNode"\r
+               }\r
+       },\r
+       \r
+       statics : {\r
+               XPATH_NAME : "@name",\r
+               XPATH_EXEC_SPEC_NAME : "@executionSpec",\r
+               XPATH_VALUES : "slc:values"\r
+       },\r
+       \r
+       construct : function(){},\r
+       \r
+       members : {             \r
+               /**\r
+                * Init the object from an XML representation\r
+                * @param xmlNode {Node} Castor representation of this object\r
+                */\r
+               _applyXmlNode : function(xmlNode){\r
+                       this.set({\r
+                               name : org.argeo.ria.util.Element.getSingleNodeText(xmlNode, this.self(arguments).XPATH_NAME),\r
+                               executionSpecName : org.argeo.ria.util.Element.getSingleNodeText(xmlNode, this.self(arguments).XPATH_EXEC_SPEC_NAME)\r
+                       });\r
+               }               \r
+       }       \r
+       \r
+});
\ No newline at end of file
diff --git a/org.argeo.slc.webapp/src/main/webapp/argeo-ria-lib/slc/class/org/argeo/slc/ria/execution/Module.js b/org.argeo.slc.webapp/src/main/webapp/argeo-ria-lib/slc/class/org/argeo/slc/ria/execution/Module.js
new file mode 100644 (file)
index 0000000..bd5c4c8
--- /dev/null
@@ -0,0 +1,111 @@
+/**\r
+ * Wrapper for ExecutionModule server object\r
+ */\r
+qx.Class.define("org.argeo.slc.ria.module.ExecutionModule", {\r
+       \r
+       extend : qx.core.Object,\r
+       \r
+       properties : {\r
+               /**\r
+                * The name of the module\r
+                */\r
+               name : {\r
+                       check : "String",\r
+                       init : ""\r
+               },\r
+               /**\r
+                * The version of the module\r
+                */\r
+               version : {\r
+                       check : "String",\r
+                       init : ""\r
+               },\r
+               /**\r
+                * All execution flows registered by their name\r
+                */\r
+               executionFlows : {\r
+                       check : "Map",\r
+                       init : {}\r
+               },\r
+               /**\r
+                * All execution specs registered by their name\r
+                */\r
+               executionSpecs : {\r
+                       check : "Map", \r
+                       init : {}\r
+               },\r
+               /**\r
+                * XML description (castor)\r
+                */\r
+               xmlNode : {\r
+                       apply : "_applyXmlNode"\r
+               }\r
+       },\r
+       \r
+       statics : {\r
+               XPATH_NAME : "slc:execution-module-descriptor/slc:name",\r
+               XPATH_VERSION : "slc:execution-module-descriptor/slc:version",\r
+               XPATH_EXECUTION_FLOWS : "slc:execution-module-descriptor/slc:executionFlows/slc:execution-flow-descriptor",\r
+               XPATH_EXECUTION_SPECS : "slc:execution-module-descriptor/slc:executionSpecs/slc:simple-execution-spec"\r
+       },\r
+       \r
+       construct : function(){},\r
+       \r
+       members : {\r
+               /**\r
+                * Add an execution flow to this module\r
+                * @param executionFlow {org.argeo.slc.ria.module.ExecutionFlow}\r
+                */\r
+               addExecutionFlow : function(executionFlow){\r
+                       var spec = this.getExecutionSpecByName(executionFlow.getExecutionSpecName());\r
+                       if(spec){\r
+                               executionFlow.setExecutionSpec(spec);\r
+                       }else{\r
+                               this.error("Warning, reference to an unknown ExecutionSpec : "+executionFlow.getExecutionSpecName());\r
+                       }\r
+                       this.getExecutionFlows()[executionFlow.getName()] = executionFlow;\r
+               },\r
+               \r
+               /**\r
+                * Add an execution Spec to this module\r
+                * @param executionSpec {org.argeo.slc.ria.module.ExecutionSpec}\r
+                */\r
+               addExecutionSpec : function(executionSpec){\r
+                       this.getExecutionSpecs()[executionSpec.getName()] = executionSpec;\r
+               },\r
+               \r
+               getExecutionSpecByName : function(name){\r
+                       return this.getExecutionSpecs()[name];\r
+               },\r
+               \r
+               getExecutionFlowByName : function(name){\r
+                       return this.getExecutionFlows()[name];\r
+               },\r
+               \r
+               /**\r
+                * An xml node containing the castor mapped description of this object\r
+                * @param xmlNode {Node}\r
+                */\r
+               _applyXmlNode : function(xmlNode){\r
+                       // Parse now\r
+                       this.setName(org.argeo.ria.util.Element.getSingleNodeText(xmlNode, this.self(arguments).XPATH_NAME));\r
+                       this.setVersion(org.argeo.ria.util.Element.getSingleNodeText(xmlNode, this.self(arguments).XPATH_VERSION));\r
+                       // Parse Specs first\r
+                       var specs = org.argeo.ria.util.Element.selectNodes(xmlNode, this.self(arguments).XPATH_EXECUTION_SPECS);\r
+                       for(i=0; i< specs.length;i++){\r
+                               var execSpec = new org.argeo.slc.ria.module.ExecutionSpec();\r
+                               execSpec.setXmlNode(specs[i]);\r
+                               this.addExecutionSpec(execSpec);\r
+                       }\r
+                       // Now parse Flows : to do AFTER specs\r
+                       var flows = org.argeo.ria.util.Element.selectNodes(xmlNode, this.self(arguments).XPATH_EXECUTION_FLOWS);\r
+                       for(var i=0;i<flows.length;i++){\r
+                               var execFlow = new org.argeo.slc.ria.module.ExecutionFlow();\r
+                               execFlow.setXmlNode(flows[i]);\r
+                               this.addExecutionFlow(execFlow);\r
+                       }\r
+               }\r
+               \r
+       }       \r
+       \r
+});
\ No newline at end of file
diff --git a/org.argeo.slc.webapp/src/main/webapp/argeo-ria-lib/slc/class/org/argeo/slc/ria/execution/Spec.js b/org.argeo.slc.webapp/src/main/webapp/argeo-ria-lib/slc/class/org/argeo/slc/ria/execution/Spec.js
new file mode 100644 (file)
index 0000000..6b430a3
--- /dev/null
@@ -0,0 +1,49 @@
+/**\r
+ * Wrapper for ExecutionSpec server object\r
+ */\r
+qx.Class.define("org.argeo.slc.ria.module.ExecutionSpec", {\r
+       \r
+       extend : qx.core.Object,\r
+       \r
+       properties : {\r
+               /**\r
+                * Unique name of this spec \r
+                */\r
+               name : {\r
+                       check : "String",\r
+                       init : ""\r
+               },\r
+               /**\r
+                * Defined parameters \r
+                */\r
+               values : {\r
+                       check : "Map", \r
+                       init : {}\r
+               },\r
+               /**\r
+                * Castor representation of this object\r
+                */\r
+               xmlNode : {\r
+                       apply : "_applyXmlNode"                 \r
+               }\r
+       },\r
+       \r
+       statics : {\r
+               XPATH_NAME : "@name",\r
+               XPATH_VALUES : "slc:values"\r
+       },\r
+       \r
+       construct : function(){},\r
+       \r
+       members : {\r
+               /**\r
+                * Init the object from an XML representation\r
+                * @param xmlNode {Node} Castor representation of this object\r
+                */             \r
+               _applyXmlNode : function(xmlNode){\r
+                       // Parse now\r
+                       this.setName(org.argeo.ria.util.Element.getSingleNodeText(xmlNode, this.self(arguments).XPATH_NAME));\r
+               }               \r
+       }       \r
+       \r
+});
\ No newline at end of file