<
From version < 50.3 >
edited by Vincent Massol
on 2016/09/17
To version < 50.4 >
edited by Vincent Massol
on 2017/08/01
>
Change comment: Replace "XWiki Enterprise" --> "XWiki"

Summary

Details

Page properties
Content
... ... @@ -6,11 +6,11 @@
6 6  
7 7  XWiki integrates [[jsr-223>>http://jcp.org/en/jsr/detail?id=223]] scripting. You can script using several available languages by using the generic [[Script Macro>>extensions:Extension.Script Macro]] or one of following specific macros:
8 8  
9 -* [[Velocity Macro>>extensions:Extension.Velocity Macro]] (installed by default in XWiki Enterprise)
10 -* [[Groovy Macro>>extensions:Extension.Groovy Macro]] (installed by default in XWiki Enterprise)
11 -* [[Python Macro>>extensions:Extension.Python Macro]] (installed by default in XWiki Enterprise)
12 -* [[Ruby Macro>>extensions:Extension.Ruby Macro]] (not installed by default in XWiki Enterprise)
13 -* [[PHP Macro>>extensions:Extension.PHP Macro]] (not installed by default in XWiki Enterprise)
9 +* [[Velocity Macro>>extensions:Extension.Velocity Macro]] (installed by default in XWiki)
10 +* [[Groovy Macro>>extensions:Extension.Groovy Macro]] (installed by default in XWiki)
11 +* [[Python Macro>>extensions:Extension.Python Macro]] (installed by default in XWiki)
12 +* [[Ruby Macro>>extensions:Extension.Ruby Macro]] (not installed by default in XWiki)
13 +* [[PHP Macro>>extensions:Extension.PHP Macro]] (not installed by default in XWiki)
14 14  
15 15  = Permissions =
16 16  
... ... @@ -42,7 +42,7 @@
42 42  println("Your username is " + xcontext.getUser() + " welcome to the site.");
43 43  {{/groovy}}
44 44  {{/code}}
45 -)))
45 +)))
46 46  * It doesn't require special permissions (other than Script Permission starting with XWiki 7.2M1) since it runs in a Sandbox, with access to only a few safe objects, and each API call will check the rights configured in the wiki, forbidding access to resources or actions that the current user shouldn't be allowed to retrieve/perform. Other scripting language require the user that wrote the script to have Programming Rights to execute them, but except this initial precondition, access is granted to all the resources on the server. Note that starting with XWiki 4.1 we've introduced a [[Sandbox for Groovy>>platform:AdminGuide.Configuration#HSecuringGroovyScripts]] too, but it's still in an early stage and is currently very restrictive.
47 47  
48 48  Being a templating engine, Velocity doesn't offer many means of structuring code. In fact, there's only one useful directive in this regard, ###macro##. However, because it is a templating engine, its syntax is much simpler and easier to understand by non-developers, which means that it's accessible to a wider range of users, without a serious background in programming.
... ... @@ -83,7 +83,7 @@
83 83  * The XWiki utils: **##util##** (this is deprecated)
84 84  * Various [[Script Services>>extensions:Extension.Script Module]]: **##services##**
85 85  
86 -See [[Scripting Reference Documentation>>http://platform.xwiki.org/xwiki/bin/view/SRD/Navigation?xpage=embed]] for a complete list.
86 +See [[Scripting Reference Documentation>>SRD.Navigation]] for a complete list.
87 87  
88 88  == [[XWiki Component>>extensions:Extension.Component Module]] Access ==
89 89  

Get Connected