[xwiki-users] severe trouble with web crawlers

2012-04-06 Thread O Voss
Hi,

a web crawler keeps deleting documents in our Wiki. Meanwhile we have a 
robots.txt, but it seems to ignore that.

In the global rights the unregistered user is explicitely denied edit, delete 
and admin rights. Nowhere are such rights set to allowed. What are we missing?

The deleted documents do not turn up in XWiki/DeletedDocuments. Is there any 
way to restore the deleted documents?

This is an absolute desaster atm, any hints greatly appreciated!

Cheers,

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


Re: [xwiki-users] severe trouble with web crawlers

2012-04-06 Thread Vincent Massol
Hi Olaf,

On Apr 6, 2012, at 8:15 AM, O Voss wrote:

 Hi,
 
 a web crawler keeps deleting documents in our Wiki. Meanwhile we have a 
 robots.txt, but it seems to ignore that.

Of course, you should never allow unregistered users to delete documents, but 
you know that already… ;)

 In the global rights the unregistered user is explicitely denied edit, delete 
 and admin rights. Nowhere are such rights set to allowed. What are we missing?

Personally I never use deny rights. I simply enable the rights for the 
user/group that should get the rights. The others are denied by default.

You should also check rights at 3 levels:
- global
- space level
- page level

 The deleted documents do not turn up in XWiki/DeletedDocuments. Is there any 
 way to restore the deleted documents?

Only from a backup.

 This is an absolute desaster atm, any hints greatly appreciated!

We'd need to see your full rights setup to help me.

You could check 
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Access+Rights (not perfect 
doc though) to understand rights a bit more.

It won't help you but FYI we're planning to redesign the rights UI to make it 
even easier to use:
http://incubator.myxwiki.org/xwiki/bin/view/Improvements/Rights

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


Re: [xwiki-users] severe trouble with web crawlers

2012-04-06 Thread O Voss
Hi Vincent,

Many thanks for your quick answer.

I will list the wiki scope rights that we have set here. (I hope I get the 
translations right, I have the UI in German.)
    
Users:

unregistered users: allow view, deny edit, deny delete, deny admin, allow 
register

Groups:

Redakteure: allow edit, allow delete,                         
XWikiAdminGroup: allow edit, allow admin                        
XWikiAllGroup: allow view, allow comment, allow register                        

The latest destruction was done on the Blog space. I am not sure how the rights 
were set exactly before the trouble began, but I am abuolutely sure there was 
no right explicitly allowed to unregistered users (andd 99% sure none was 
explicityly denied).

The option to hinder unregistered users from editing documents independently 
from page and space rights had not been ticked when we had the trouble last 
night. I have switched that on now.

We also have some kind of trouble with XWiki.XwikiPreferences, which is not 
deleted entirely, but many (if not all) of the data in it is. These are the 
rights on the XWiki space:

Users:

unregistered users: allow view, deny edit, deny delete, deny admin

Groups:

XWikiAdminGroup: allow edit, allow delete, allow admin                        
XWikiAllGroup: allow view                        

Cheers,

Olaf





 Von: Vincent Massol vinc...@massol.net
An: XWiki Users users@xwiki.org 
CC: O Voss richyfourtyth...@yahoo.com 
Gesendet: 8:33 Freitag, 6.April 2012
Betreff: Re: [xwiki-users] severe trouble with web crawlers
 
Hi Olaf,

On Apr 6, 2012, at 8:15 AM, O Voss wrote:

 Hi,
 
 a web crawler keeps deleting documents in our Wiki. Meanwhile we have a 
 robots.txt, but it seems to ignore that.

Of course, you should never allow unregistered users to delete documents, but 
you know that already… ;)

 In the global rights the unregistered user is explicitely denied edit, 
 delete and admin rights. Nowhere are such rights set to allowed. What are we 
 missing?

Personally I never use deny rights. I simply enable the rights for the 
user/group that should get the rights. The others are denied by default.

You should also check rights at 3 levels:
- global
- space level
- page level

 The deleted documents do not turn up in XWiki/DeletedDocuments. Is there any 
 way to restore the deleted documents?

Only from a backup.

 This is an absolute desaster atm, any hints greatly appreciated!

We'd need to see your full rights setup to help me.

You could check 
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Access+Rights (not perfect 
doc though) to understand rights a bit more.

