Dear All,
I have some questions about the LocalDataStorage implementation and Page resources display.
1. The current LocalDataStorage implementation uses xmlrpc model and the cache structure looks like the following:
index
|-space
|-page
As the xmlrpc model is being replaced by org.xwiki.eclipse.model package, do we need to modify the local storage as well, e.g., adding a folder to store various wikis?
I am not very clear about how local storage works. My rough understanding is like this:
(1) When user accesses a page, local cache stores it.
(2) Whenever user makes a change in the editor, store it in the local cache
(3) when user performs a submission, synchronize the content
2. I have asked how to display page information before, the suggestion from Eduard is the following:
------ WebHome (PageSummary)
-------- Attachments
---------- dog.png
---------- spreadsheet.xls
-------- XWiki.XWikiComments
---------- 0 : Administrator ('author' property value)
---------- 1 : Guest
---------- 2 : Administrator
-------- XWiki.MyClass
---------- 0 : etc.
---------- 1 : etc.
However, I am not sure what else needs to be included? e.g, annotations, versions, history, translations?
Once confirmed, I will start working on the page content.
Best regards
Jun Han
Hi, these days I need to implement the rest services for getting suggestion
results for link autosuggestion. In my design, I think the suggestion
results should be filtered and ranked by the following conditions.
(for example user types "[[mytest" in page "xwiki:main.newpage")
First [[ is triggered, when user keep typing, the page and attachment
suggestion results should be filtered and ranked by the following rules:
1. Prefix matched (only for page name and attachment name)
- The pages which are in the same wiki and space of the document current
edited.( Prior A)
- The pages which are in the same wiki but different space of the
document current edited;(Prior B)
- The pages which are in different wiki and different space of the
document current edited; (Prior C);
2. Partial matched (only for page name and attachment name)
- The pages which are in the same wiki and space of the document current
edited.( Prior C)
- The pages which are in the same wiki but different space of the
document current edited;(Prior D)
- The pages which are in different wiki and different space of the
document current edited; (Prior E)
3. If no page and attachment matches the above two rules, the suggestion
box will be disappeared.(eclipse way)
However, sometimes user might insert the space name too, for example, user
will type "[[Main", following the rule 1 and rule 2, the pages begins with
"Main" will be first retrieved as the suggestion results untill user types
"." after "Main", the suggestion result will be retreved from the pages
under the space "Main" only. Filters still obey the above three rules.
And also when user types "attach:", the suggestion result will be retrieved
the attachments only following the above three rules.
And if the link is under the attachment context, when "@" is typed, the
attachments only will be retrieved following the above three rules.
In order to do this, I investigated the rest services already existed(
http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI), but I
found none is perfect suitable for my needs. So I talk with Marius, he
suggested me to use the existed services which are closed to my needs first,
and then write the perfect one later.
However, I only found the rest service:/wikis/{wiki}/search is the most
closed one for the pages suggestion to my needs, there is no attachment
search rest service for attachment suggestion, Marius adviced me to use "
http://localhost:8080/xwiki/bin/get/XWiki/SuggestLuceneService?outputSyntax…"
instead, but I found the search result is in xml format(not json), and also
the information of the results got from SuggestLuceneService is limit.
I have read the document of how to write custom rest service, but the
information is limit, any one can guide me to run an helloworld?
--
Best wishes,
许凌志(Jame Xu)
MOE KLINNS Lab and SKLMS Lab, Xi'an Jiaotong University
Department of Computer Science and Technology, Xi’an Jiaotong University
Hi Dev Team,
Please help me to create virtual xwiki on localhost environment. I have
installed Xwiki EM and administrator application xar file.
I am not able to create virtual wiiki as mentioned in
http://manager.xwiki.org/xwiki/bin/view/AdminGuide/CreateNewWiki
I am not able to see the similar page.
Please let me know if I am missing anything else
Also I wanted to create the restful service to create virtual wiki from
remote clients.
Thanks
Karamjit.
Dear All:
Currently I am trying to create a page with objects via the RESTful
interface. We have currently been able to create the page a page with no
objects with little to know problems via The REST interface. The problem
lies in creating an object of a defined class on a page. We have attempted
to use the schema provided by the XWiki Team in the documentation, but have
had no real success.
The main questions are as follows.
. Can we create a page, with objects on them, in a single PUT event?
. And what information is mandatory in the XML, to create a object
on a page either at the same time, or to add an object to an existing page?
Thank you for your time and your response.
Martin Bryant
Modus Operandi
Apprentice Software Engineer
Hi Team,
I am working on user registration restful web service for xwiki. I looked
inside the code and found that XWikiContext instance is required which
further contains the XWiki and XWikiRequest instances. for
example XWiki.createUser(XWikiContext context)
Can some please provide information about How to achieve similar in Restful
web service implementation like createUser(XWikiContext context)?
Its urgent, Please help me.
Thanks
Karamjit.
Hello XWiki-devs,
maybe this forum is better than curriki-dev.
In short: how can I boost the size of the cache of objects held by hibernate?
thanks in advance
paul
> as you know curriki.org is somewhat of a fat server serving really many requests.
>
> One symptom we are seeing on the production machine only, almost, is:
> xwiki.getPlugin("curriki").fetchUserGroups().
> that sometimes takes more than 1 minute and sometimes much less, all for the same user.
> On the development machine it takes time with users with a lot of groups only when the hibernate cache is flushed.
>
> My interpretation is that this method is fetching the group and probably a lot more. My answer would be to go low-level.
>
> But another answer would be to ensure that the hibernate cache is big enough so that all these stay in memory. Making this possible would also speed up a huge amount of other things.
>
> Are we talking of the file ehcache.xml's attribute:
> maxElementsInMemory="10000"
> ?
> I sure could raise this by a factor 10 if true.
>
> thanks in advance
>
> paul
Hi Team,
I need to implement restful web service for xwiki user creation and
aothorization. I have downloaded the code from SVN but unable to build the
xwiki source code from eclipse. I did not find any document related to this
in manual. Could you please help me on this and let me know which module I
should download for restful web service customization.
Its very urgent as I am stuck here.
Thanks
Karamjit
Hi Team,
I am working on extending the xwiki restful web service functionality to add
more servers like Managing Users, Managing xwiki spaces, blogs and documents
etc. I am not sure which module contains the business logic for them.
Can xwiki team please provide some useful information on this so that I can
further extends it.
Thanks
Karamjit.
Hi community,
If anyone is curious, a demo installation of the current work on the Wiki3.0
[1] research project is available at http://wiki30-demo.xwiki.com
With the Workspaces feature, you can register a user and create workspaces,
invite/accept other users and generally manage your workspace.
Interesting sections (or rather a list of features) are:
= In the main wiki =
- Create new Workspace (Add menu or homepage button)
- Workspace Directory (Top menu, under 'Workspace')
- 'Workspaces' section in user profile
- User Directory improvements
- Join/Leave/Request membership/Accept invitation to join a workspace
(Workspace Directory or homepage of a workspace)
- Workspace search suggestions (top-right search box)
= In a workspace =
- Dashboard
- Workspace information panel (right panels)
- Main wiki link (Top menu, under 'Workspace')
- Delete workspace (Top menu, under Workspace, for owner)
- Workspace Configuration section (Administration, 'Configuration' category)
- Workspace Users section; Accept membership requests or invite users
(Administration, 'Users & Groups' category)
- User registration redirecting to main wiki (Top-Right register link)
- Removed local XWiki.Admin user
Besides the Workspaces feature, the Real-Time editor is also available for a
quick test. You can access it by editing a page in "Real Time" edit mode.
You can't miss it :)
For quick tests, you can edit the same page in 2 browser windows and see
changes in one window triggering an update in the second one. It also works
with multiple users (obviously) and allows other to join in the editing
session.
For now it's working real time only for wiki code. Work on the WYSIWYG
version has already started.
Please feel free to report any bugs or suggestions here or (preferably) at
http://jira.xwiki.org/jira/browse/WIKITHREEDOTO and do be aware that it's
still work in progress.
Thanks,
Eduard
-----------------
References:
[1] https://wiki30.xwikisas.com/
Hi,
I was thinking about what tips and tricks XWiki has, things that are not
really that well documented but that are very productive and fun.
Would be nice to have such an inspiring thread from which we could learn a
lot and, why not, have fun experimenting :)
If the thread is really useful we could also integrate these tips more
clearly in our documentation or also we could have a tips panel inside XWiki
Enterprise, for beginners/intermediate users.
The tip structure could be:
*Title: **
Level: **
Target: *
*Description:*
Thanks,
Caty*
*