[xwiki-users] How to Export user preferences

2014-01-13 Thread Silvio Mink
Good morning to all XWiki Users,

i am installing a new xwiki instance (migration from an older instance) and
want to export/import user preferences like the watchlists, how can I do
that?


Thanks in advance
and best Regards

Silvio 



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/How-to-Export-user-preferences-tp7588624.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Wiki application templates error (SOLVED?)

2014-01-13 Thread Jaume Giribert Peraire
Hi everyone,

I finally solved the issue with a workaround. DB was ok (all tables where
using InnoDB) so I simply tried to delete all the pages that triggered the
SQL error.

Following is the list of conflicting pages:

AnnotationCode-Translations
Main-SOLRTranslations
Main-Welcome
Sandbox-Webhome
Wikimanager-Translations
XWiki-XWikiSyntax* (all pages except XWikiSyntax and XWikiSyntaxClass)

After deleting all these pages now I'm able to create subwikis from
templates and no SQL errors appears at status.xml.

The only thing that I'm able to find in common in all these pages is
parent/child relationship in some of them.

Maybe it could be interesting if someone at xwiki team reproduces this
issue and open a JIRA.

Regards,
Jaume


2014/1/12 Jaume Giribert Peraire jaume.girib...@gmail.com

 Hi,

 Thanks again Thomas, looks like I didn't search well...

 I found the job status (for other/future people, you will find it at
 Tomcat work directory
 ../work/Catalina/localhost/xwiki/jobs/status/wiki/provisioning/wikiprovisioning.template/
 ) and  it seems that template is not copied to new subwiki due to an SQL
 error:

 org.xwiki.logging.event.LogEvent
 levelWARN/level
 messageSQL Error: 1062, SQLState: 23000/message
   /org.xwiki.logging.event.LogEvent
   org.xwiki.logging.event.LogEvent
 levelERROR/level
 messageDuplicate entry
 apos;AnnotationCode.Translations--2014-01-12 12:13:40apos; for key
 apos;XDD_FULLNAMEapos;/message
   /org.xwiki.logging.event.LogEvent
   org.xwiki.logging.event.LogEvent
 levelINFO/level
 messageFinished job of type [{}] with identifier [{}]/message
 ny

 So, it looks like subwiki is created correctly but template is not copied
 due to duplicate entry error. After that, the UI wizard is called in other
 to get the Xwiki-UI.

 I think the problem may be related to MyISAM/InnoDB MySQL storage Engine.
 I will check that tomorrow.

 Any ideas regarding this issue are welcome.

 Regards,
 Jaume



 2014/1/11 Jaume Giribert Peraire jaume.girib...@gmail.com

 Hi Thomas,

 Thank you so much for your comments. Unfortunately I don't fully
 understand your answer as I'm not familiar with the jobs part.

 Are you talking about the Scheduler app? Should I access the job status
 on http://:8080/xwiki/bin/.../jobs/status? Can you point me to any
 documentation related?

 Regards,
 Jaume

 On Fri, Jan 10, 2014 at 6:58 PM, Jaume Giribert Peraire
 jaume.giribert at gmail.com 
 http://lists.xwiki.org/mailman/listinfo/users wrote:
 * Hi Thomas,
 ** Yes, it looks like the template is not copied when the new subwiki is 
 created.
 ** I tried to switch to Oracle Java6 JVM and updating to the last Tomcat6
 ** version (Centos) but the problem persist.
 ** I'm not really sure where the problem comes from. The only thing I
 ** have found is this entry catalina.out:
 ** Jan 10, 2014 6:35:33 PM org.apache.tomcat.util.http.Parameters 
 processParameters
 ** WARNING: Parameters: Invalid chunk '' ignored.
 *

 Does not really seems to be related. If you have nothing in
 catalina.out it's probably normal since wiki creation is done in an
 isolated job, you should be able to find it's status somewhere in
 data/jobs/status/ (not fully sure what are those jobs ids). A pity
 the UI does not display this log.

 
 * Looks like a problem when calling this URL (note the double  before
 ** input) when creating the subwiki:
 ** 
 http://xx:8080/xwiki/bin/get/WikiManager/CreateWiki?xpage=uorgsuggestuorg=userinput=XWiki.Admin
  
 http://xx:8080/xwiki/bin/get/WikiManager/CreateWiki?xpage=uorgsuggestuorg=userinput=XWiki.Admin
 ** I tried to download and install the windows version (comes with Jetty)
 ** but I'm not able to reproduce this issue. It works as expected.
 ** Anyone with a similar scenario or any clue where I can found where the 
 issue is?
 ** Regards,
 ** Jaume
 ** On Fri, Jan 10, 2014 at 2:20 PM, Jaume Giribert Peraire
 ** jaume.giribert at gmail.com http://gmail.com
 *
 * http://lists.xwiki.org/mailman/listinfo/users 
 http://lists.xwiki.org/mailman/listinfo/users wrote:
 *** Hi,
 ** ** I'm working with a fresh install of xwiki 5.3 (centos6 + openjdk 
 1.6 +
 ** ** tomcat6 + mysql).
 ** ** I have create a new subwiki (as a template) but whenever I try to 
 create a
 ** ** new subwiki using this template, i only get a blank wiki, just the 
 standard
 ** ** deploy.
 ** ** I have followed these instructions with no luck:
 ** ** 
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Wiki+Application 
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Wiki+Application
 ** http://extensions.xwiki.org/xwiki/bin/view/Extension/Wiki+Application 
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Wiki+Application
 ** ** Just after the subwiki creation (from a template) I get a progress 
 bar
 ** ** indicating that the system is provisioning the wiki. When I click on
 ** ** Finalize, I'm automatically redirected to the Distribution 
 Wizard 

