[xwiki-users] New Javadoc API Reference

2015-12-09 Thread gervwyk
I there a new JavaDoc API reference availible somewhere? I'm currently using version 5: http://maven.xwiki.org/site/docs/xwiki-javadoc-5.0.x/ However I'm finding it really outdated on methods such as xwiki.checkAccess() and xwiki.getSpaces() I'm not finding my way to it on the API reference

Re: [xwiki-users] spaces for which the current user has access in a java component

2015-12-09 Thread gervwyk
Ok. So what I'm trying to achieve is the following: We have spaces which has user (view/edit) groups and an admin group for that space. I'm currently writing a rights admin tool which shows the admin group users the spaces which they are the admin of, and they can then select a space to which

[xwiki-users] spaces for which the current user has access in a java component

2015-12-08 Thread gervwyk
How do I get all the spaces for which the current user has access in a java component? I have the following: List lstSpaces = new ArrayList(); XWikiContext xcontext = this.xwikiContextProvider.get(); XWiki xwiki = xcontext.getWiki(); lstSpaces = xwiki.getSpaces(xcontext); Although this

[xwiki-users] Adding users to a user list form a java component

2015-12-11 Thread gervwyk
Good day. I'm trying to add users to a users list within a object. After I have instanciated the object on the document which I want to ammend, how do I "set" and "get" the user list property in a java component? I have: BaseObject domainObject = doc.getXObject(referenceClass);

[xwiki-users] Xwiki html parsing of user list

2015-12-10 Thread gervwyk
I'm creating a form but I prefer using HTML and bootstrap rather than only velocity syntax. I have the following problem: I want to insert user selection list into the form. By doing the following: {{velocity}} {{html

Re: [xwiki-users] Create spaces and page in toplevel space via Java component

2015-11-25 Thread gervwyk
Thanks this was exactly what I was looking for. The new structure did cause some confusion. The "WebHome" concept was confusing until I read the links. Thank for clarifying that. -Gerrie -- View this message in context:

[xwiki-users] Create spaces and page in toplevel space via Java component

2015-11-25 Thread gervwyk
Hello. How would I create a new space under Main or the toplevel entity from a java component. So far I'm doing this, but not sure.. DocumentReference docref = new DocumentReference(serverName,pageSpace,pageName); if(xwiki.exists( docref, xcontext)){ //skip create do other stuff }else{

[xwiki-users] Get all children from current document in Java component

2015-12-01 Thread gervwyk
Hello I'm trying to get all the documents that list the current document as the perant using: List childDocs = doc.getChildrenReferences(xcontext); where doc is the parent XWikiDocument. However the function only return an empty list, althoug there is documents in the space. If I print

[xwiki-users] calling a java component from JavaScriptExtension

2016-01-28 Thread gervwyk
Is it possible to call a java component from a JavaScriptExtension? like this: In javascript: require(['jquery'], function ($) { $('#ToJava').click(function(){ var returnValue = $services.mycomponent.mymethod( someNumber ); // use return value }); }); In java:

Re: [xwiki-users] calling a java component from JavaScriptExtension

2016-01-28 Thread gervwyk
e underlying architecture differs greatly. Keep up the good work Gerrie van wyk On Thu, Jan 28, 2016 at 11:56 AM, Jean SIMARD [via XWiki] < ml-node+s475771n7597706...@n2.nabble.com> wrote: > Dear gervwyk, > > From what I understand of components and Javascript, it will not be > p

[xwiki-users] XWikiRights for groups on page and children

2016-01-25 Thread gervwyk
Good day. I'm trying to write a java component to set rights to a space and the space children. Normally, the user would set this on the space when clicking on administer page>users and groups>Rights: page and children, where the user can set access rights for a group to effect the space and its

[xwiki-users] Returning JSON data from a java component

2016-01-27 Thread gervwyk
What is the best way to get JSON data from a java component. In my java component I'm compiling JSONObjects and JSONArrays, I would like to return this data to my velocity script in JSON format, is this possible? something like: {{velocity wiki="false"}} #if("$!request.outputSyntax" !=

[xwiki-users] Server SQL error

2016-02-21 Thread gervwyk
After importing a large number of spaces in my wiki, my server through the following error when browsing which causes browsing delays. 22016-02-19 17:11:04,982 [http://192.168.0.35:8080/xwiki/bin/view/SDomain/HW_DEV/0_LIB/Components-CommercialPC/Library+Description/] WARN