[Yanel-commits] rev 22167 - public/yanel/trunk/src/contributions/resources/wiki/src/java/org/wyona/yanel/impl/resources

michi at wyona.com michi at wyona.com
Thu Jan 25 15:52:06 CET 2007


Author: michi
Date: 2007-01-25 15:52:05 +0100 (Thu, 25 Jan 2007)
New Revision: 22167

Modified:
   public/yanel/trunk/src/contributions/resources/wiki/src/java/org/wyona/yanel/impl/resources/WikiResource.java
Log:
modifiable implemented

Modified: public/yanel/trunk/src/contributions/resources/wiki/src/java/org/wyona/yanel/impl/resources/WikiResource.java
===================================================================
--- public/yanel/trunk/src/contributions/resources/wiki/src/java/org/wyona/yanel/impl/resources/WikiResource.java	2007-01-25 14:43:28 UTC (rev 22166)
+++ public/yanel/trunk/src/contributions/resources/wiki/src/java/org/wyona/yanel/impl/resources/WikiResource.java	2007-01-25 14:52:05 UTC (rev 22167)
@@ -41,8 +41,9 @@
 import org.wyona.yanel.core.Path;
 import org.wyona.yanel.core.Resource;
 import org.wyona.yanel.core.ResourceConfiguration;
+import org.wyona.yanel.core.api.attributes.CreatableV2;
+import org.wyona.yanel.core.api.attributes.ModifiableV2;
 import org.wyona.yanel.core.api.attributes.ViewableV1;
-import org.wyona.yanel.core.api.attributes.CreatableV2;
 import org.wyona.yanel.core.attributes.viewable.View;
 import org.wyona.yanel.core.attributes.viewable.ViewDescriptor;
 import org.wyona.yanel.core.transformation.I18nTransformer;
@@ -55,7 +56,7 @@
 /**
  * 
  */
-public class WikiResource extends Resource implements ViewableV1, CreatableV2 {
+public class WikiResource extends Resource implements ViewableV1, CreatableV2, ModifiableV2 {
 
     private static Category log = Category.getInstance(WikiResource.class);
     private final String XML_MIME_TYPE = "application/xml";
@@ -370,4 +371,58 @@
         map.put("mime-type", "application/xhtml+xml");
         return map;
     }
+
+    /**
+     *
+     */
+    public boolean delete() {
+        log.warn("No implemented yet!");
+        return false;
+    }
+
+    /**
+     *
+     */
+    public InputStream getInputStream() {
+        log.warn("No implemented yet!");
+        return null;
+    }
+
+    /**
+     *
+     */
+    public java.io.Reader getReader() {
+        log.warn("No implemented yet!");
+        return null;
+    }
+
+    /**
+     *
+     */
+    public OutputStream getOutputStream() throws Exception {
+        return getRealm().getRepository().getOutputStream(getPath());
+    }
+
+    /**
+     *
+     */
+    public Writer getWriter() {
+        log.warn("No implemented yet!");
+        return null;
+    }
+
+    /**
+     *
+     */
+    public long getLastModified() {
+        log.warn("No implemented yet!");
+        return -1;
+    }
+
+    /**
+     *
+     */
+    public void write(InputStream in) {
+        log.warn("No implemented yet!");
+    }
 }




More information about the Yanel-commits mailing list