Re: [xwiki-users] Wiki application templates error (SOLVED?)

2014-01-13 Thread Guillaume Louis-Marie Delhumeau
Good afternoon,

I have created a JIRA about the fact that the log are not accessible
through the UI:
http://jira.xwiki.org/browse/XWIKI-9876

But concerning your issue, I don't see why it has happened.


2014/1/13 Jaume Giribert Peraire jaume.girib...@gmail.com

 Hi everyone,

 I finally solved the issue with a workaround. DB was ok (all tables where
 using InnoDB) so I simply tried to delete all the pages that triggered the
 SQL error.

 Following is the list of conflicting pages:

 AnnotationCode-Translations
 Main-SOLRTranslations
 Main-Welcome
 Sandbox-Webhome
 Wikimanager-Translations
 XWiki-XWikiSyntax* (all pages except XWikiSyntax and XWikiSyntaxClass)

 After deleting all these pages now I'm able to create subwikis from
 templates and no SQL errors appears at status.xml.

 The only thing that I'm able to find in common in all these pages is
 parent/child relationship in some of them.

 Maybe it could be interesting if someone at xwiki team reproduces this
 issue and open a JIRA.

 Regards,
 Jaume


 2014/1/12 Jaume Giribert Peraire jaume.girib...@gmail.com

  Hi,
 
  Thanks again Thomas, looks like I didn't search well...
 
  I found the job status (for other/future people, you will find it at
  Tomcat work directory
 
 ../work/Catalina/localhost/xwiki/jobs/status/wiki/provisioning/wikiprovisioning.template/
  ) and  it seems that template is not copied to new subwiki due to an SQL
  error:
 
  org.xwiki.logging.event.LogEvent
  levelWARN/level
  messageSQL Error: 1062, SQLState: 23000/message
/org.xwiki.logging.event.LogEvent
org.xwiki.logging.event.LogEvent
  levelERROR/level
  messageDuplicate entry
  apos;AnnotationCode.Translations--2014-01-12 12:13:40apos; for key
  apos;XDD_FULLNAMEapos;/message
