Hi,
Please help me out,
8. Help for XWiki - User Login Counter
(prabhakar.gopalsamy(a)wipro.com)
Hi All,
I want to be creating the XWiki - User / Admin Login Counter. - (Page
visited for intranet through respective Login).
Please help me, how to do that? If anyone has xwiki code, please send to
me. I am new to XWiki.
Regards,
Prabhakar Gopalsamy
______________________________
Wipro Technologies
-----Original Message-----
From: users-bounces(a)xwiki.org [mailto:users-bounces@xwiki.org] On Behalf
Of users-request(a)xwiki.org
Sent: Wednesday, October 31, 2007 1:26 PM
To: users(a)xwiki.org
Subject: users Digest, Vol 3, Issue 69
Send users mailing list submissions to
users(a)xwiki.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.xwiki.org/mailman/listinfo/users
or, via email, send a message with subject or body 'help' to
users-request(a)xwiki.org
You can reach the person managing the list at
users-owner(a)xwiki.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of users digest..."
Today's Topics:
1. Re: Sample Groovy Code (V. Harikrishnan Nair)
2. Adding a document in
XWiki.org (V. Harikrishnan Nair)
3. Re: Xwiki file and attachment storage (Vincent Massol)
4. Re: Sample Groovy Code (Vincent Massol)
5. Re: Adding a document in
XWiki.org (Vitantonio Messa)
6. Re: Adding a document in
XWiki.org (Vincent Massol)
7. Re: Xwiki file and attachment storage
(Your XEN ICT Team - Ricardo Rodriguez)
8. Help for XWiki - User Login Counter
(prabhakar.gopalsamy(a)wipro.com)
----------------------------------------------------------------------
Message: 1
Date: Tue, 30 Oct 2007 22:19:08 -0700 (PDT)
From: "V. Harikrishnan Nair" <harikrishnan_v(a)amritatech.com>
Subject: Re: [xwiki-users] Sample Groovy Code
To: users(a)xwiki.org
Message-ID: <13502522.post(a)talk.nabble.com>
Content-Type: text/plain; charset=us-ascii
Hello Vincent,
I've found out QueryPluginApi from the docs. But even if this is the
API
you meant, why is it not possible to use Groovy to access the database
of my
choice to display my data ?
Harikrishnan
vmassol wrote:
Hi,
Don't call the database directly. XWiki offers API for doing this.
What tutorial are you referring to?
Thanks
-Vincent
On Oct 30, 2007, at 11:53 AM, V. Harikrishnan Nair wrote:
Hi all...
I am learning how to read from the default xwiki database xwiki_db
using
groovy. This is the code I got from the tutorial ->
-------------
import groovy.sql.Sql
sql =
Sql.newInstance("jdbc:jtds:sqlserver://serverName/dbName-
CLASS;domain=domainName",
"username",
"password", "net.sourceforge.jtds.jdbc.Driver")
sql.eachRow("select * from tableName", { println it.id + " --
${it.firstName} --"} );
------------
This is the code which is edited by me ->
-----------
import groovy.sql.Sql
sql =
Sql.newInstance("jdbc:jtds:sqlserver://localhost/xwiki_db-
CLASS;domain=domainName",
"sa",
"", "net.sourceforge.jtds.jdbc.Driver")
sql.eachRow("select * from XWIKIDOC", { println it.id + " -- $
{it.firstName}
--"} );
----------
Can anyone please rectify any errors here ? Especially the closure
in the
third line as I don't know the fields present in XWIKIDOC table...
Thanks,
Harikrishnan
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
--
View this message in context:
http://www.nabble.com/Sample-Groovy-Code-tf4717685.html#a13502522
Sent from the XWiki- Users mailing list archive at
Nabble.com.
------------------------------
Message: 2
Date: Tue, 30 Oct 2007 23:57:03 -0700 (PDT)
From: "V. Harikrishnan Nair" <harikrishnan_v(a)amritatech.com>
Subject: [xwiki-users] Adding a document in
XWiki.org
To: users(a)xwiki.org
Message-ID: <13503839.post(a)talk.nabble.com>
Content-Type: text/plain; charset=us-ascii
Hello...
I've been able to read and enter data into my personal MySQL database
(after a very long night, finally!) and I think this should be added
into
the documentation for
XWiki.org but first, I want to get data from a
textbox
into the database...
Because the first thing that newbies like me wanted to do was to
communicate with a personal database (especially through the use of
forms),
I believe this is important.
How can I add a document in
XWiki.org ? Do I have editing rights ?
Harikrishnan
--
View this message in context:
http://www.nabble.com/Adding-a-document-in-XWiki.org-tf4723188.html#a135
03839
Sent from the XWiki- Users mailing list archive at
Nabble.com.
------------------------------
Message: 3
Date: Wed, 31 Oct 2007 07:59:05 +0100
From: Vincent Massol <vincent(a)massol.net>
Subject: Re: [xwiki-users] Xwiki file and attachment storage
To: XWiki Users <users(a)xwiki.org>
Message-ID: <25635B2F-435B-4FBB-9191-84868EFD0F94(a)massol.net>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
On Oct 31, 2007, at 12:01 AM, Your XEN ICT Team - Ricardo Rodriguez
wrote:
Vincent Massol wrote:
Sorry but no. The scope for 1.2 was changed a
long time ago. More =
importantly Artem who was working on it has
stopped participating
to =
XWiki for some time since he's busy on other
stuff. He'll join us
back =
later but there's no ETA right now on the JCR
implementation.
However I'm curious to know why you need attachments stored in the =
file system.
Thanks
-Vincent
Sorry if jumping in this thread is not the most elegant way of =
collaborate, but I've missed this option, to store attachments in
the =
file system, today.
For instance: we use a lot of high resolution pictures in our work.
If I =
can store this images in the file system I can access them by using =
"regular" drive mapping, web server access, sftp,... I mean: I could =
keep relying on different clients to read the files while I could
rely =
on XWiki to easy the way users "load" files in the system.
Hope this makes sense for you.
Definitely. For this use case, webdav support would probably be the
best. We have jira issues opened for this but nobody has implemented
it yet AFAIK. I guess if the JCR implementation also supports Webdav
that should work too.
-Vincent
------------------------------
Message: 4
Date: Wed, 31 Oct 2007 08:01:06 +0100
From: Vincent Massol <vincent(a)massol.net>
Subject: Re: [xwiki-users] Sample Groovy Code
To: XWiki Users <users(a)xwiki.org>
Message-ID: <C46002A9-5CF4-45A1-BEC3-7BC51FF3B9E9(a)massol.net>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
First, you need to tell us what's your use case. What information do
you wish to get from the database?
Thanks
-Vincent
On Oct 31, 2007, at 6:19 AM, V. Harikrishnan Nair wrote:
Hello Vincent,
I've found out QueryPluginApi from the docs. But even if this is
the API
you meant, why is it not possible to use Groovy to access the
database of my
choice to display my data ?
Harikrishnan
vmassol wrote:
Hi,
Don't call the database directly. XWiki offers API for doing this.
What tutorial are you referring to?
Thanks
-Vincent
On Oct 30, 2007, at 11:53 AM, V. Harikrishnan Nair wrote:
Hi all...
I am learning how to read from the default xwiki database xwiki_db
using
groovy. This is the code I got from the tutorial ->
-------------
import groovy.sql.Sql
sql =
Sql.newInstance("jdbc:jtds:sqlserver://serverName/dbName-
CLASS;domain=domainName",
"username",
"password", "net.sourceforge.jtds.jdbc.Driver")
sql.eachRow("select * from tableName", { println it.id + " --
${it.firstName} --"} );
------------
This is the code which is edited by me ->
-----------
import groovy.sql.Sql
sql =
Sql.newInstance("jdbc:jtds:sqlserver://localhost/xwiki_db-
CLASS;domain=domainName",
"sa",
"", "net.sourceforge.jtds.jdbc.Driver")
sql.eachRow("select * from XWIKIDOC", { println it.id + " -- $
{it.firstName}
--"} );
----------
Can anyone please rectify any errors here ? Especially the closure
in the
third line as I don't know the fields present in XWIKIDOC table...
Thanks,
Harikrishnan
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
--
View this message in context:
http://www.nabble.com/Sample-Groovy-Code-tf4717685.html#a13502522
Sent from the XWiki- Users mailing list archive at
Nabble.com.
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
------------------------------
Message: 5
Date: Wed, 31 Oct 2007 09:02:42 +0200
From: Vitantonio Messa <vitantonio.messa(a)coss.fi>
Subject: Re: [xwiki-users] Adding a document in
XWiki.org
To: XWiki Users <users(a)xwiki.org>
Message-ID: <47282892.90804(a)coss.fi>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Hi,
if you take a look at the API, there are all the information you need.
It is possible to create and save a document, through the function
Xwiki.createDocument() and Document.Save(), of course this functions
will work only if you have editing rights (but if you're able to already
edit documents, you have those rights).
Vito
V. Harikrishnan Nair wrote:
Hello...
I've been able to read and enter data into my personal MySQL
database
(after a very long night, finally!) and I think this
should be added
into
the documentation for
XWiki.org but first, I want to
get data from a
textbox
into the database...
Because the first thing that newbies like me wanted to do was to
communicate with a personal database (especially through the use of
forms),
I believe this is important.
How can I add a document in
XWiki.org ? Do I have editing rights
?
Harikrishnan
------------------------------
Message: 6
Date: Wed, 31 Oct 2007 08:03:58 +0100
From: Vincent Massol <vincent(a)massol.net>
Subject: Re: [xwiki-users] Adding a document in
XWiki.org
To: XWiki Users <users(a)xwiki.org>
Message-ID: <CB37D70F-FBC1-44CD-A715-388D6EEDC60F(a)massol.net>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
On Oct 31, 2007, at 7:57 AM, V. Harikrishnan Nair wrote:
Hello...
I've been able to read and enter data into my personal MySQL
database
(after a very long night, finally!) and I think this should be added
into
the documentation for
XWiki.org but first, I want to get data from a
textbox
into the database...
Because the first thing that newbies like me wanted to do was to
communicate with a personal database (especially through the use of
forms),
I believe this is important.
You're the first one I see to have this need so I'm curious to
understand what's your use case first. My belief is that you're not
using XWiki properly.
How can I add a document in
XWiki.org ? Do I have
editing rights ?
Everybody has editing rights but before you make any change:
1) let's agree you have a valid use case and that's you're using the
proper way of doing it
2) if 1) is agreed then let's decide together where it should go on
xwiki.org
Let's start with 1) first.
Thanks for offering your help for
xwiki.org, very much appreciated.
-Vincent
------------------------------
Message: 7
Date: Wed, 31 Oct 2007 08:37:22 +0100
From: Your XEN ICT Team - Ricardo Rodriguez <webmaster(a)xen.net>
Subject: Re: [xwiki-users] Xwiki file and attachment storage
To: XWiki Users <users(a)xwiki.org>
Message-ID: <472830B2.1000901(a)xen.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Vincent Massol wrote:
Definitely. For this use case, webdav support would
probably be the
best. We have jira issues opened for this but nobody has implemented
it yet AFAIK. I guess if the JCR implementation also supports Webdav
that should work too.
-Vincent
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
Thanks, Vincent. I'll search and keep track of these issues.
Unfortunately I'm still far from being able to contribute to such an
effort. But keep trying hard!
Cheers,
--
Ricardo Rodr?guez
Your XEN ICT Team
------------------------------
Message: 8
Date: Wed, 31 Oct 2007 12:24:20 +0530
From: <prabhakar.gopalsamy(a)wipro.com>
Subject: [xwiki-users] Help for XWiki - User Login Counter
To: <users(a)xwiki.org>
Cc: prabhakar.gopalsamy(a)wipro.com
Message-ID:
<E98CB0DA71F20341907598C3494F320D015AC244(a)BLR-EC-MBX08.wipro.com>
Content-Type: text/plain; charset="us-ascii"
Hi All,
I want to be creating the XWiki - User / Admin Login Counter. - (Page
visited for intranet through respective Login).
Please help me, how to do that? If anyone has xwiki code, please send to
me. I am new to XWiki.
Regards,
Prabhakar Gopalsamy
______________________________
Wipro Technologies
The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s)
and may contain proprietary, confidential or privileged information. If
you are not the intended recipient, you should not disseminate,
distribute or copy this e-mail. Please notify the sender immediately and
destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient
should check this email and any attachments for the presence of viruses.
The company accepts no liability for any damage caused by any virus
transmitted by this email.
www.wipro.com