It won't help you but FYI we're planning to redesign the rights UI to make it 
even easier to use:
http://incubator.myxwiki.org/xwiki/bin/view/Improvements/Rights

Thanks
-Vincent


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


Re: [xwiki-users] using XWiki groups

2012-04-06 Thread Marius Dumitru Florea
On Fri, Apr 6, 2012 at 12:53 AM,
ricardo.julio.rodriguez.fernan...@sergas.es wrote:
 Hi,

 We found XWiki groups really useful as a metaphor for rather different types 
 of entities.

 But we are facing a problem. Please, could you follow this reasoning?

 Given an user, let's say, USER01, she/he will belong to a given number of 
 XWiki groups. Our doubt is, how to represent/stora the particularities of a 
 given user when he/she is included in a given group.

 Let's me to describe an example. Any user in our organization could play 
 different roles. For instance, for given set of groups he/she could play a 
 coordinator role. But this fact won't affect /conditonate his/her roles when 
 assigned to a different group.


 The only solution I could think off is to create one property per group a 
 given user belongs to to store his/her role in this group.

You mean extending XWiki.XWikiGroups class with a 'role' property? So
when you add an user to a group you add a new XWiki.XWikiGroups object
to the group's document and set the 'member' property to the user name
(XWiki.Ricardo) and the 'role' property to the role the user will have
in that group (e.g. 'coordinator').

This sounds good to me.

Hope this helps,
Marius


 Please, could you figure out a better solution?

 Thanks for your help!!!

 Ricardo


 --
 Ricardo Rodríguez
 Research Management and Promotion Technician
 Technical Secretariat
 Health Research Institute of Santiago de Compostela (IDIS)
 http://www.idisantiago.es

 Nota: A información contida nesta mensaxe e os seus posibles documentos 
 adxuntos é privada e confidencial e está dirixida únicamente ó seu 
 destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe, 
 por favor elimínea. A distribución ou copia desta mensaxe non está autorizada.

 Nota: La información contenida en este mensaje y sus posibles documentos 
 adjuntos es privada y confidencial y está dirigida únicamente a su 
 destinatario/a. Si usted no es el/la destinatario/a original de este mensaje, 
 por favor elimínelo. La distribución o copia de este mensaje no está 
 autorizada.

 See more languages: http://www.sergas.es/aviso_confidencialidad.htm
 ___
 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


[xwiki-users] AUTO: MaryEllen Coleman/Poughkeepsie/IBM is out of the office. (returning 04/10/2012)

2012-04-06 Thread MaryEllen Coleman

I am out of the office until 04/10/2012.

I will not have access to email, but will get back to you when I return.
Happy Easter!  :-)


Note: This is an automated response to your message  users Digest, Vol 57,
Issue 6 sent on 04/06/2012 3:07:46.

This is the only notification you will receive while this person is away.

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


Re: [xwiki-users] using XWiki groups

2012-04-06 Thread Thomas Mortagne
On Thu, Apr 5, 2012 at 11:53 PM,
ricardo.julio.rodriguez.fernan...@sergas.es wrote:
 Hi,

 We found XWiki groups really useful as a metaphor for rather different types 
 of entities.

 But we are facing a problem. Please, could you follow this reasoning?

 Given an user, let's say, USER01, she/he will belong to a given number of 
 XWiki groups. Our doubt is, how to represent/stora the particularities of a 
 given user when he/she is included in a given group.

 Let's me to describe an example. Any user in our organization could play 
 different roles. For instance, for given set of groups he/she could play a 
 coordinator role. But this fact won't affect /conditonate his/her roles when 
 assigned to a different group.

 The only solution I could think off is to create one property per group a 
 given user belongs to to store his/her role in this group.

 Please, could you figure out a better solution?

Note sure what exactly you mean by role in your use case but couldn't
you achieve this with a right configuration ? I mean some group have
access to some part in view, other in edit, others not at all, etc.


 Thanks for your help!!!

 Ricardo


 --
 Ricardo Rodríguez
 Research Management and Promotion Technician
 Technical Secretariat
 Health Research Institute of Santiago de Compostela (IDIS)
 http://www.idisantiago.es

 Nota: A información contida nesta mensaxe e os seus posibles documentos 
 adxuntos é privada e confidencial e está dirixida únicamente ó seu 
 destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe, 
 por favor elimínea. A distribución ou copia desta mensaxe non está autorizada.

 Nota: La información contenida en este mensaje y sus posibles documentos 
 adjuntos es privada y confidencial y está dirigida únicamente a su 
 destinatario/a. Si usted no es el/la destinatario/a original de este mensaje, 
 por favor elimínelo. La distribución o copia de este mensaje no está 
 autorizada.

 See more languages: http://www.sergas.es/aviso_confidencialidad.htm
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users



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