/org.xwiki.logging.event.LogEvent
org.xwiki.logging.event.LogEvent
  levelINFO/level
  messageFinished job of type [{}] with identifier [{}]/message
  ny
 
  So, it looks like subwiki is created correctly but template is not copied
  due to duplicate entry error. After that, the UI wizard is called in
 other
  to get the Xwiki-UI.
 
  I think the problem may be related to MyISAM/InnoDB MySQL storage Engine.
  I will check that tomorrow.
 
  Any ideas regarding this issue are welcome.
 
  Regards,
  Jaume
 
 
 
  2014/1/11 Jaume Giribert Peraire jaume.girib...@gmail.com
 
  Hi Thomas,
 
  Thank you so much for your comments. Unfortunately I don't fully
  understand your answer as I'm not familiar with the jobs part.
 
  Are you talking about the Scheduler app? Should I access the job status
  on http://:8080/xwiki/bin/.../jobs/status? Can you point me to any
  documentation related?
 
  Regards,
  Jaume
 
  On Fri, Jan 10, 2014 at 6:58 PM, Jaume Giribert Peraire
  jaume.giribert at gmail.com 
 http://lists.xwiki.org/mailman/listinfo/users wrote:
  * Hi Thomas,
  ** Yes, it looks like the template is not copied when the new subwiki
 is created.
  ** I tried to switch to Oracle Java6 JVM and updating to the last
 Tomcat6
  ** version (Centos) but the problem persist.
  ** I'm not really sure where the problem comes from. The only thing I
  ** have found is this entry catalina.out:
  ** Jan 10, 2014 6:35:33 PM org.apache.tomcat.util.http.Parameters
 processParameters
  ** WARNING: Parameters: Invalid chunk '' ignored.
  *
 
  Does not really seems to be related. If you have nothing in
  catalina.out it's probably normal since wiki creation is done in an
  isolated job, you should be able to find it's status somewhere in
  data/jobs/status/ (not fully sure what are those jobs ids). A pity
  the UI does not display this log.
 
  
  * Looks like a problem when calling this URL (note the double  before
  ** input) when creating the subwiki:
  **
 http://xx:8080/xwiki/bin/get/WikiManager/CreateWiki?xpage=uorgsuggestuorg=userinput=XWiki.Admin
 http://xx:8080/xwiki/bin/get/WikiManager/CreateWiki?xpage=uorgsuggestuorg=userinput=XWiki.Admin
 
  ** I tried to download and install the windows version (comes with
 Jetty)
  ** but I'm not able to reproduce this issue. It works as expected.
  ** Anyone with a similar scenario or any clue where I can found where
 the issue is?
  ** Regards,
  ** Jaume
  ** On Fri, Jan 10, 2014 at 2:20 PM, Jaume Giribert Peraire
  ** jaume.giribert at gmail.com http://gmail.com
  *
  * http://lists.xwiki.org/mailman/listinfo/users 
 http://lists.xwiki.org/mailman/listinfo/users wrote:
  *** Hi,
  ** ** I'm working with a fresh install of xwiki 5.3 (centos6 +
 openjdk 1.6 +
  ** ** tomcat6 + mysql).
  ** ** I have create a new subwiki (as a template) but whenever I try
 to create a
  ** ** new subwiki using this template, i only get a blank wiki, just
 the standard
  ** ** deploy.
  ** ** I have followed these instructions with no luck:
  ** **
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Wiki+Application 
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Wiki+Application
  ** 
 

Re: [xwiki-users] Recycle bin /Trash

2014-01-13 Thread Patrick Masson
Thanks, I've added your answer to the XWiki.org FAQ at: 
http://www.xwiki.org/xwiki/bin/view/FAQ/How+do+I+restore+a+deleted+page+or+attachment+from+the+trash+or+recycle+bin%3F


On 01/10/2014 04:46 PM, Maxime Sinclair wrote:

Hi Patrick,

