On 15.2.2004, at 11:18, Oliver Zeigermann wrote: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.
Are there any docs on what the methods in those interfaces should actually be doing? Example from ContentStore interface:
NodeRevisionContent retrieveRevisionContent (Uri uri, NodeRevisionDescriptor revisionDescriptor)
I can figure out what the NodeRevisionContent and the descriptor but what does the "uri" contain when you are using a database as a repository?
Uri describes to the path to the resource you want to access. E.g. '/files/text/Doc.txt' might be such a path. There should be no problem to store such data in an RDBMS, right?
Also are you forced to use versioning of files? We haven't yet implemented versions for files in our system.
No need to worry. If you implement the interfaces properly Slide does this for you.
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>
What does the org.apache.slide.store.impl.rdbms.J2EE handle then? What are the "rest" of the stores?
And what does compress true mean?
Sorry, for the verbatim data, just copied this from another post. Just ignore compress... Anyway, for every store there is an interface at org.apache.slide.store that must be implemented. Have a look at the interfaces. Every store handles one aspect of a resource, but you can have one store handling all...
Oliver
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
