Thanks, Thomas!
This javadoc contains everything besides bindings. Bindings in
looks
fine for me - they are grouped exactly one can need it in velocity
programming, but only up to 5.x
Wed, 27 Aug 2014 11:21:01 +0200 от Thomas Mortagne
<thomas.mortagne(a)xwiki.com>om>:
A good way to have always up to date javadoc is by using
. See
.
On Mon, Aug 25, 2014 at 10:29 AM, Marius Dumitru Florea
<mariusdumitru.florea(a)xwiki.com> wrote:
On Fri, Aug 22, 2014 at 2:16 PM, Dmitry Bakbardin
<haru_mamburu(a)mail.ru>
wrote:
> Hi!
>
> Marius,
http://platform.xwiki.org/xwiki/bin/view/SRD/Navigation
> contains
> documentation up to 5.x. Where one can find 6.x documentation in the
> same
> way?
Indeed, the SRD hasn't been updated in a while. There's a document
explaining how to update it
http://platform.xwiki.org/xwiki/bin/view/SRD/HowToBuild but I guess no
one had the time to do it recently. In any case, most of the 5.x API
should be present in 6.x.
Thanks,
Marius
>
>
> Fri, 22 Aug 2014 11:16:44 +0300 от Marius Dumitru Florea
> <mariusdumitru.florea(a)xwiki.com>om>:
>>On Wed, Aug 20, 2014 at 9:11 PM, Leonardo Kodato
>>< leonardokodato(a)gmail.com > wrote:
>>> Hello everyone.
>>>
>>> I'm currently developing my skills with velocity to be able to make
>>> more
>>> advanced applications.
>>> Today what I'm trying to do is set some rights based on a modified
>>> version
>>> of FAQ Application. I've added just a Group field, so the user can
>>> direct
>>> his question to one of our departaments/groups.
>>>
>>> What I'm trying to accomplish is: A user creates a FAQ question, but
>>> only
>>> himself and a Group he chooses are able to view and edit the page.
>>>
>>> #set ($mydoc = $xwiki.getDocument("FAQ.$doc.name"))
>>> #set ($rightsObject = $mydoc.getObject("XWiki.XWikiRights", true))
>>
>>> #set ($result = $rightsObject.set("groups",
$doc.display("group",
>>> "view")))
>>
>>In
http://platform.xwiki.org/xwiki/bin/view/DevGuide/ there is a link
>>to "Scripting Reference Documentation". Select $doc and look for
>>getValue.
>>
>>Hope this helps,
>>Marius
>>
>>> #set ($result = $rightsObject.set("levels", "edit"))
>>> #set ($result = $rightsObject.set("users", ""))
>>> #set ($result = $rightsObject.set("allow", 1))
>>> $mydoc.save()
>>>
>>> Problem: The object created with doc.display("group") gets the
group
>>> with
>>> the all the wiki markup, when it should be getting only the text
>>> "Sales".
>>>
>>> What I get: {{html clean="false" wiki="false"}} <ul
class="users">...
>>> What I want: Sales
>>>
>>> I can easily set the user permission. The big problem is setting the
>>> group.
>>>
>>> Can you help me with this?
>>>
>>> Thanks.
>>> Att,
>>> Leonardo.
>>> _______________________________________________
>>> users mailing list
>>> users(a)xwiki.org
>>>
http://lists.xwiki.org/mailman/listinfo/users
>>_______________________________________________
>>users mailing list
>>users(a)xwiki.org
>>http://lists.xwiki.org/mailman/listinfo/users
>
>
> Kind regards,
>
> Dmitry
> _______________________________________________
> users mailing list
> users(a)xwiki.org
>
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users