Re: [xwiki-users] using XWiki groups

2012-04-06 Thread Ricardo.Julio.Rodriguez.Fernandez
Hi!

 
 From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of Marius 
 Dumitru Florea [mariusdumitru.flo...@xwiki.com]
 Sent: 06 April 2012 09:58
 To: XWiki Users
 Subject: Re: [xwiki-users] using XWiki groups

 On Fri, Apr 6, 2012 at 12:53 AM,
ricardo.julio.rodriguez.fernan...@sergas.es wrote:
 Hi,

 We found XWiki groups really useful as a metaphor for rather different types 
 of entities.

 But we are facing a problem. Please, could you follow this reasoning?

 Given an user, let's say, USER01, she/he will belong to a given number of 
 XWiki groups. Our doubt is, how to represent/stora the particularities of a 
 given user when he/she is included in a given group.

 Let's me to describe an example. Any user in our organization could play 
 different roles. For instance, for given set of groups he/she could play a 
 coordinator role. But this fact won't affect /conditonate his/her roles when 
 assigned to a different group.


 The only solution I could think off is to create one property per group a 
 given user belongs to to store his/her role in this group.

 You mean extending XWiki.XWikiGroups class with a 'role' property? So
 when you add an user to a group you add a new XWiki.XWikiGroups object
 to the group's document and set the 'member' property to the user name
 (XWiki.Ricardo) and the 'role' property to the role the user will have
 in that group (e.g. 'coordinator').

 This sounds good to me.

Yeap, this sounds easy and good. But IMO there is still one thing I'm not 
confortable with in this approach. We use, or intend to use, XWiki group 
concept for different real life objects. Let me give you three examples:

