Hi. Kamna Jain wrote: > I want to refer back to my thread on adding XWiki attachments to SVN. > Artem and Vincent both suggested implementing the > > XWikiAttachmentStoreInterface. > > In this regard, I have a few Questions: > > 1)If I chose this option, do I have to follow the implementaion as done > for > > XWikiHibernateAttachmentStore (Is this the class that handles adding the > attachments to the DB?) Yes. You can just extend this class and override needed methods.
> 2) would that be enough - just implementing the interface, so that the > functions like saveAttachementContent() will add it to SVN and > loadAttachmentContent() will load it into XWiki from SVN. or would I > have to do something with other classes like the XWikiAction class (in > the Web package) Yes. It would be enough. > 3) Sergiu suggested that I could also use the notification mechanism for > the Fileupload action. Is this referring to the UploadAction class in > the Web ackage or the fileupload plugin? I'm not much familiar with notification mechanism in xwiki, but I think it is more simpler and better way than writing AttachmentStore. > I am sorry if I am being naive, I am just trying to undertsand the code > structure and dependencies, call hierarchies etc. Is there any place > where I can go in to understand the code better? > > 4) Also, my understanding is that the API package has all the classes > whose objects can be used in the velocity scripts at the presentation > layer. Am I right? yes > 5) Can the SVN integration be done at the presentation layer (with > velocity scripts...I doubt it, but just wanted to confirm) I think no. > 6) this is something to do with Eclispe and Subclipse I guess. I used > subclipse to download the xwiki core and then checked it out into my > workspace. The first time I did it, I had the Lucene plugin class in > there. The second time I re-did it, the plugin class was no more there. > (That is just one of the classes I noticed). could you think of > something I might have missed out? try to clean, update eclipse projects. no ideas more. -- Artem Melentyev _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

