r1336 - xwiki/trunk/src/main/java/com/xpn/xwiki/doc

Jeremi Joslin jeremi at users.forge.objectweb.org
Wed Sep 20 16:52:26 CEST 2006


Author: jeremi
Date: 2006-09-20 16:52:25 +0200 (Wed, 20 Sep 2006)
New Revision: 1336

Modified:
   xwiki/trunk/src/main/java/com/xpn/xwiki/doc/XWikiDocument.java
Log:
deprecate getWeb and add getSpace

Modified: xwiki/trunk/src/main/java/com/xpn/xwiki/doc/XWikiDocument.java
===================================================================
--- xwiki/trunk/src/main/java/com/xpn/xwiki/doc/XWikiDocument.java	2006-09-20 13:50:20 UTC (rev 1335)
+++ xwiki/trunk/src/main/java/com/xpn/xwiki/doc/XWikiDocument.java	2006-09-20 14:52:25 UTC (rev 1336)
@@ -180,14 +180,34 @@
         this.id = id;
     }
 
+
+    public String getSpace() {
+            return web;
+        }
+
+    public void setSpace(String space) {
+        this.web = space;
+    }
+
+    /**
+     *
+     *
+     * @deprecated use {@link #getSpace()} instead of this function
+     * @return the name of the space of the document
+     */
     public String getWeb() {
         return web;
     }
 
+    /**
+     * @deprecated use {@link #setSpace(String)} instead of this function
+     * @param web
+     */
     public void setWeb(String web) {
         this.web = web;
     }
 
+
     public String getVersion() {
         return getRCSVersion().toString();
     }





More information about the Xwiki-notifications mailing list