1. research groups (this is classical approach with a one person-one group 
belonging relationship)
2. research projects (the group will represent the research team); closer to 
research groups, but it has its own oddities and
3. scientific papers (the group will represent the paper's authorship); in this 
case, author order will be king.

If we add a single new property to XWiki.XWikiGroups class, 'role' property, it 
will have different meanings and values depending of what kind of group it 
will represent. Won't be more advisable to create as many new properties as 
different meanings XWiki.XWikiGroups object instances will have? In this case, 
only one property will have a given value. The others will remain empty.

This last fact together with the another issue: we are still using a 2.4 XE 
release, thus we are facing an update in the short time, make me very reluctant 
to extend any XWiki class. But, of course, if this is the best or the only 
solution, will go for it!

We are thinking about a third party brand new class characterizing any group 
membership relation. But we have not conceptual model for this data system yet, 
so I can't offer an objective and independent representation about we are 
thinking about.

Thank you so much for your help! Any idea, comment or criticism will be 
extremely welcome!

Ricardo

 Hope this helps,
 Marius


 Please, could you figure out a better solution?

 Thanks for your help!!!

 Ricardo


 --
 Ricardo Rodríguez
 Research Management and Promotion Technician
 Technical Secretariat
 Health Research Institute of Santiago de Compostela (IDIS)
 http://www.idisantiago.es

 Nota: A información contida nesta mensaxe e os seus posibles documentos 
 adxuntos é privada e confidencial e está dirixida únicamente ó seu 
 destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe, 
 por favor elimínea. A distribución ou copia desta mensaxe non está autorizada.

 Nota: La información contenida en este mensaje y sus posibles documentos 
 adjuntos es privada y confidencial y está dirigida únicamente a su 
 destinatario/a. Si usted no es el/la destinatario/a original de este mensaje, 
 por favor elimínelo. La distribución o copia de este mensaje no está 
 autorizada.

 See more languages: http://www.sergas.es/aviso_confidencialidad.htm
 ___
 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

Nota: A información contida nesta mensaxe e os seus posibles documentos 
adxuntos é privada e confidencial e está dirixida únicamente ó seu 
destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe, por 
favor elimínea. A distribución ou copia desta mensaxe non está autorizada.

Nota: La información contenida en este mensaje y sus posibles documentos 
adjuntos es privada y confidencial y está dirigida únicamente a su 
destinatario/a. Si usted no es el/la destinatario/a original de este mensaje, 
por favor elimínelo. La distribución o copia de este mensaje no está autorizada.

See more languages: http://www.sergas.es/aviso_confidencialidad.htm

Re: [xwiki-users] using XWiki groups

2012-04-06 Thread Ricardo.Julio.Rodriguez.Fernandez
Hi!

 
 From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of Thomas 
 Mortagne [thomas.morta...@xwiki.com]
 Sent: 06 April 2012 10:30
 To: XWiki Users
 Subject: Re: [xwiki-users] using XWiki groups

 On Thu, Apr 5, 2012 at 11:53 PM,
ricardo.julio.rodriguez.fernan...@sergas.es wrote:
 Hi,

 We found XWiki groups really useful as a metaphor for rather different types 
 of entities.

 But we are facing a problem. Please, could you follow this reasoning?

 Given an user, let's say, USER01, she/he will belong to a given number of 
 XWiki groups. Our doubt is, how to represent/stora the particularities of a 
 given user when he/she is included in a given group.

 Let's me to describe an example. Any user in our organization could play 
 different roles. For instance, for given set of groups he/she could play a 
 coordinator role. But this fact won't affect /conditonate his/her roles when 
 assigned to a different group.

 The only solution I could think off is to create one property per group a 
 given user belongs to to store his/her role in this group.

 Please, could you figure out a better solution?

 Note sure what exactly you mean by role in your use case but couldn't
 you achieve this with a right configuration ? I mean some group have
 access to some part in view, other in edit, others not at all, etc.

Thanks, Thomas! Yes, role will have practical implications that must be 
represented at right configuration level. As Marius said, a good example of 
role is that of group's coordinator. In fact we call this figure group's leader 
trying to fit as much as possible to the EFQM (European Foundation for Quality 
Management) Model. But the point now is the design a method to characterize 
that role each time an object become member of a given group. Later we'll 
have to face another issue: could we create some kind of dynamic groups based 
on that new 'role assignment method?

I mean, could we trust some kind of rights to a virtual group integrated by 
all group leaders? But this is another question that probably deserve its own 
thread!

Any idea will be welcome!!!

Thanks,

Ricardo


 Thanks for your help!!!

 Ricardo


 --
 Ricardo Rodríguez
 Research Management and Promotion Technician
 Technical Secretariat
 Health Research Institute of Santiago de Compostela (IDIS)
 http://www.idisantiago.es

 Nota: A información contida nesta mensaxe e os seus posibles documentos 
 adxuntos é privada e confidencial e está dirixida únicamente ó seu 
 destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe, 
 por favor elimínea. A distribución ou copia desta mensaxe non está autorizada.

 Nota: La información contenida en este mensaje y sus posibles documentos 
 adjuntos es privada y confidencial y está dirigida únicamente a su 
 destinatario/a. Si usted no es el/la destinatario/a original de este mensaje, 
 por favor elimínelo. La distribución o copia de este mensaje no está 
 autorizada.

 See more languages: http://www.sergas.es/aviso_confidencialidad.htm
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users



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

Nota: A información contida nesta mensaxe e os seus posibles documentos 
adxuntos é privada e confidencial e está dirixida únicamente ó seu 
destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe, por 
favor elimínea. A distribución ou copia desta mensaxe non está autorizada.

Nota: La información contenida en este mensaje y sus posibles documentos 
adjuntos es privada y confidencial y está dirigida únicamente a su 
destinatario/a. Si usted no es el/la destinatario/a original de este mensaje, 
por favor elimínelo. La distribución o copia de este mensaje no está autorizada.

See more languages: http://www.sergas.es/aviso_confidencialidad.htm
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] How to add a sub-menu button for image menu in wysiwyg editor inline form

