Re: [xwiki-users] Is there any way to view all the pages created by an user

2009-09-10 Thread Asiri Rathnayake
Hi,

On Thu, Sep 10, 2009 at 3:51 PM, Jerome Velociter  wrote:

> Asiri Rathnayake wrote:
> > 2009/9/10 Hernández Cuchí, Francisco Ricardo <
> francisco.hernan...@oepm.es>
> >
> >> Hi, brief question,
> >>
> >>
> >>
> >> Is there any way to view all the pages created by an user?
> >>
> >>
> > try:
> >
> > #set($hql = "where doc.creator='XWiki.UserName'")
> > #set($results = $xwiki.searchDocuments($hql, 0, 0))
> >
> > results will contain all the documents created by  "XWiki.UserName" user.
> >
> > For more examples see:
> >
> http://platform.xwiki.org/xwiki/bin/view/DevGuide/velocityHqlExamples#HPrivilegedAPIsearch
>
> The proper link is in fact :
>
>
> http://platform.xwiki.org/xwiki/bin/view/DevGuide/velocityHqlExamples#HPublicAPIsearchDocuments
>
> (you don't need to run a privileged search for this query, searchDocuments
> works fine as Asiri wrote)
>
>
Yes, thanks Jerome :)

- Asiri


> Jerome
>
> >
> > - Asiri
> >
> >
> >>
> >> Thanks
> >>
> >>
> >>
> >> --
> >>
> >> Francisco Hernández Cuchí
> >>
> >>
> >>
> >>
> >>
> **
> >> IMPORTANTE: El contenido de este correo y ficheros adjuntos es
> confidencial
> >> y está dirigido únicamente
> >> para el destinatario/s.
> >> Si Ud recibe este correo por error, por favor póngase en contacto con su
> >> administrador de correo o con el
> >> emisor immediatamente y no difunda su contenido a nadie ni haga copias.
> >> *** Este correo ha sido escaneado de virus y contenido malicioso ***
> >>
> >>
> **
> >> ___
> >> 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
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Is there any way to view all the pages created by an user

2009-09-10 Thread Jerome Velociter
Asiri Rathnayake wrote:
> 2009/9/10 Hernández Cuchí, Francisco Ricardo 
>
>> Hi, brief question,
>>
>>
>>
>> Is there any way to view all the pages created by an user?
>>
>>
> try:
>
> #set($hql = "where doc.creator='XWiki.UserName'")
> #set($results = $xwiki.searchDocuments($hql, 0, 0))
>
> results will contain all the documents created by  "XWiki.UserName" user.
>
> For more examples see:
> http://platform.xwiki.org/xwiki/bin/view/DevGuide/velocityHqlExamples#HPrivilegedAPIsearch

The proper link is in fact :

http://platform.xwiki.org/xwiki/bin/view/DevGuide/velocityHqlExamples#HPublicAPIsearchDocuments

(you don't need to run a privileged search for this query, searchDocuments 
works fine as Asiri wrote)

Jerome

>
> - Asiri
>
>
>>
>> Thanks
>>
>>
>>
>> --
>>
>> Francisco Hernández Cuchí
>>
>>
>>
>>
>> **
>> IMPORTANTE: El contenido de este correo y ficheros adjuntos es confidencial
>> y está dirigido únicamente
>> para el destinatario/s.
>> Si Ud recibe este correo por error, por favor póngase en contacto con su
>> administrador de correo o con el
>> emisor immediatamente y no difunda su contenido a nadie ni haga copias.
>> *** Este correo ha sido escaneado de virus y contenido malicioso ***
>>
>> **
>> ___
>> 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


Re: [xwiki-users] Is there any way to view all the pages created by an user

2009-09-10 Thread Asiri Rathnayake
2009/9/10 Hernández Cuchí, Francisco Ricardo 

> Hi, brief question,
>
>
>
> Is there any way to view all the pages created by an user?
>
>
try:

#set($hql = "where doc.creator='XWiki.UserName'")
#set($results = $xwiki.searchDocuments($hql, 0, 0))

results will contain all the documents created by  "XWiki.UserName" user.

For more examples see:
http://platform.xwiki.org/xwiki/bin/view/DevGuide/velocityHqlExamples#HPrivilegedAPIsearch

- Asiri


>
>
> Thanks
>
>
>
> --
>
> Francisco Hernández Cuchí
>
>
>
>
> **
> IMPORTANTE: El contenido de este correo y ficheros adjuntos es confidencial
> y está dirigido únicamente
> para el destinatario/s.
> Si Ud recibe este correo por error, por favor póngase en contacto con su
> administrador de correo o con el
> emisor immediatamente y no difunda su contenido a nadie ni haga copias.
> *** Este correo ha sido escaneado de virus y contenido malicioso ***
>
> **
> ___
> 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] Is there any way to view all the pages created by an user

2009-09-10 Thread Hernández Cuchí , Francisco Ricardo
Hi, brief question, 

 

Is there any way to view all the pages created by an user?

 

Thanks

 

--

Francisco Hernández Cuchí

 

**
IMPORTANTE: El contenido de este correo y ficheros adjuntos es confidencial y 
está dirigido únicamente 
para el destinatario/s.
Si Ud recibe este correo por error, por favor póngase en contacto con su 
administrador de correo o con el 
emisor immediatamente y no difunda su contenido a nadie ni haga copias.
*** Este correo ha sido escaneado de virus y contenido malicioso ***
**
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users