On Feb 3, 2011, at 5:19 AM, sdumitriu (SVN) wrote:
Author: sdumitriu
Date: 2011-02-03 05:19:19 +0100 (Thu, 03 Feb 2011)
New Revision: 34389
Modified:
platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/XWiki.java
platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/doc/XWikiDocument.java
Log:
[misc] Introduced constants for the default wiki, space and homepage
Modified: platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/XWiki.java
===================================================================
--- platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/XWiki.java 2011-02-03
02:51:43 UTC (rev 34388)
+++ platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/XWiki.java 2011-02-03
04:19:19 UTC (rev 34389)
@@ -200,12 +200,24 @@
public class XWiki implements XWikiDocChangeNotificationInterface, EventListener
{
+ /** Name of the default wiki. */
+ public static final String DEFAULT_MAIN_WIKI = "xwiki";
+
+ /** Name of the default home space. */
+ public static final String DEFAULT_HOME_SPACE = "Main";
+
+ /** Name of the default system space. */
+ public static final String SYSTEM_SPACE = "XWiki";
+
+ /** Name of the default space homepage. */
+ public static final String DEFAULT_SPACE_HOMEPAGE = "WebHome";
+
We need to remove these constants and use EntityReferenceValueProvider instead (which also
has the ability to configure them through configuration).
Thanks
-Vincent
[snip]