2012-04-06 Thread Marius Dumitru Florea
On Fri, Apr 6, 2012 at 1:49 AM, du du ddd...@gmail.com wrote:
 Hi, all,

 I am trying to add an addComments sub-menu item to image button from the
 menu bar of WYSIWYG editor, what it does is to add comments for an image
 inserted in the editor because I need to explain what each image is about
 after I put it in the editor, I checked the
 class:XWiki.WysiwygEditorConfigClass and the wysiwyg.js, I added a
 sub-menu in
 the WysiwygEditorConfigClass for image menu, but after that, I got lost,
 this sub-menu button is supposed to connect to a plugin to trigger java to
 run I believe since it is a plugin and each sub-menu like
 imageInsertAttached, imageInsertURL is a plugin, but I could not find the
 code where it calls a plugin, so how is the sub-menu button hooked to the
 plugin? when a user clicks on the submenu button in the editor (inline
 form) page, which javascript function gets called?

You can find here
https://github.com/xwiki/xwiki-platform/tree/master/xwiki-platform-core/xwiki-platform-wysiwyg
the code of the WYSIWYG content editor. For instance, the image
plugin, which handles the image menu, is located here
https://github.com/xwiki/xwiki-platform/tree/master/xwiki-platform-core/xwiki-platform-wysiwyg/xwiki-platform-wysiwyg-client/src/main/java/org/xwiki/gwt/wysiwyg/client/plugin/image
. The actual code that fills the image menu is
https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-wysiwyg/xwiki-platform-wysiwyg-client/src/main/java/org/xwiki/gwt/wysiwyg/client/plugin/image/ImageMenuExtension.java
.

You should know that the WYSIWYG content editor is written using
Google WebToolkit (GWT). The Java code is compiled into JavaScript at
build time.

Hope this helps,
Marius


 Thanks very much in advance!!

 Dave
 ___
 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


[xwiki-users] XWiki feedback

2012-04-06 Thread Trevor Russ
We chose XWiki back in 2009 as our wiki solution and we had successfully set up 
a complete farm of 4 wikis.  I have been following the progress of XWiki since 
then, but unfortunately it was never utilized by our team, mostly because the 
users did not want to invest the time in learning a new WYSIWYG editor.  In the 
end I was the only one who used it so the time has finally come to shut it down 
and look at an alternative solution -- perhaps a simple document manager.  I 
saw a lot of potential in XWiki for our purposes, but didn't quite have the 
time to sell it to the others.  

Before I remove myself from the mailing list, I just wanted to put forward one 
comment as feedback: don't discount the learning curve that confronts users new 
to the wiki.  Many of them are proficient in their ways of editing documents 
(which usually means MS Word) and don't have the time to invest learning new 
document formatting tools.  If you want to capture a larger share of the 
market, look at ways of integrating with users' favourite editors; I think that 
would go a long way.

You have a very impressive product, and I've been amazed at the level of 
commitment and professionalism that has gone into this wiki.  Thanks for 
everybody's efforts and best of luck going forward.

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


Re: [xwiki-users] XWiki feedback

2012-04-06 Thread Vincent Massol
Hi Trevor,

Thanks for your kind words and the piece of feedback which is very useful :) 
I'm glad you liked the product.

You may know that we had started XOffice (http://xoffice.xwiki.org/) a few 
years ago. IMO it was a very good effort to bring xwiki into the hands of MS 
Word users. Unfortunately our main committer on this is no longer active ATM…

Before you go if you have ideas for integrating with user's favorite editors 
that would be great. Do you mean something like XOffice or do you mean 
something else?

Take care,
-Vincent

On Apr 6, 2012, at 4:26 PM, Trevor Russ wrote:

 We chose XWiki back in 2009 as our wiki solution and we had successfully set 
 up a complete farm of 4 wikis.  I have been following the progress of XWiki 
 since then, but unfortunately it was never utilized by our team, mostly 
 because the users did not want to invest the time in learning a new WYSIWYG 
 editor.  In the end I was the only one who used it so the time has finally 
 come to shut it down and look at an alternative solution -- perhaps a simple 
 document manager.  I saw a lot of potential in XWiki for our purposes, but 
 didn't quite have the time to sell it to the others.  
 
 Before I remove myself from the mailing list, I just wanted to put forward 
 one comment as feedback: don't discount the learning curve that confronts 
 users new to the wiki.  Many of them are proficient in their ways of editing 
 documents (which usually means MS Word) and don't have the time to invest 
 learning new document formatting tools.  If you want to capture a larger 
 share of the market, look at ways of integrating with users' favourite 
 editors; I think that would go a long way.
 
 You have a very impressive product, and I've been amazed at the level of 
 commitment and professionalism that has gone into this wiki.  Thanks for 
 everybody's efforts and best of luck going forward.
 
 Trevor

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


[xwiki-users] Looking for these xwiki java API'S or java class containing these functionality?

2012-04-06 Thread mohit gupta
Hi Folks,

I am looking for three xwiki java api's that do the following functionality
1) I give the space name to api and it creates the space with default home
page .
2)I give userName,SpaceName and rightsName(like view,edit,delete,admin) to
api and it gives these rights on given space name for the given username
3)I give spaceName to api and it gives me whether the given space exists or
not?
I was  looking for three apis in classes ---com.xpn.xwiki.xwiki.java and
com.xpn.xwiki.api.xwiki.java but i could not locate these. But i am sure
these api's must
be existing (as user is able to do these stuff from user interface). I will
be grateful if i can be directed to these apis?

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


