[Yanel-commits] rev 33135 -
public/yanel/trunk/src/impl/java/org/wyona/yanel/impl/navigation
michi at wyona.com
michi at wyona.com
Mon Mar 10 09:57:35 CET 2008
Author: michi
Date: 2008-03-10 09:57:34 +0100 (Mon, 10 Mar 2008)
New Revision: 33135
Added:
public/yanel/trunk/src/impl/java/org/wyona/yanel/impl/navigation/SitetreeDOMImpl.java
Log:
DOM sitetree implementation started
Added: public/yanel/trunk/src/impl/java/org/wyona/yanel/impl/navigation/SitetreeDOMImpl.java
===================================================================
--- public/yanel/trunk/src/impl/java/org/wyona/yanel/impl/navigation/SitetreeDOMImpl.java (rev 0)
+++ public/yanel/trunk/src/impl/java/org/wyona/yanel/impl/navigation/SitetreeDOMImpl.java 2008-03-10 08:57:34 UTC (rev 33135)
@@ -0,0 +1,77 @@
+/*
+ * Copyright 2008 Wyona
+ *
+ * Licensed 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.wyona.org/licenses/APACHE-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.
+ */
+
+package org.wyona.yanel.impl.navigation;
+
+import org.wyona.yanel.core.Path;
+import org.wyona.yanel.core.map.Realm;
+import org.wyona.yanel.core.map.RealmConfigPathResolver;
+import org.wyona.yanel.core.navigation.Node;
+import org.wyona.yanel.core.navigation.Sitetree;
+
+import org.apache.log4j.Logger;
+
+import org.w3c.dom.Document;
+
+/**
+ * Based on the resource configuration repository and data repository of each realm
+ */
+public class SitetreeDOMImpl implements Sitetree {
+
+ private static Logger log = Logger.getLogger(SitetreeDOMImpl.class);
+
+ private Document sitetreeDoc;
+ private String src;
+
+ /**
+ * @see
+ */
+ public void init(Document configDoc, RealmConfigPathResolver resolver) {
+ log.warn("TODO: Reading of configDoc not implemented yet!");
+ }
+
+ /**
+ *
+ */
+ public Node getSitetreeNode() {
+ return null;
+ }
+
+ /**
+ *
+ */
+ public Node getNode(Realm realm, String path) {
+ return null;
+/*
+ org.wyona.yarep.core.Repository resConfigRepo = null;
+ org.wyona.yarep.core.Repository dataRepo = null;
+ try {
+ resConfigRepo = realm.getRTIRepository();
+ dataRepo = realm.getRepository();
+ } catch(Exception e) {
+ log.error(e);
+ }
+ return new NodeResConfigAndDataRepoImpl(resConfigRepo, dataRepo, path);
+*/
+ }
+
+ /**
+ *
+ */
+ public Node createNode(String name) {
+ return null;
+ }
+}
More information about the Yanel-commits
mailing list