Author: sdumitriu
Date: 2008-02-20 22:48:54 +0100 (Wed, 20 Feb 2008)
New Revision: 7891

Modified:
   
xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/plugin/PluginApi.java
Log:
XWIKI-2136: PluginAPI#getPlugin should always require programming rights, and 
provide an getInternalPlugin methods for in-java usage
Fixed.


Modified: 
xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/plugin/PluginApi.java
===================================================================
--- 
xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/plugin/PluginApi.java
      2008-02-20 21:45:47 UTC (rev 7890)
+++ 
xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/plugin/PluginApi.java
      2008-02-20 21:48:54 UTC (rev 7891)
@@ -62,6 +62,20 @@
     }
 
     /**
+     * Return the inner plugin object. This method is only for the plugin 
API's internal use, and
+     * should not be exposed to scripting languages. It is an XWiki practice 
to expose all the
+     * functionality using an API, and allow access to the internal objects 
only to users with
+     * Programming Rights.
+     * 
+     * @return The wrapped plugin object.
+     * @since 1.3RC1
+     */
+    protected XWikiPluginInterface getInternalPlugin()
+    {
+        return plugin;
+    }
+
+    /**
      * Set the inner plugin object.
      * 
      * @param plugin The wrapped plugin object.

_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications

Reply via email to