On 11/08/2010 03:46 PM, Thomas Mortagne wrote:
On Mon, Nov 8, 2010 at 14:57, Felipe
Giotto<felipegiotto(a)gmail.com> wrote:
Hi everybody!
I changed somethings in our XWiki source and now I want to make a
component or something like it to share with all of you, possibly
including it in the official source code.
This is the modifications I made:
* Store every attachment (including its revisions) in the filesystem,
not in the database (able to customize the storage folder in
xwiki.cfg).
* Set a "default group" to XWikiLDAPAuthServiceImpl, where all users
logged through Active Directory is automatically added to this group.
This is a workaround for the "Default Group" problem on Windows, where
the users belongs to the group in Active Directory but the "memberOf"
property comes empty.
For this one, you should create an issue on
http://jira.xwiki.org with
a patch and I will review and make suggestions (if needed ;)) before
before applying it in standard. It could be useful and not only as a
Active Directory workaround.
Note that there are other attempts at implementing this. I have one
sitting on my system since August, and Caleb has been working recently
on generic filesystem storage.
>
> My problem is I could not find an up-to-date tutorial about writing
> components. I also could not find a simple explanation about how to
> tell XWiki not to use XWikiHibernateAttachmentStore and
> HibernateAttachmentVersioningStore, using my classes instead.
>
> By the way, I'm not an advanced Java programmer, so I need the things
> well explained! ;) Anybody can help?
>
> Best regards!
>
> Felipe Giotto
--
Sergiu Dumitriu
http://purl.org/net/sergiu/