This would be the one you need to remove
xwiki-core-1.2-rc-1.jar
Now you will have runtime problems since you run 1.2 and build 1.4.
You should build the whole war and connect it to your wiki database
*>> But, mine is the standalone installation.
>Should I uninstall this one and install the
".war" file?
>or reinstall the stand alone verison again and then try to modify the
Or you should build the 1.2 branch but even this will be a problem since
you have a 1.2rc1 install apparently
Ludovic
On Mon, Mar 31, 2008 at 3:32 PM, <devs-request(a)xwiki.org> wrote:
Send devs mailing list submissions to
devs(a)xwiki.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.xwiki.org/mailman/listinfo/devs
or, via email, send a message with subject or body 'help' to
devs-request(a)xwiki.org
You can reach the person managing the list at
devs-owner(a)xwiki.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of devs digest..."
Today's Topics:
1. Re: How can I dynamically add group rights to a space?
(Thomas Mortagne)
2. Re: How can I dynamically add group rights to a space?
(Thomas Mortagne)
3. Editing the Xwiki core (Kamna Jain)
4. Re: Editing the Xwiki core (Thomas Mortagne)
5. Editing the Xwiki core (Kamna Jain)
6. Re: Editing the Xwiki core (Ludovic Dubost)
7. Re: [Vote] for Michael Holst as Curriki Commiter (Paul Libbrecht)
----------------------------------------------------------------------
Message: 1
Date: Mon, 31 Mar 2008 20:56:58 +0200
From: "Thomas Mortagne" <thomas.mortagne(a)xwiki.com>
Subject: Re: [xwiki-devs] How can I dynamically add group rights to a
space?
To: "XWiki Developers" <devs(a)xwiki.org>
Message-ID:
<a8e97d9c0803311156j2044b5f2we0ed4b7f8a3cbafa(a)mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
On Mon, Mar 31, 2008 at 8:06 PM, Glenn Everitt
<Glenn.Everitt(a)compuware.com> wrote:
Now I feel silly...I have been changing between my
AppServerAuthServiceImpl
and XWiki Form based authentication by
commenting and uncommenting
xwiki.authentication=form
xwiki.authentication.validationKey=totototototototototototototototo
xwiki.authentication.encryptionKey=titititititititititititititititi
xwiki.authentication.cookiedomains=xwiki.com,wiki.fr
I lost my mind and left the Form authentication commented out and
surprise
surprise it wouldn't authenticate!
The suggestions from Thomas were very helpful. Here is the code that
seems
to be working
//add the view rights for the group to the page
XWikiDocument spaceDoc = context.getWiki
().getDocument(spaceName+
"." + "WebPreferences",
context);
BaseObject rightsObject =
spaceDoc.getObject("XWiki.XWikiGlobalRights", true, context);
I don't kno if it's what it want to do but here you get and momdify
the first object XWiki.XWikiGlobalRights in the document. If there is
already global rights configured for your space you will break it. You
should use newObject(String classname, XWikiContext context) instead.
rightsObject.setLargeStringValue("groups", wikiGroupName);
rightsObject.setStringValue("levels", "view");
rightsObject.setLargeStringValue("users", "");
rightsObject.setIntValue("allow", 1);
context.getWiki().saveDocument(spaceDoc,
context.getMessageTool().get("core.comment.createdUser"), context);
Glenn Everitt wrote:
>
> Whoops..
> Well here is what I coded but it did something really bad - I can't
even
> log in with superadmin. I guess I trashed
the main
XWiki.XWikiGlobalRight
> somehow. So is there a way to recover or
do just need to reinstall?
or
> could I just import an old export. Any
hints on where I went wrong
would
> be a big help.
>
> WARNING DO NOT USE THIS CODE!
>
> XWikiDocument spaceDoc = context.getWiki
().getDocument(spaceName+
> "." + "WebPreferences",
context);
> spaceDoc.setParent("");
> spaceDoc.setAuthor("UGM");
> context.getWiki().saveDocument(spaceDoc, "UGM Created Space",
> context);
>
> BaseObject rightsObject =
> spaceDoc.getObject("XWiki.XWikiGlobalRights", true, context);
> rightsObject.setLargeStringValue("groups", wikiGroupName);
> rightsObject.setStringValue("levels", "view");
> rightsObject.setLargeStringValue("users", "");
> rightsObject.setIntValue("allow", 1);
> context.getWiki().saveDocument(spaceDoc,
> context.getMessageTool().get("core.comment.createdUser"), context);
>
> Thanks again
> Glenn Everitt
>
>
> Thomas Mortagne wrote:
>>
>> Hi,
>>
>> On Mon, Mar 31, 2008 at 4:45 AM, Glenn Everitt
>> <Glenn.Everitt(a)compuware.com> wrote:
>>>
>>> I've got existing groups of users in a proprietary system and I
want to
>>> automatically create a new XWiki
user and if this is the first
user in
>>> the
>>> group I want to create a XWiki Space and an XWiki group. Finally,
I
>>> want to
>>> authorize the XWiki Group within the XWiki Space.
>>>
>>> I can create the user similar to the CreateUserFromLDAP and I can
>>> create a
>>> group by creating a new XWikiDocument and adding a GroupClass
object
>>> to it.
>>> Then I can add the user into the group by using
>>> XWikiGroupService.addUserToGroup. Next, I can create the space
using
>>> SpaceManagerPluginApi.createSpace
but I don't know how to give the
>>> group
>>> justed added rights in the space just added.
>>>
>>> I think I should use Xwiki.XWikiRights and Xwiki.XWikiGlobalRightsbut
>>> I
>>> can't figure out how to do this.
>>> I want to give Access Level rights to the added Group for the
added
>>> Space.
>>
>> Look at
>>
http://code.xwiki.org/xwiki/bin/view/Snippets/SettingRightsSnippet
>> for an example of how to configure a XWiki.XWikiRights (same as
>> XWiki.XWikiGlobalRights but on different scope) object.
>>
>> For you particular case you should edit <Space>.WebPreferences
(where
>> are listed space rights) and edit/add
XWiki.XWikiGlobalRights(because
>> you want to "globally" configure <Space> and not configure
just
>> <Space>.WebPreferences document).
>>
>>>
>>> It would be great if someone could point me to an example or
>>> explanation of
>>> how to use XWikiRights.
>>>
>>> Help is always appreciated.
>>> Thanks
>>> Glenn Everitt
>>>
>>> --
>>> View this message in context:
>>>
http://www.nabble.com/How-can-I-dynamically-add-group-rights-to-a-space--tp…
> Sent from the XWiki- Dev mailing list archive at
Nabble.com.
>
> _______________________________________________
> devs mailing list
> devs(a)xwiki.org
>
http://lists.xwiki.org/mailman/listinfo/devs
>
--
Thomas Mortagne
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
--
View this message in context:
http://www.nabble.com/How-can-I-dynamically-add-group-rights-to-a-space--tp…
Sent from the XWiki- Dev mailing list archive at
Nabble.com.
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
--
Thomas Mortagne
------------------------------
Message: 2
Date: Mon, 31 Mar 2008 21:00:43 +0200
From: "Thomas Mortagne" <thomas.mortagne(a)xwiki.com>
Subject: Re: [xwiki-devs] How can I dynamically add group rights to a
space?
To: "XWiki Developers" <devs(a)xwiki.org>
Message-ID:
<a8e97d9c0803311200v72f8f8c5q29ed2b7a60c7a1ec(a)mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
On Mon, Mar 31, 2008 at 8:56 PM, Thomas Mortagne
<thomas.mortagne(a)xwiki.com> wrote:
On Mon, Mar 31, 2008 at 8:06 PM, Glenn Everitt
<Glenn.Everitt(a)compuware.com> wrote:
> Now I feel silly...I have been changing between my
AppServerAuthServiceImpl
> and XWiki Form based authentication by
commenting and uncommenting
>
> xwiki.authentication=form
> xwiki.authentication.validationKey=totototototototototototototototo
> xwiki.authentication.encryptionKey=titititititititititititititititi
> xwiki.authentication.cookiedomains=xwiki.com,wiki.fr
>
> I lost my mind and left the Form authentication commented out and
surprise
> surprise it wouldn't authenticate!
>
> The suggestions from Thomas were very helpful. Here is the code
that
seems
> to be working
>
> //add the view rights for the group to the page
>
> XWikiDocument spaceDoc = context.getWiki
().getDocument(spaceName+
"." + "WebPreferences", context);
BaseObject rightsObject =
spaceDoc.getObject("XWiki.XWikiGlobalRights", true, context);
Sorry the unreadable previous message ;)
Maybe it's exactly what you want to do but here you get and modify the
first object XWiki.XWikiGlobalRights in the document and create it if
it does not exists. If there is already global right configured for
your space you will break it. You should use newObject(String
classname, XWikiContext context) instead.
> rightsObject.setLargeStringValue("groups", wikiGroupName);
> rightsObject.setStringValue("levels", "view");
> rightsObject.setLargeStringValue("users", "");
> rightsObject.setIntValue("allow", 1);
> context.getWiki().saveDocument(spaceDoc,
> context.getMessageTool().get("core.comment.createdUser"), context);
>
>
>
>
>
>
> Glenn Everitt wrote:
> >
> > Whoops..
> > Well here is what I coded but it did something really bad - I
can't even
>
> log in with superadmin. I guess I
trashed the main
XWiki.XWikiGlobalRight
> > somehow. So is there a way to
recover or do just need to
reinstall? or
> > could I just import an old export.
Any hints on where I went
wrong would
> > be a big help.
> >
> > WARNING DO NOT USE THIS CODE!
> >
> > XWikiDocument spaceDoc = context.getWiki
().getDocument(spaceName+
> > "." +
"WebPreferences", context);
> > spaceDoc.setParent("");
> > spaceDoc.setAuthor("UGM");
> > context.getWiki().saveDocument(spaceDoc, "UGM Created
Space",
> > context);
> >
> > BaseObject rightsObject =
> > spaceDoc.getObject("XWiki.XWikiGlobalRights", true, context);
> > rightsObject.setLargeStringValue("groups", wikiGroupName);
> > rightsObject.setStringValue("levels", "view");
> > rightsObject.setLargeStringValue("users", "");
> > rightsObject.setIntValue("allow", 1);
> > context.getWiki().saveDocument(spaceDoc,
> > context.getMessageTool().get("core.comment.createdUser"),
context);
> >
> > Thanks again
> > Glenn Everitt
> >
> >
> > Thomas Mortagne wrote:
> >>
> >> Hi,
> >>
> >> On Mon, Mar 31, 2008 at 4:45 AM, Glenn Everitt
> >> <Glenn.Everitt(a)compuware.com> wrote:
> >>>
> >>> I've got existing groups of users in a proprietary system and I
want to
>
>>> automatically create a new
XWiki user and if this is the first
user in
> >>> the
> >>> group I want to create a XWiki Space and an XWiki group.
Finally, I
> >>> want to
> >>> authorize the XWiki Group within the XWiki Space.
> >>>
> >>> I can create the user similar to the CreateUserFromLDAP and I
can
> >>> create a
> >>> group by creating a new XWikiDocument and adding a GroupClass
object
> >>> to it.
> >>> Then I can add the user into the group by using
> >>> XWikiGroupService.addUserToGroup. Next, I can create the space
using
> >>>
SpaceManagerPluginApi.createSpace but I don't know how to give
the
> >>> group
> >>> justed added rights in the space just added.
> >>>
> >>> I think I should use Xwiki.XWikiRights and
Xwiki.XWikiGlobalRights but
> >>> I
> >>> can't figure out how to do this.
> >>> I want to give Access Level rights to the added Group for the
added
> >>> Space.
> >>
> >> Look at
> >>
http://code.xwiki.org/xwiki/bin/view/Snippets/SettingRightsSnippet
> >> for an example of how to
configure a XWiki.XWikiRights (same as
> >> XWiki.XWikiGlobalRights but on different scope) object.
> >>
> >> For you particular case you should edit <Space>.WebPreferences
(where
> >> are listed space rights) and
edit/add XWiki.XWikiGlobalRights(because
> >> you want to "globally" configure <Space> and not
configure just
> >> <Space>.WebPreferences document).
> >>
> >>>
> >>> It would be great if someone could point me to an example or
> >>> explanation of
> >>> how to use XWikiRights.
> >>>
> >>> Help is always appreciated.
> >>> Thanks
> >>> Glenn Everitt
> >>>
> >>> --
> >>> View this message in context:
> >>>
http://www.nabble.com/How-can-I-dynamically-add-group-rights-to-a-space--tp…
> >>> Sent from the XWiki- Dev
mailing list archive at
Nabble.com.
> >>>
> >>> _______________________________________________
> >>> devs mailing list
> >>> devs(a)xwiki.org
> >>>
http://lists.xwiki.org/mailman/listinfo/devs
> >>>
> >>
> >>
> >>
> >> --
> >> Thomas Mortagne
> >> _______________________________________________
> >> devs mailing list
> >> devs(a)xwiki.org
> >>
http://lists.xwiki.org/mailman/listinfo/devs
> >>
> >>
> >
> >
>
> --
> View this message in context:
http://www.nabble.com/How-can-I-dynamically-add-group-rights-to-a-space--tp…
Sent from the XWiki- Dev mailing list archive at
Nabble.com.
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
--
Thomas Mortagne
--
Thomas Mortagne
------------------------------
Message: 3
Date: Mon, 31 Mar 2008 14:49:36 -0500
From: "Kamna Jain" <kammy.scorpi(a)gmail.com>
Subject: [xwiki-devs] Editing the Xwiki core
To: devs(a)xwiki.org
Message-ID:
<fb681d280803311249i38eee872n749cf7dc68afab32(a)mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Hello all,
Can anybody verify if the process I am following for modifying the Xwiki
core correct or not (I don't see the expected changes..and hence the
concern!)
I have the standalone version (for Windows) of Xwiki enterprise installed
on
my system.
I am trying to see which module is invoked whenever I upload/delete
attachments from any of the wiki pages and for this
1) I included some println statements in "
com.xpn.xwiki.store.XWikiHibernateAttachmentStore.java" and in "
com.xpn.xwiki.web.DeleteAttachmentAction.java"
2) built the xwiki-core (sometimes I also tried to built the Xwiki
enterprise app itslef)
3) added the jar created - "xwiki-core-1.4-SNAPSHOT.jar" to the WEB-INf /
lib folder of my XWiki installation (Is this what I shd be doing for
changes
to take effect?)
4) run the xwiki server
5) try to do some delete or attach actions, but I do not see the messages
(from the println statements) in the start xwiki server command prompt.
(Am
I looking at the right place for the print msgs.?)
Can anybody point out which step am I going wrong at?
Basically, I want to figure out the process of modifying the core and
seeing
the changes in the XWiki Enterprise App I am running. (This will help me
when I start adding the SVN integration capability to the core. I need to
know what I am doing works or not?)
Thanks for any help in this issue.
------------------------------
Message: 4
Date: Mon, 31 Mar 2008 22:01:50 +0200
From: "Thomas Mortagne" <thomas.mortagne(a)xwiki.com>
Subject: Re: [xwiki-devs] Editing the Xwiki core
To: "XWiki Developers" <devs(a)xwiki.org>
Message-ID:
<a8e97d9c0803311301w6b89b00du9cc42178a2feb887(a)mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
Hi,
On Mon, Mar 31, 2008 at 9:49 PM, Kamna Jain <kammy.scorpi(a)gmail.com>
wrote:
Hello all,
Can anybody verify if the process I am following for modifying the
Xwiki
core correct or not (I don't see the
expected changes..and hence the
concern!)
I have the standalone version (for Windows) of Xwiki enterprise
installed on
my system.
I am trying to see which module is invoked whenever I upload/delete
attachments from any of the wiki pages and for this
1) I included some println statements in "
com.xpn.xwiki.store.XWikiHibernateAttachmentStore.java" and in "
com.xpn.xwiki.web.DeleteAttachmentAction.java"
2) built the xwiki-core (sometimes I also tried to built the Xwiki
enterprise app itslef)
3) added the jar created - "xwiki-core-1.4-SNAPSHOT.jar" to the WEB-INf
/
lib folder of my XWiki installation (Is this
what I shd be doing for
changes
to take effect?)
4) run the xwiki server
5) try to do some delete or attach actions, but I do not see the
messages
(from the println statements) in the start xwiki
server command prompt.
(Am
I looking at the right place for the print
msgs.?)
Can anybody point out which step am I going wrong at?
Basically, I want to figure out the process of modifying the core and
seeing
the changes in the XWiki Enterprise App I am
running. (This will help
me
when I start adding the SVN integration
capability to the core. I need
to
know what I am doing works or not?)
Check if you have another xwiki-core-*.jar in WEB-INf/lib folder, it's
a common error. Escpecially has there if you have a released version
of XE as there is no 1.4.* version released yet.
Thanks for any help in this issue.
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
--
Thomas Mortagne
------------------------------
Message: 5
Date: Mon, 31 Mar 2008 15:17:47 -0500
From: "Kamna Jain" <kammy.scorpi(a)gmail.com>
Subject: [xwiki-devs] Editing the Xwiki core
To: devs(a)xwiki.org
Message-ID:
<fb681d280803311317w8188702y4ba45d2a28c372e6(a)mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
These are all the xwiki-core-* jars that I have in the WEB_INF \ lib
folder
-
xwiki-core-1.2-rc-1.jar
*xwiki-core-1.4-SNAPSHOT.jar - This is the one I keep replacing with the
new
one everytime I build the core*
xwiki-core-action-1.2-rc-1.jar
xwiki-core-component-1.2-rc-1.jar
xwiki-core-component-1.3-SNAPSHOT.jar
xwiki-core-container-api-1.2-rc-1.jar
xwiki-core-container-servlet-1.2-rc-1.jar
xwiki-core-plexus-1.2-rc-1.jar
xwiki-core-url-1.2-rc-1.jar
Am I supposed to replace all of these?
Thanks
------------------------------
Message: 6
Date: Mon, 31 Mar 2008 22:23:21 +0200
From: Ludovic Dubost <ludovic(a)xwiki.org>
Subject: Re: [xwiki-devs] Editing the Xwiki core
To: XWiki Developers <devs(a)xwiki.org>
Message-ID: <47F14839.4070901(a)xwiki.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
This would be the one you need to remove
xwiki-core-1.2-rc-1.jar
Now you will have runtime problems since you run 1.2 and build 1.4.
You should build the whole war and connect it to your wiki database
Or you should build the 1.2 branch but even this will be a problem since
you have a 1.2rc1 install apparently
Ludovic
Kamna Jain wrote:
These are all the xwiki-core-* jars that I have
in the WEB_INF \ lib
folder
-
xwiki-core-1.2-rc-1.jar
*xwiki-core-1.4-SNAPSHOT.jar - This is the one I keep replacing with the
new
one everytime I build the core*
xwiki-core-action-1.2-rc-1.jar
xwiki-core-component-1.2-rc-1.jar
xwiki-core-component-1.3-SNAPSHOT.jar
xwiki-core-container-api-1.2-rc-1.jar
xwiki-core-container-servlet-1.2-rc-1.jar
xwiki-core-plexus-1.2-rc-1.jar
xwiki-core-url-1.2-rc-1.jar
Am I supposed to replace all of these?
Thanks
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
--
Ludovic Dubost
Blog:
http://blog.ludovic.org/
XWiki:
http://www.xwiki.com
Skype: ldubost GTalk: ldubost
------------------------------
Message: 7
Date: Mon, 31 Mar 2008 22:32:54 +0200
From: Paul Libbrecht <paul(a)activemath.org>
Subject: Re: [xwiki-devs] [Vote] for Michael Holst as Curriki Commiter
To: XWiki Developers <devs(a)xwiki.org>
Message-ID: <CD47A163-B098-4125-8CC4-3AFA0632901E(a)activemath.org>
Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed
Erm,
I'm not (yet) a curriki committer but I believe Michael has already
helped me so would be welcome.
paul
Le 28 mars 08 ? 09:48, Vincent Massol a ?crit :
Note: Since this is for the curriki project I
believe only curriki
committers should vote.
Thanks
-Vincent
On Mar 27, 2008, at 11:06 PM, David Ward wrote:
Michael is working for Curriki and we would like
to add him as a
Curriki committer.
David Ward
dward(a)curriki.org
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
------------------------------
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
End of devs Digest, Vol 9, Issue 107
************************************