Re: [xwiki-users] How to the restrict the user name and group name serach?

2012-04-06 Thread mohit gupta
Thanks Recardo.

On Sat, Mar 31, 2012 at 5:00 AM, 
ricardo.julio.rodriguez.fernan...@sergas.es wrote:

 Hi! Sorry for being late at following this issue!

  
  From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of
 mohit gupta [motgu...@gmail.com]
  Sent: 28 March 2012 08:10
  To: XWiki Users
  Subject: Re: [xwiki-users] How to the restrict the user name and group
 name serach?
 
  Hi Racardo,
 
  in templates/xwikivars.vm i  already see below code
 
  #if ($hasAdmin || $isAdvancedUser)
#set ($blacklistedSpaces = [])
  #else
#set ($blacklistedSpaces = ['Import', 'Panels', 'Scheduler', 'Stats',
  'XAppClasses', 'XAppSheets', 'XAppTemplates', 'XWiki', 'WatchCode',
  'WatchSheets', 'XApp', 'WatchAdmin', 'Watch', 'ColorThemes',
  'AnnotationCode'])
  #end
 
  As per above code looks like 'XWiki' space is already a blacklisted
 space
  nor user other than admin rights.But still i am able to search user and
  group  name?

 Well, as far as I see here, xwikivars.vm is woking as expected. Please,
 are you sure you are using a simple user that is not an Admin? As you see
 in the if clausule, for Admin and Advanceduser, $blacklistedSpaces is set
 to a blank list. Thus, documents in all spaces are in the result set of any
 given search.

 HTH!

 Ricardo

 
  On Wed, Mar 28, 2012 at 3:16 AM, 
  ricardo.julio.rodriguez.fernan...@sergas.es wrote:

  Hi!
 
   
   From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of
  mohit gupta [motgu...@gmail.com]
   Sent: 27 March 2012 13:49
   To: XWiki Users
   Subject: [xwiki-users] How to the restrict the user name and group name
  serach?
  
   Hi All,
   I dont want to allow the user name or group name search on xwiki(either
  it
   is on click of search button and  search sugest). *Basically what  i
 want
   is if any user
   put some user name or user group name in search text box , it should
 not
   return any results. Looking for your expert suggestion how i can go for
  it?*
  
   I am sure it should be possible in xwiki looking at its flexibility but
   could not figure it out how. Even if i have to make some modification
 in
   code iam open for that. Thanks in advance.
 
  By default, users and groups are created in XWiki space. Perhaps could it
  be useful and enough for you to blacklist XWiki space as stated here...?
 
  http://jira.xwiki.org/browse/XWIKI-6679
 
  HTH!
 
  Ricardo
 
   ___
   users mailing list
   users@xwiki.org
   http://lists.xwiki.org/mailman/listinfo/users
 
  Nota: A informaci?n contida nesta mensaxe e os seus posibles documentos
  adxuntos ? privada e confidencial e est? dirixida ?nicamente ? seu
  destinatario/a. Se vostede non ? o/a destinatario/a orixinal desta
 mensaxe,
  por favor elim?nea. A distribuci?n ou copia desta mensaxe non est?
  autorizada.
 
  Nota: La informaci?n contenida en este mensaje y sus posibles documentos
  adjuntos es privada y confidencial y est? dirigida ?nicamente a su
  destinatario/a. Si usted no es el/la destinatario/a original de este
  mensaje, por favor elim?nelo. La distribuci?n o copia de este mensaje no
  est? autorizada.
 
  See more languages: http://www.sergas.es/aviso_confidencialidad.htm
  ___
  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

 Nota: A informaci?n contida nesta mensaxe e os seus posibles documentos
 adxuntos ? privada e confidencial e est? dirixida ?nicamente ? seu
 destinatario/a. Se vostede non ? o/a destinatario/a orixinal desta mensaxe,
 por favor elim?nea. A distribuci?n ou copia desta mensaxe non est?
 autorizada.

 Nota: La informaci?n contenida en este mensaje y sus posibles documentos
 adjuntos es privada y confidencial y est? dirigida ?nicamente a su
 destinatario/a. Si usted no es el/la destinatario/a original de este
 mensaje, por favor elim?nelo. La distribuci?n o copia de este mensaje no
 est? autorizada.

 See more languages: http://www.sergas.es/aviso_confidencialidad.htm
 ___
 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


