Hi Eirikur!

I agree many things are confusing, as apropriate, up to date documentation is yet a weak spot of Slide. But, once you get it, Slide's architecture actually is quite obvious and nice. I will try to add more docs as soon as possible and will also try to talk other people into writing some. How about you when you have finally solved your problems ;)

Anyway, to have Slide use your stores for content and user information you will have to provide your own implementation of org.apache.slide.store.ContentStore and org.apache.slide.store.SecurityStore. You will have to configure your implementation in Domain.xml as well. Consider Eirikur.filestore implements org.apache.slide.store.ContentStore and Eirikur.userstore implements org.apache.slide.store.SecurityStore this configuration taken over from the standard configuration of a J2EE store might be what you have:

<store name="j2ee" >
<nodestore classname="org.apache.slide.store.impl.rdbms.J2EE">
<parameter name="datasource">jdbc/mtx</parameter>
<parameter name="adapter">org.apache.slide.store.impl.rdbms.SQLServerRDBMSAdapter</parameter>
<parameter name="compress">true</parameter>
</nodestore>
<contentstore classname="Eirikur.filestore">
</contentstore>
<securitystore classname="Eirikur.userstore">
</securitystore>
<lockstore>
<reference store="nodestore" />
</lockstore>
<revisiondescriptorsstore>
<reference store="nodestore" />
</revisiondescriptorsstore>
<revisiondescriptorstore>
<reference store="nodestore" />
</revisiondescriptorstore>
</store>
<scope match="/" store="j2ee"/>



For a reference how to implement those interfaces have a look at
org.apache.slide.store.txfile.TxFileContentStore as the default implementation for the content store and org.apache.slide.store.impl.rdbms.J2EEStore for both.


Hope this helps as a starting point and this is the information you were looking for. Feel free to come back to the list for any open issues.

Cheers,

Oliver

Eirikur Hrafnsson wrote:

Hi all,

I have been sitting on the sidelines watching this developer mailinglist to try to figure out what strategy to take in my integration of Slide into our web application framework. We have a pure object based J2EE web framework (almost JSF compliant ;) that has it's own database driven filesystem and user system (with roles and group permissions) and would like to make the filesystem available through WebDAV with Slide. We are also working on embedding an java LDAP server that some guys at codehause.org have resurrected from a dead to open up our user system to others and there we only have to implement our own backend.

In my little knowledge of Slide it seems to be the same task at hand but it's very...very confusing as to what exactly we need to do?
What do we have to do so Slide uses our user system for authentication (possible through LDAP) and our filesystem as a supplier of the files and folders published in webdav?
Please give me two scenarios a) where we use our own file system data-structure b) we use the data-structure that comes with Slide and somehow just link to it.


Hope someone has the answers : )

Thanks in advance for any help you can give me and congratulations on the beta version coming out...

Best regards
Eirikur S. Hrafnsson, [EMAIL PROTECTED]
Chief Software Engineer
Idega Software
http://www.idega.com


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to