Go to the index page of the wiki (Main.AllDocs) and select the 
deleted pages or deleted attchments tab.
If these tabs don't appear, I suppose you must have admin rights to 
see them.




On 10/01/2014 22:27, Patrick Masson wrote:
I looked around a bit, but is there a way to list pages/attachments 
users have deleted?





___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


--
|||  |  |||||  |||| |||
Patrick Masson
General Manager, Director  Secretary to the Board
Open Source Initiative
855 El Camino Real, Ste 13A, #270
Palo Alto, CA 94301
United States
Skype: massonpj
sip: osi-mas...@ekiga.net
Ph: (970) 4MASSON
Em: mass...@opensource.org mailto:mas...@opensource.org
Ws: www.opensource.org http://www.opensource.org
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Recycle bin /Trash

2014-01-13 Thread vinc...@massol.net

On 13 Jan 2014 at 18:01:15, Patrick Masson 
(mas...@opensource.org(mailto://mas...@opensource.org)) wrote:

 Thanks, I've added your answer to the XWiki.org FAQ at:
 http://www.xwiki.org/xwiki/bin/view/FAQ/How+do+I+restore+a+deleted+page+or+attachment+from+the+trash+or+recycle+bin%3F

Thanks Patrick! Very nice initiative :)

I’ve made some small modifications:
* First I’ve renamed the page so that the page name isn’t too long and I’ve 
removed the ending question mark since a question mark is automatically added 
to the title when the FAQ entry is rendered
* I’ve linked to the Index Application which is where the documentation is 
located.

New location: 
http://www.xwiki.org/xwiki/bin/view/FAQ/How+do+I+restore+a+deleted+page+or+attachment

Thanks
-Vincent

 On 01/10/2014 04:46 PM, Maxime Sinclair wrote:
  Hi Patrick,
 
  Go to the index page of the wiki (Main.AllDocs) and select the
  deleted pages or deleted attchments tab.
  If these tabs don't appear, I suppose you must have admin rights to
  see them.
 
 
 
  On 10/01/2014 22:27, Patrick Masson wrote:
  I looked around a bit, but is there a way to list pages/attachments
  users have deleted?
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Recycle bin /Trash

2014-01-13 Thread vinc...@massol.net
Hi Patrick,

I see you’ve restored your content that I had moved to the Index Application’s 
documentation on:
http://www.xwiki.org/xwiki/bin/view/FAQ/How+do+I+restore+a+deleted+page+or+attachment

Do you really believe it’s better to have to maintain 2 places?

My POV was that it’s always easier to maintain a single place and have the FAQ 
entry point to the right documentation.

If you think the documentation isn’t good enough at 
http://extensions.xwiki.org/xwiki/bin/view/Extension/Index+Application then I 
believe it might be better to edit that page and improve it, WDYT?

Thanks
-Vincent
On 13 Jan 2014 at 18:22:28, vinc...@massol.net (vinc...@massol.net) wrote:


On 13 Jan 2014 at 18:01:15, Patrick Masson 
(mas...@opensource.org(mailto://mas...@opensource.org)) wrote:

 Thanks, I've added your answer to the XWiki.org FAQ at:
 http://www.xwiki.org/xwiki/bin/view/FAQ/How+do+I+restore+a+deleted+page+or+attachment+from+the+trash+or+recycle+bin%3F

Thanks Patrick! Very nice initiative :)

I’ve made some small modifications:
* First I’ve renamed the page so that the page name isn’t too long and I’ve 
removed the ending question mark since a question mark is automatically added 
to the title when the FAQ entry is rendered
* I’ve linked to the Index Application which is where the documentation is 
located.

New location: 
http://www.xwiki.org/xwiki/bin/view/FAQ/How+do+I+restore+a+deleted+page+or+attachment

Thanks
-Vincent

 On 01/10/2014 04:46 PM, Maxime Sinclair wrote:
  Hi Patrick,
 
  Go to the index page of the wiki (Main.AllDocs) and select the
  deleted pages or deleted attchments tab.
  If these tabs don't appear, I suppose you must have admin rights to
  see them.
 
 
 
  On 10/01/2014 22:27, Patrick Masson wrote:
  I looked around a bit, but is there a way to list pages/attachments
  users have deleted?
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Recycle bin /Trash

2014-01-13 Thread Dmitry Bakbardin
 Hi, Vincent,

I modified your doucument also. Due to the bug  
http://jira.xwiki.org/browse/XWIKI-9065 one might not see any deleted 
attachments.


Понедельник, 13 января 2014, 19:02 +01:00 от vinc...@massol.net 
vinc...@massol.net:
Hi Patrick,

I see you’ve restored your content that I had moved to the Index Application’s 
documentation on:
http://www.xwiki.org/xwiki/bin/view/FAQ/How+do+I+restore+a+deleted+page+or+attachment

Do you really believe it’s better to have to maintain 2 places?

My POV was that it’s always easier to maintain a single place and have the FAQ 
entry point to the right documentation.

If you think the documentation isn’t good enough at 
http://extensions.xwiki.org/xwiki/bin/view/Extension/Index+Application then I 
believe it might be better to edit that page and improve it, WDYT?

Thanks
-Vincent
On 13 Jan 2014 at 18:22:28,  vinc...@massol.net (vinc...@massol.net) wrote:


On 13 Jan 2014 at 18:01:15, Patrick Masson 
(mas...@opensource.org(mailto://mas...@opensource.org)) wrote:

 Thanks, I've added your answer to the XWiki.org FAQ at:
  
 http://www.xwiki.org/xwiki/bin/view/FAQ/How+do+I+restore+a+deleted+page+or+attachment+from+the+trash+or+recycle+bin%3F

Thanks Patrick! Very nice initiative :)

I’ve made some small modifications:
* First I’ve renamed the page so that the page name isn’t too long and I’ve 
removed the ending question mark since a question mark is automatically added 
to the title when the FAQ entry is rendered
* I’ve linked to the Index Application which is where the documentation is 
located.

New location: 
http://www.xwiki.org/xwiki/bin/view/FAQ/How+do+I+restore+a+deleted+page+or+attachment

Thanks
-Vincent

 On 01/10/2014 04:46 PM, Maxime Sinclair wrote:
  Hi Patrick,
 
  Go to the index page of the wiki (Main.AllDocs) and select the
  deleted pages or deleted attchments tab.
  If these tabs don't appear, I suppose you must have admin rights to
  see them.
 
 
 
  On 10/01/2014 22:27, Patrick Masson wrote:
  I looked around a bit, but is there a way to list pages/attachments
  users have deleted?
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Kind regards,

Dmitry
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Recycle bin /Trash

2014-01-13 Thread Patrick Masson
Vincent, I added a comment on the page with my thoughts (not sure of how 
the continue the discussion - in the users group or on the wiki page).


My rationale is in the comment:

   I got your email and saw your edits, I am just thinking answering
   the question directly and pointing to the documentation would have
   been most helpful to me when I was looking.

   Interesting before I sent the note to the user's list, I searched
   for xwiki restore deleted document, xwiki recycle bin xwiki
   trash etc. and did not find the Index Application page. In
   addition, I also searched xwiki.org for restore deleted page and
   did not find anything.

   I think the challenge for me as a newbie is that I do not know the
   nomenclature of xwiki yet. I do not know how I (or other newbies)
   would have known to look for the Index Application?

   What do you think? Hope my merging of our efforts is OK?

However your point about maintaining two sets of documentation would be 
a pain and not a good idea. Maybe I am just addressing the wrong 
problem. My issue was that I could not find the existing documentation. 
I restored your version and just added on how to restore deleted 
pages/attachments.


Thanks,
Patrick

On 01/13/2014 01:02 PM, vinc...@massol.net wrote:

Hi Patrick,

I see you’ve restored your content that I had moved to the Index 
Application’s documentation on:

http://www.xwiki.org/xwiki/bin/view/FAQ/How+do+I+restore+a+deleted+page+or+attachment

Do you really believe it’s better to have to maintain 2 places?

My POV was that it’s always easier to maintain a single place and have 
the FAQ entry point to the right documentation.


If you think the documentation isn’t good enough at 
http://extensions.xwiki.org/xwiki/bin/view/Extension/Index+Application then 
I believe it might be better to edit that page and improve it, WDYT?


Thanks
-Vincent

On 13 Jan 2014 at 18:22:28, vinc...@massol.net (vinc...@massol.net 
mailto://vinc...@massol.net) wrote:




On 13 Jan 2014 at 18:01:15, Patrick Masson 
(mas...@opensource.org(mailto://mas...@opensource.org)) wrote:


 Thanks, I've added your answer to the XWiki.org FAQ at:
 
http://www.xwiki.org/xwiki/bin/view/FAQ/How+do+I+restore+a+deleted+page+or+attachment+from+the+trash+or+recycle+bin%3F 



Thanks Patrick! Very nice initiative :)

I’ve made some small modifications:
* First I’ve renamed the page so that the page name isn’t too long 
and I’ve removed the ending question mark since a question mark is 
automatically added to the title when the FAQ entry is rendered
* I’ve linked to the Index Application which is where the 
documentation is located.


New location: 
http://www.xwiki.org/xwiki/bin/view/FAQ/How+do+I+restore+a+deleted+page+or+attachment


Thanks
-Vincent

 On 01/10/2014 04:46 PM, Maxime Sinclair wrote:
  Hi Patrick,
 
  Go to the index page of the wiki (Main.AllDocs) and select the
  deleted pages or deleted attchments tab.
  If these tabs don't appear, I suppose you must have admin rights to
  see them.
 
 
 
  On 10/01/2014 22:27, Patrick Masson wrote:
  I looked around a bit, but is there a way to list pages/attachments
  users have deleted?


--
|||  |  |||||  |||| |||
Patrick Masson
General Manager, Director  Secretary to the Board
Open Source Initiative
855 El Camino Real, Ste 13A, #270
Palo Alto, CA 94301
United States
Skype: massonpj
sip: osi-mas...@ekiga.net
Ph: (970) 4MASSON
Em: mass...@opensource.org mailto:mas...@opensource.org
Ws: www.opensource.org http://www.opensource.org
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Search stops working in LiveTable with custom JSON results page after few characters entered

2014-01-13 Thread Valdis Vītoliņš
As LiveTable is document oriented and cant show several objects attached
to the document, I have created customized JSON page
following to guide in
http://platform.xwiki.org/xwiki/bin/view/DevGuide/LiveTable

It even works for document name and space. 

But for other fields filtering stops working after 1-2 characters are
entered. I suspect it is somehow related to AJAX requests which send
partial data, because it works with get request
/xwiki/bin/view/NMPDtools/ParticipantsJSONlivetable?firstname=Uldis

Any suggestions?
Thanks!

= LiveTable page =
{{velocity}}
#set($columns = [ doc.name,
doc.space ,firstname  ,lastname  ,personid  ,certid ])
#set($columnsProperties = {
  doc.name : { type : text, link : view, size : 10,
filterable : true, sortable: true, displayName : Kurss },
  firstname : { type : text, size : 10, filterable : true,
sortable: true },
  lastname : { type : text, size : 10, filterable : true,
sortable: true },
  personid : { type : text, size : 10, filterable : true,
sortable: true },
  certid : { type : text, size : 10, filterable : true,
sortable: true },
  doc.space : { type : text, size : 10, filterable :
true, sortable: true, displayName : Organizācija }
})

#set($options = {
className:NMPDtools.ParticipantClass,   
translationPrefix : livetable.,  
tagCloud : true,  
rowCount: 15,  
maxPages : 10,
selectedColumn : doc.title,
defaultOrder : asc,
resultPage:NMPDtools.ParticipantsJSONlivetable
})