Re: [xwiki-users] Looking for these xwiki java API'S or java class containing these functionality?

2012-04-06 Thread Ricardo.Julio.Rodriguez.Fernandez
Hi!

 
 From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of mohit 
 gupta [motgu...@gmail.com]
 Sent: 06 April 2012 19:42
 To: XWiki Users
 Subject: [xwiki-users] Looking for these xwiki java API'S or java class 
 containing these functionality?


The first thing I would like to understand someday is what does API apply to! I 
mean, has XWiki a single API? Or has it a lot of them? Perhaps it is only a 
matter of taste, but I do really like to know how to correctly use this concept.

Can Method and API be indistinctly used?

 Hi Folks,

 I am looking for three xwiki java api's that do the following functionality
 1) I give the space name to api and it creates the space with default home
 page .

Perhaps this could be useful:

{{velocity}}
#set ($mydoc = $xwiki.getDocument(Dummy.WebHome))
$mydoc.setContent(content)
$mydoc.save()
{{/velocity}}

 2)I give userName,SpaceName and rightsName(like view,edit,delete,admin) to
 api and it gives these rights on given space name for the given username

Does this page through any light to your doubt?

http://extensions.xwiki.org/xwiki/bin/view/Extension/Setting+Rights

 3)I give spaceName to api and it gives me whether the given space exists or
 not?

I don't know how XWiki checks if a space exists when entered in an URL, but 
perhaps this could help...

$xwiki.getSpaceDocsName('YourSpaceHere).size()

If size  0 does mean that YourSpace exists!

 I was  looking for three apis in classes ---com.xpn.xwiki.xwiki.java and
 com.xpn.xwiki.api.xwiki.java but i could not locate these. But i am sure
 these api's must
 be existing (as user is able to do these stuff from user interface). I will
 be grateful if i can be directed to these apis?

 Thanks in advance.

HTH!

Ricardo

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

Nota: A informaci?n contida nesta mensaxe e os seus posibles documentos 
adxuntos ? privada e confidencial e est? dirixida ?nicamente ? seu 
destinatario/a. Se vostede non ? o/a destinatario/a orixinal desta mensaxe, por 
favor elim?nea. A distribuci?n ou copia desta mensaxe non est? autorizada.

Nota: La informaci?n contenida en este mensaje y sus posibles documentos 
adjuntos es privada y confidencial y est? dirigida ?nicamente a su 
destinatario/a. Si usted no es el/la destinatario/a original de este mensaje, 
por favor elim?nelo. La distribuci?n o copia de este mensaje no est? autorizada.

See more languages: http://www.sergas.es/aviso_confidencialidad.htm
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] How to add a sub-menu button for image menu in wysiwyg editor inline form

2012-04-06 Thread du du
Ok, thanks very much for your help.
Dave

