summaryrefslogtreecommitdiffstats
path: root/sandbox/slaws/modules/domain-rework/src/main/resources/webroot/domain.html
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/slaws/modules/domain-rework/src/main/resources/webroot/domain.html')
-rw-r--r--sandbox/slaws/modules/domain-rework/src/main/resources/webroot/domain.html105
1 files changed, 105 insertions, 0 deletions
diff --git a/sandbox/slaws/modules/domain-rework/src/main/resources/webroot/domain.html b/sandbox/slaws/modules/domain-rework/src/main/resources/webroot/domain.html
new file mode 100644
index 0000000000..a75560ff92
--- /dev/null
+++ b/sandbox/slaws/modules/domain-rework/src/main/resources/webroot/domain.html
@@ -0,0 +1,105 @@
+<html>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ -->
+<head>
+<title>Apache Tuscany Domain</TITLE>
+
+<!--script type="text/javascript" src="dojo/dojo/dojo.js">
+</script>
+<script type="text/javascript" src="dojo/dijit/dijit.js">
+</script>
+
+<script type="text/javascript">
+ dojo.require("dojo.data.ItemFileReadStore");
+ dojo.require("dijit.Tree");
+</script-->
+
+<script type="text/javascript" src="domain.js">
+</script>
+
+<script language="JavaScript">
+
+ //@Reference
+ var domainService = new Reference("domainService");
+
+ var contributions;
+
+ function anItemType(name, type){
+ this.name = name;
+ this.type = type;
+ }
+
+ function getContributions() {
+ domainService.getContributions(handleGetContributions);
+ }
+
+ function handleGetContributions(result) {
+ var text = "";
+
+ text = text + "<H2>Contributions</H2>";
+
+ for (var i in result.list){
+ var contribution = result.list[i];
+
+ text = text + contribution.name + " " + contribution.URI + "<p/>";
+ }
+
+ document.getElementById('contributions').innerHTML=text;
+
+ /*
+ var data = {data: { label: 'name',
+ identifier: 'name',
+ items: [] } };
+
+ for (var i in result.nodes.list){
+ var node = result.nodes.list[i];
+
+ for (var j in node.leaves.list){
+ var leaf = node.leaves.list[j];
+
+ var item = new anItemType(leaf.value, node.type);
+ data.data.items[i] = item;
+ }
+ }
+
+
+ var store=new dojo.data.ItemFileReadStore(data);
+ var tree=new dijit.Tree({store:store,
+ labelAttr:'name',
+ typeAttr:'type',
+ query:{ type: "contribution" }}, dojo.byId("contributions"));
+ tree.startup();
+
+ */
+ }
+
+
+ </script>
+
+ <link rel="stylesheet" type="text/css" href="style.css" />
+</head>
+
+<body onload="getContributions()">
+
+<h1 id="top">Apache Tuscany Domain</h1>
+
+<div id="contributions"></div>
+
+</body>
+</html>