#livetable(participant $columns $columnsProperties $options)
{{/velocity}}

= JSON results page =

{{velocity filter=html wiki=false}}
#if($xcontext.action == 'get'  $!{request.outputSyntax} == 'plain')
$response.setContentType('application/json')
#end
## Offset = item # at which to start displaying data
#set($offset = $util.parseInt($request.get('offset')))
## offset starts from 0 in velocity and 1 in javascript
#set($offset = $offset - 1)
#if($offset  0)
 #set($offset = 0)
#end
## Limit = # of items to display
#set($limit = $util.parseInt($request.get('limit')))
## Sort direction
#set($order = $!request.sort)
#if($order != '')
 #set($orderDirection = $!{request.get('dir').toLowerCase()})
 #if($!orderDirection != ''  $!orderDirection != 'asc')
   #set($orderDirection = 'desc')
 #end
#end
##
#set($doc_space=$request.getParameter('doc.space'))
#set($doc_name=$request.getParameter('doc.name'))
#set($firstname=$request.getParameter('firstname'))
#set($lastname=$request.getParameter('lastname'))
#set($personid=$request.getParameter('personid'))
#set($certid=$request.getParameter('certid'))
##
#set($hql=select doc.fullName, personid.id.value from XWikiDocument
doc, BaseObject as obj, StringProperty firstname, StringProperty
lastname, StringProperty personid where doc.fullName=obj.name and
obj.className='NMPDtools.ParticipantClass' and obj.id=firstname.id.id
and firstname.id.name='firstname' and obj.id=lastname.id.id and
lastname.id.name='lastname' and obj.id=personid.id.id and
personid.id.name='personid')
##
#if($doc_name  $doc_name!='')
#set($hql=$hql and doc.name like '${doc_name}%')
#end
#if($doc_space  $doc_space!='')
#set($hql=$hql and doc.space like '${doc_space}%')
#end
#if($firstname  $firstname!='')
#set($hql=$hql and firstname.id.value like '${firstname}%')
#end
#if($lastname  $lastname!='')
#set($hql=$hql and lastname.id.value like '${lastname}%')
#end
#if($personid  $personid!='')
#set($hql=$hql and personid.id.value like '${personid}%')
#end
##
##$hql
#set($results =
$services.query.hql($hql).setLimit($limit).setOffset($offset).execute())
{
totalrows:$results.size(),
matchingtags: {},
tags : [],
returnedrows: $limit,
offset: $offset,
reqNo: $numbertool.integer($request.reqNo),
rows: [
#foreach($item in $results)
#set($partdoc=$xwiki.getDocument($item[0]))
#if($partdoc.hasAccessLevel('view'))
#set($partobj=
$partdoc.getObject('NMPDtools.ParticipantClass','personid',$item[1]))
$!d {doc_viewable : true,
doc_name:$partdoc.name,
doc_url:$xwiki.getURL($item[0]),
doc_space:$partdoc.space,
firstname:$partobj.firstname,
lastname:$partobj.lastname,
personid:$partobj.personid,
certid:$partobj.certid
}
#if(!$d)#set($d=',')#end
#end
#end
]
}
{{/velocity}}



___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] How to Export user preferences

2014-01-13 Thread Maxime Sinclair

Good evening Silvio,

User preferences are objects linked to the user page (XWiki.username). 
So, why don't you try to export the user page from the old wiki and 
import it in the new one ?
If the definition (structure) of the object has evolved with the new 
version of XWiki, a simple edit of the page will automatically apply the 
changes and you may be lucky and get it right.


Maxime


On 13/01/2014 09:45, Silvio Mink wrote:

Good morning to all XWiki Users,

i am installing a new xwiki instance (migration from an older instance) and
want to export/import user preferences like the watchlists, how can I do
that?


Thanks in advance
and best Regards

Silvio



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/How-to-Export-user-preferences-tp7588624.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users