On Fri, Apr 6, 2012 at 6:50 AM, Marius Dumitru Florea 
mariusdumitru.flo...@xwiki.com wrote:

 On Fri, Apr 6, 2012 at 1:49 AM, du du ddd...@gmail.com wrote:
  Hi, all,
 
  I am trying to add an addComments sub-menu item to image button from the
  menu bar of WYSIWYG editor, what it does is to add comments for an image
  inserted in the editor because I need to explain what each image is about
  after I put it in the editor, I checked the
  class:XWiki.WysiwygEditorConfigClass and the wysiwyg.js, I added a
  sub-menu in
  the WysiwygEditorConfigClass for image menu, but after that, I got lost,
  this sub-menu button is supposed to connect to a plugin to trigger java
 to
  run I believe since it is a plugin and each sub-menu like
  imageInsertAttached, imageInsertURL is a plugin, but I could not find the
  code where it calls a plugin, so how is the sub-menu button hooked to the
  plugin? when a user clicks on the submenu button in the editor (inline
  form) page, which javascript function gets called?

 You can find here

 https://github.com/xwiki/xwiki-platform/tree/master/xwiki-platform-core/xwiki-platform-wysiwyg
 the code of the WYSIWYG content editor. For instance, the image
 plugin, which handles the image menu, is located here

 https://github.com/xwiki/xwiki-platform/tree/master/xwiki-platform-core/xwiki-platform-wysiwyg/xwiki-platform-wysiwyg-client/src/main/java/org/xwiki/gwt/wysiwyg/client/plugin/image
 . The actual code that fills the image menu is

 https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-wysiwyg/xwiki-platform-wysiwyg-client/src/main/java/org/xwiki/gwt/wysiwyg/client/plugin/image/ImageMenuExtension.java
 .

 You should know that the WYSIWYG content editor is written using
 Google WebToolkit (GWT). The Java code is compiled into JavaScript at
 build time.

 Hope this helps,
 Marius

 
  Thanks very much in advance!!
 
  Dave
  ___
  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

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


[xwiki-users] File Upload Page

2012-04-06 Thread du du
Hi, all,

I am trying to add a file upload page to xwiki, since the FileUploadPlugin
java class is deprecated, is there any other fileupload component available
for reuse? if no, I need to create the component on my own, my concern is I
need to insert the file uploaded into database and keep it separate from
all the other wiki tables, I like to create a separate table specifically
for files uploaded, that means I need to use Hibernate in java code to
handle that, any examples about how to do that? BTW, I am coming from
IBatis background.

Thanks in advance

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


[xwiki-users] XWikiPreferences Source Code

2012-04-06 Thread du du
Hi, all,

One question, I am trying to look at the source code of XWikiPreferences
class, AdminSheet class, but after I searched Data Type, I got a lot of
classes back, I clicked on these two classes, it always shows the rendering
result, I have no way to look at the velocity code behind the classes, but
other classes like BlogClass, I can go inside the BlogSheet and use Edit
button - Wiki to see the velocty code, why for these two classes I cannot
see the code, any ideas?

Thanks

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


[xwiki-users] Blog.CreatePost forwarded to wrong url

2012-04-06 Thread du du
Hi, all,
I got a weired problem with url handling, when I am on this page:
http://mydomain.com/xwikim/bin/view/Blog/CreatePost, which gives me a
create post button to create post, I check the form action url is:
/xwikim/bin/view/Blog/CreatePost?xpage=plain, when I click on the create
button, it comes to this url:
http://localhost/xwikim/bin/edit/Blog/Post+title?template=Blog.BlogPostTemplateparent=Blog.WebHometitle=Post+titleBlog.BlogPostClass_0_title=Post+titleform_token=SviDayJaWpElmFlAzjoSKw,
from which I got Unable to connect error, I am not sure why it switched
from mydomain.com to localhost, all other links and buttons are working
fine without this kind of problem.

My setup is like that I have an apache web server installed with port 80
opened to the public internet, which forwards request to tomcat with port
8082 on localhost. all other links work fine, only the createpost has this
problem.

Any clue from any of you?

Thanks very much in advance

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


Re: [xwiki-users] [xwiki-devs] XWikiPreferences Source Code

2012-04-06 Thread Sergiu Dumitriu

On 04/06/2012 07:19 PM, du du wrote:

Hi, all,

One question, I am trying to look at the source code of XWikiPreferences
class, AdminSheet class, but after I searched Data Type, I got a lot of
classes back, I clicked on these two classes, it always shows the rendering
result, I have no way to look at the velocity code behind the classes, but
other classes like BlogClass, I can go inside the BlogSheet and use Edit
button - Wiki to see the velocty code, why for these two classes I cannot
see the code, any ideas?


There's no source code for a class. Do you mean the code of the sheet 
that displays the administration interface? It's true that trying to 
access the document itself will always redirect to the administration 
UI, but you can always use the URL bar to manually change the URL and go 
into edit mode:


http://localhost:8080/xwiki/bin/edit/XWiki/AdminSheet?editor=wiki

Please don't cross-post user questions to the devs list.
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users