RE: Slide and JSR170
To do this you will need to perform a major 'gap-analysis' exercise. The functionality that is specified by the WebDav JCR specifications are basically over-lapping sets, i.e. the functionality of neither specification is a subset of the other but there are significant degrees of overlap. From my cursory introduction (I have been using both Slide and JCR170 for about 3 months) the following areas spring to mind: JCR Implementation * - includes version control that allows you to roll back to a named previous version. * - Node Type definitions. All nodes are related to a node type that defines the details of attributes that can be assigned to that node and can be used to restrict the type of children that can be attached. * - XML Import Export of Node hierarchies WebDav Implementation * - Ability to assign privileges to nodes (JCR spec deliberately excludes this but does allow you to check if the user has appropriate privilege) { I am sure that there are other features that are in WebDav/DeltaV but not in JCR170 but I am using the Slide Server API directly and found that Oliver is right in saying that it's not a task to be undertaken lightly :) } HTH Andy Bowes NB : Public release of JCR170 also includes the ability to have multiple parents for a specific node -Original Message- From: Oliver Zeigermann [mailto:[EMAIL PROTECTED] Sent: 01 December 2004 10:06 To: Slide Users Mailing List Subject: Re: Slide and JSR170 On Tue, 30 Nov 2004 23:13:45 -0500, John Gilbert [EMAIL PROTECTED] wrote: - wrap a webdav api (e.g. slide) with the jsr170 api This has been discussed as in option inside Slide. If you plan to implement something like that would you consider donating it to Slide? Oliver - 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]
RE: Log SQL statements ?
Shame. The combination of P6Spy IronEye SQL (http://www.irongrid.com) has helped me out loads in the past. P6Spy is open source, does anyone fancy having a look at extending it to support the methods required by the Oracle Adapter ? Andy -Original Message- From: Davide Savazzi [mailto:[EMAIL PROTECTED] Sent: 30 November 2004 13:47 To: Slide Users Mailing List Subject: Re: Log SQL statements ? On Tuesday 30 November 2004 12:18, Andy Bowes wrote: You might want to have a look at http://www.p6spy.com/. Basically it allows you to use a proxy in front of the true JDBC connection so that you can log all of the SQL statements that are sent to a JDBC driver. It's free and I believe that it works with pretty much any JDBC driver. The Oracle adapter in cvs uses Oracle JDBC extensions to manage blobs, so this proxy will not work :( -- Davide Savazzi - 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]
RE: Server API
Hi Oliver I can't say that I have any inside knowledge as to which vendors (if any) will produce implementations of the JCR170 specification but I just feel that we won't be seeing any until the spec has been totally finalised and in the Java arena for a fair while. I expect that we will see some basic open source implementations of JCR for repositories such as Lotus Notes, MediaSurface etc before the vendors add their own propriety extensions to manage security etc. From our point of view if the standard API provides 80-90% of our required functionality then it will be of benefit as we will only need to create small adapter classes to implement issues such as security if we choose to support an extra CMS. My opinion is that the JCR specification provides a pretty good API for the basic CMS functions but it will prevent you from using the all the powerful features of the underlying CMS. It is a bit like a basic JDBC driver that will allow you to insert, update and delete records in a database but won't allow you to grant permissions on tables or execute stored procedures. Andy -Original Message- From: Oliver Zeigermann [mailto:[EMAIL PROTECTED] Sent: 17 November 2004 17:22 To: Slide Users Mailing List Subject: Re: Server API On Wed, 17 Nov 2004 08:59:40 -0800, James Mason [EMAIL PROTECTED] wrote: On Wed, 2004-11-17 at 14:31 +, Andy Bowes wrote: The long term goal for our portal is to be able to migrate to a JCR compliant repository but I reckon it will be nearly a year before the major CMS players introduce robust implementations of the JCR specification. Our aim is to allow our customers to select a CMS based on cost / performance and to be able to switch CMS repositories just by reconfiguring the application. Have you seen signs that indicate major CMS players will finally implement the JCR? Just wondering... Anyway, I am afraid an exchange still will not be possible even when programming to the JCR. Certainly, it is nice to have something like an API people are familiar with, but - as you said - there are certain mandatory parts that are not adressed by the API. AFAIK this has been done on purpose and won't change. Oliver - 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]
RE: Enabling Logging
Hi Stefan I made the changes that you suggested but I get a java.lang.ClassNotFoundException: log4j.Log4jLogger. I changed this to use the org.apache.slide.util.logger.jdk14.Jdk14Logger but this does not seem to read the log4j.properties file that is in my class path. regards Andy -Original Message- From: Stefan Lützkendorf [mailto:[EMAIL PROTECTED] Sent: 09 November 2004 15:55 To: Slide Users Mailing List Subject: Re: Enabling Logging 1. add the following to your Domain.xml slide logger=log4j.Log4jLogger logger-level=7 /slide 2. put the log4j.properties to the classes directory of your webapp and configure there what you want to log hope this helps, Stefan Andy Bowes wrote: Hi Guy's I am trying to track down an issue with the deletion of items. It would be much easier if I could turn on the debug logging in a specific class ('org.apache.slide.macro.MacroImpl') Slide seems to use it's own logging classes rather than log4j or commons-logging. How do I configure this logging so that I can view the debug messages that are generated by a specific Slide class or package ? Thanks Andy Bowes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Stefan Lützkendorf -- [EMAIL PROTECTED] - 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]
RE: Enabling Logging
Hi Warwick The log4j-1.2.8.jar is in my classpath and is used by other classes in my deployment. I think that the logger that you define in the domain.xml file has to implement the org.apache.slide.util.logger.Logger interface and so the standard org.apache.log4j.Logger cannot be used directly. Andy -Original Message- From: Warwick Burrows [mailto:[EMAIL PROTECTED] Sent: 09 November 2004 16:34 To: 'Slide Users Mailing List' Subject: RE: Enabling Logging You may need to copy the log4j-1.2.8.jar file from your Slide dist to tomcat/common/lib. I can't say for sure that this is the problem though as I have other logger load problems right now and can't verify it myself :-) Warwick -Original Message- From: Andy Bowes [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 10:18 AM To: 'Slide Users Mailing List' Subject: RE: Enabling Logging Hi Stefan I made the changes that you suggested but I get a java.lang.ClassNotFoundException: log4j.Log4jLogger. I changed this to use the org.apache.slide.util.logger.jdk14.Jdk14Logger but this does not seem to read the log4j.properties file that is in my class path. regards Andy -Original Message- From: Stefan Lützkendorf [mailto:[EMAIL PROTECTED] Sent: 09 November 2004 15:55 To: Slide Users Mailing List Subject: Re: Enabling Logging 1. add the following to your Domain.xml slide logger=log4j.Log4jLogger logger-level=7 /slide 2. put the log4j.properties to the classes directory of your webapp and configure there what you want to log hope this helps, Stefan Andy Bowes wrote: Hi Guy's I am trying to track down an issue with the deletion of items. It would be much easier if I could turn on the debug logging in a specific class ('org.apache.slide.macro.MacroImpl') Slide seems to use it's own logging classes rather than log4j or commons-logging. How do I configure this logging so that I can view the debug messages that are generated by a specific Slide class or package ? Thanks Andy Bowes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Stefan Lützkendorf -- [EMAIL PROTECTED] - 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] - 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]
RE: Enabling Logging
Thanks Stefan I don't have that jar at the moment, I'll download it now and give it a try. -Original Message- From: Stefan Lützkendorf [mailto:[EMAIL PROTECTED] Sent: 09 November 2004 16:43 To: Slide Users Mailing List Subject: Re: Enabling Logging Andy, do you have the slide-log4jlogger-2.1b2.jar in your classpath? There the log4j.Log4jLogger class lives. Stefan Andy Bowes wrote: Hi Stefan I made the changes that you suggested but I get a java.lang.ClassNotFoundException: log4j.Log4jLogger. I changed this to use the org.apache.slide.util.logger.jdk14.Jdk14Logger but this does not seem to read the log4j.properties file that is in my class path. regards Andy -Original Message- From: Stefan Lützkendorf [mailto:[EMAIL PROTECTED] Sent: 09 November 2004 15:55 To: Slide Users Mailing List Subject: Re: Enabling Logging 1. add the following to your Domain.xml slide logger=log4j.Log4jLogger logger-level=7 /slide 2. put the log4j.properties to the classes directory of your webapp and configure there what you want to log hope this helps, Stefan Andy Bowes wrote: Hi Guy's I am trying to track down an issue with the deletion of items. It would be much easier if I could turn on the debug logging in a specific class ('org.apache.slide.macro.MacroImpl') Slide seems to use it's own logging classes rather than log4j or commons-logging. How do I configure this logging so that I can view the debug messages that are generated by a specific Slide class or package ? Thanks Andy Bowes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Stefan Lützkendorf -- [EMAIL PROTECTED] - 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]
RE: Enabling Logging
Thanks Stefan That now works. I can now start to trace my way through the MacroHelper :) Andy -Original Message- From: Andy Bowes [mailto:[EMAIL PROTECTED] Sent: 09 November 2004 16:46 To: 'Slide Users Mailing List' Subject: RE: Enabling Logging Thanks Stefan I don't have that jar at the moment, I'll download it now and give it a try. -Original Message- From: Stefan Lützkendorf [mailto:[EMAIL PROTECTED] Sent: 09 November 2004 16:43 To: Slide Users Mailing List Subject: Re: Enabling Logging Andy, do you have the slide-log4jlogger-2.1b2.jar in your classpath? There the log4j.Log4jLogger class lives. Stefan Andy Bowes wrote: Hi Stefan I made the changes that you suggested but I get a java.lang.ClassNotFoundException: log4j.Log4jLogger. I changed this to use the org.apache.slide.util.logger.jdk14.Jdk14Logger but this does not seem to read the log4j.properties file that is in my class path. regards Andy -Original Message- From: Stefan Lützkendorf [mailto:[EMAIL PROTECTED] Sent: 09 November 2004 15:55 To: Slide Users Mailing List Subject: Re: Enabling Logging 1. add the following to your Domain.xml slide logger=log4j.Log4jLogger logger-level=7 /slide 2. put the log4j.properties to the classes directory of your webapp and configure there what you want to log hope this helps, Stefan Andy Bowes wrote: Hi Guy's I am trying to track down an issue with the deletion of items. It would be much easier if I could turn on the debug logging in a specific class ('org.apache.slide.macro.MacroImpl') Slide seems to use it's own logging classes rather than log4j or commons-logging. How do I configure this logging so that I can view the debug messages that are generated by a specific Slide class or package ? Thanks Andy Bowes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Stefan Lützkendorf -- [EMAIL PROTECTED] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Deleting Link Node References
Hi I am encountered a problem when I attempt to the delete a LinkNode. It seems that references to this LinkNode are left on ObjectNodes which have had the link added to them when the LinkNode is deleted. This causes a DeleteMacroException to be thrown if I later attempt to delete the ObjectNode with the 'orphaned' link reference. Steps to demonstrate this are as follows:- 1. Create ObjectNode - node1 2. Create ObjectNode - node2 3. Create LinkNode (linkNode1) that references node1. 4. Add link to linkNode1 to node2. 5. Delete node1 using the MacroHelper (This automatically deletes linkNode1 as well as part of it's recursive deletion) 6. Attempt to delete node2 - This causes a DeleteMacroException to be thrown. I expected that the link should be deleted by the MacroHelper when the LinkNode is deleted. Has anyone else seen this ? regards Andy Bowes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Enabling Logging
Hi Guy's I am trying to track down an issue with the deletion of items. It would be much easier if I could turn on the debug logging in a specific class ('org.apache.slide.macro.MacroImpl') Slide seems to use it's own logging classes rather than log4j or commons-logging. How do I configure this logging so that I can view the debug messages that are generated by a specific Slide class or package ? Thanks Andy Bowes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Is anyone using LinkNodes
Hi Guys, Is anyone out there using the Slide Server API to create LinkNodes ? I am attempting to use LinkNodes to assign documents to locations in a classification hierarchy (i.e. A document can be assigned to multiple classifications but all changes will be applied to a single physical document) and I am having a few problems getting this to work in the manner that I expected. Is there anywhere that I can get more information on the use of LinkNodes other than the JavaDoc which is a bit sketchy ? regards Andy Bowes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Error Deleting Item
Hi Oliver Thanks for the reply. Closing the stream did help to resolve the problem. (I wasn't aware that the stream had even been opened as I hadn't called the getStream() method). Thanks Andy Bowes -Original Message- From: Oliver Zeigermann To: Slide Users Mailing List Sent: 29/10/2004 10:21 Subject: Re: Error Deleting Item The error tells you that you still have a temporary read lock on the resource to delete. Either execute contentHelper.retrieve(slideToken, itemUri, currentRevision); in a transaction or get the stream from it and close it (or access the content in any other way). Oliver On Fri, 29 Oct 2004 09:58:24 +0100, Andy Bowes [EMAIL PROTECTED] wrote: Hi Guys I am using the Slide API directly rather than via the WebDav layer and I am encountering an error that has had me baffled for quite a few days. If I attempt to delete an item after fetching content then I get the following error (after it seems to hang for ages): 29 Oct 2004 09:51:30 - org.apache.slide.store.txfile.rm.impl.FileResourceManager - WARNING - Could not commit tx main-1099039880546-8, rolling back instead 29 Oct 2004 09:51:30 - org.apache.slide.store.txfile.rm.impl.FileResourceManager - WARNING - org.apache.slide.store.txfile.rm.ResourceManagerException: main-1099039880546-8: Could not upgrade to commit lock for resource at '/testfolder/myTestItem_1.0' (ERR_NO_LOCK) org.apache.slide.store.txfile.rm.ResourceManagerException: main-1099039880546-8: Could not upgrade to commit lock for resource at '/testfolder/myTestItem_1.0' (ERR_NO_LOCK) at org.apache.slide.store.txfile.rm.impl.FileResourceManager$TransactionCon text .upgradeLockToCommit(FileResourceManager.java:1434) at org.apache.slide.store.txfile.rm.impl.FileResourceManager$TransactionCon text .commit(FileResourceManager.java:1383) at org.apache.slide.store.txfile.rm.impl.FileResourceManager.commitTransact ion( FileResourceManager.java:616) at org.apache.slide.store.txfile.AbstractTxFileStoreService.commit(Abstract TxFi leStoreService.java:248) at org.apache.slide.transaction.SlideTransaction.commit(SlideTransaction.ja va:3 01) at org.apache.slide.transaction.SlideTransactionManager.commit(SlideTransac tion Manager.java:187) at org.apache.slide.common.NamespaceAccessTokenImpl.commit(NamespaceAccessT oken Impl.java:412) I have extracted the key parts of my calls to the Slide API into a single method (as show below) so that I can reproduce this error. If I remove the call to contentHelper.retrieve() then it all works fine. Can anyone out there enlighten me ? Thanks Andy Bowes p.s. I am using v2.0 and I have encountered this issue on both the Text JDBC File Stores. private void testSlideCreation(SlideToken slideToken, NamespaceAccessToken accessToken, String itemUri) throws Exception { Content contentHelper = accessToken.getContentHelper(); Structure structureHelper = accessToken.getStructureHelper(); // Start the Transaction accessToken.begin(); structureHelper.create(slideToken, new SubjectNode(), itemUri); NodeRevisionDescriptor revisionDesc = new NodeRevisionDescriptor(); Date now = new Date(); revisionDesc.setCreationDate(now); revisionDesc.setCreationUser(root); revisionDesc.setLastModified(now); revisionDesc.setModificationDate(now); revisionDesc.setModificationUser(root); revisionDesc.setResourceType(scientia:test); String contents = Test Binary Contents; revisionDesc.setContentLength(contents.length()); revisionDesc.setContentType(application/pdf); revisionDesc.setContentLanguage(en); NodeRevisionContent revisionContent = new NodeRevisionContent(); revisionContent.setContent(contents.getBytes()); contentHelper.create(slideToken, itemUri, revisionDesc, revisionContent ); // Commit the Creation Transaction accessToken.commit(); // Fetch the Created Item ObjectNode itemNode = structureHelper.retrieve(slideToken, itemUri); NodeRevisionDescriptors revisions = contentHelper.retrieve(slideToken, itemUri); // Get the latest revision of this Content NodeRevisionDescriptor currentRevision = contentHelper.retrieve(slideToken, revisions); // Get the Content of the Current Revision NodeRevisionContent content = contentHelper.retrieve(slideToken, itemUri, currentRevision); // Delete the Created Item accessToken.begin(); Macro macroHelper = accessToken.getMacroHelper(); macroHelper.delete(slideToken, itemUri); accessToken.commit(); } - To unsubscribe, e-mail: [EMAIL
RE: Difference between Links Bindings ?
Thanks Stefan that helps a lot. We are not looking to use a WebDav client so we are free to choose whichever mechanism makes our life simpler. If I use LinkNodes rather than Bindings are these 'dangling' links removed if you perform the delete via the org.apache.slide.macro.Macro class ? Can LinkNodes also be accessed via a URI ? For example if I link a node '/guys/fred' as 'ford' below '/mechanics/byBrand' can it be accessed via '/mechanics/byBrand/ford' ? regards Andy -Original Message- From: Stefan Lützkendorf [mailto:[EMAIL PROTECTED] Sent: 06 October 2004 13:49 To: Slide Users Mailing List Subject: Re: Difference between Links Bindings ? Some differents are - With bindings for each resource is an unique uri is created (some thing like /19832093810928301) and this resource is than bound in to arbitrary collections as a member. e.g. the resource with the given uuri may be the member fred in the collection /guys and thats why have one url /guys/fred. but the same resource can have the name ford in the collection /mechanics/byBrand and so have a second uri /mechanics/byBrand/ford. if you remove any of these urls not the resource is deleted, but only the binding. If the last binding is deleted than the resource is deleted to. - With LinkNodes you have a 'primary' resource to which other nodes are linked. May be you have a resource (node) with url /guys/fred and you create a lnk node /mechanics/byBrand/ford. Than you have two nodes of differend kind, if you delete the primary resource, the links are dangling and must be deleted. - Bindings can be created by clients via webdav Methods BIND, UNBIND, REBIND but LinkNodes can not be created by the client. Hope this helps, Stefan Andy Bowes wrote: Hi Guys Is there anywhere that describes the differences between LinkNodes and Bindings and also provides an overview on when each of these techniques should be used ? regards Andy Bowes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Stefan Lützkendorf -- [EMAIL PROTECTED] - 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]
RE: Error downloading Slide 2.1 beta 1
I've just tried it. It works ok for me. -Original Message- From: Cláudio Rodrigues Carvalho [mailto:[EMAIL PROTECTED] Sent: 06 October 2004 15:41 To: Slide Users Mailing List Subject: Error downloading Slide 2.1 beta 1 Hi, I'm trying to download the Slide 2.1 beta 1 at this link http://cvs.apache.org/dist/jakarta/slide/2.1b1/bin/jakarta-slide-server-bin- 2.1b1.zip http://cvs.apache.org/dist/jakarta/slide/2.1b1/bin/jakarta-slide-server-bin -2.1b1.zip but I'm getting the error Server Not Found, does anybody know if this link is broken? Thanks Claudio. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Difference between Links Bindings ?
Hi I am attempting to create a Link between a Category Node and another Node using the following code. It all seems to execute OK but no link is being created. I have stepped through it in debug to check that I am accessing the right nodes and everything looks to be fine. accessToken.begin(); ObjectNode categoryNode = structure.retrieve(slideToken, categoryPath); ObjectNode itemNode = structure.retrieve(slideToken, itemPath); LinkNode linkNode = new LinkNode(itemNode.getUri()); categoryNode.addLink(linkNode); accessToken.commit(); I have also tried calling the structure.createLink() method but have got the same result. I am using TxXMLFileDescriptorsStore and expected to see a link element added to the XML file for the Category node. Am I missing something or is this a bug ? regards Andy -Original Message- From: Stefan Lützkendorf [mailto:[EMAIL PROTECTED] Sent: 06 October 2004 15:07 To: Slide Users Mailing List Subject: Re: Difference between Links Bindings ? Andy Bowes wrote: Thanks Stefan that helps a lot. We are not looking to use a WebDav client so we are free to choose whichever mechanism makes our life simpler. If I use LinkNodes rather than Bindings are these 'dangling' links removed if you perform the delete via the org.apache.slide.macro.Macro class ? I don't know, must have a look at it. Can LinkNodes also be accessed via a URI ? For example if I link a node '/guys/fred' as 'ford' below '/mechanics/byBrand' can it be accessed via '/mechanics/byBrand/ford' ? Yes, that should work. regards Andy -Original Message- From: Stefan Lützkendorf [mailto:[EMAIL PROTECTED] Sent: 06 October 2004 13:49 To: Slide Users Mailing List Subject: Re: Difference between Links Bindings ? Some differents are - With bindings for each resource is an unique uri is created (some thing like /19832093810928301) and this resource is than bound in to arbitrary collections as a member. e.g. the resource with the given uuri may be the member fred in the collection /guys and thats why have one url /guys/fred. but the same resource can have the name ford in the collection /mechanics/byBrand and so have a second uri /mechanics/byBrand/ford. if you remove any of these urls not the resource is deleted, but only the binding. If the last binding is deleted than the resource is deleted to. - With LinkNodes you have a 'primary' resource to which other nodes are linked. May be you have a resource (node) with url /guys/fred and you create a lnk node /mechanics/byBrand/ford. Than you have two nodes of differend kind, if you delete the primary resource, the links are dangling and must be deleted. - Bindings can be created by clients via webdav Methods BIND, UNBIND, REBIND but LinkNodes can not be created by the client. Hope this helps, Stefan Andy Bowes wrote: Hi Guys Is there anywhere that describes the differences between LinkNodes and Bindings and also provides an overview on when each of these techniques should be used ? regards Andy Bowes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Stefan Lützkendorf -- [EMAIL PROTECTED] - 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]
Errors after reading content
Hi, I am creating an application that uses the Slide Kernal to provide a CMS and I am having problems when I attempt to read NodeRevisionContent items from the repository. If I retrieve the content using NodeRevisionContent content = contentHelper.retrieve(slideToken, path.getFullPath(), currentRevision); then I encounter the following errors later in my application when I attempt to commit any transactions: org.apache.slide.store.txfile.rm.ResourceManagerException: main-1096986354234-8: Could not upgrade to commit lock for resource at '/testfolder/SiteArea_1096986353859_1.0' (ERR_NO_LOCK) at org.apache.slide.store.txfile.rm.impl.FileResourceManager$TransactionContext .upgradeLockToCommit(FileResourceManager.java:1434) at org.apache.slide.store.txfile.rm.impl.FileResourceManager$TransactionContext .commit(FileResourceManager.java:1383) at org.apache.slide.store.txfile.rm.impl.FileResourceManager.commitTransaction( FileResourceManager.java:616) at org.apache.slide.store.txfile.AbstractTxFileStoreService.commit(AbstractTxFi leStoreService.java:248) at org.apache.slide.transaction.SlideTransaction.commit(SlideTransaction.java:3 01) at org.apache.slide.transaction.SlideTransactionManager.commit(SlideTransaction Manager.java:187) at org.apache.slide.common.NamespaceAccessTokenImpl.commit(NamespaceAccessToken Impl.java:412) at com.scientia.core.content.impl.slide.ContentManagerSlideImpl.commitTransacti on(ContentManagerSlideImpl.java:889) If I don't attempt to retreive the content and just read the meta-data from the NodeRevisionDescriptor then everything works ok. Do I need to perform any other operations around the reading of the content e.g. close an InputStream or commit a transaction ? Thanks Andy Bowes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Copying files directly to slide directory in file system
Hi Claudio The classes that you need are in the standard download of Slide. Just follow the download links from http://jakarta.apache.org/slide/download.html HTH Andy -Original Message- From: Cláudio Rodrigues Carvalho [mailto:[EMAIL PROTECTED] Sent: 05 October 2004 15:23 To: Slide Users Mailing List Subject: RES: Copying files directly to slide directory in file system Oliver, There are some imports in SimpleFileStore.java import org.apache.slide.content.*; import org.apache.slide.common.*; import org.apache.slide.structure.*; import org.apache.slide.store.file.*; Do you how can I find those classes? Thanks Claudio Carvalho. -Mensagem original- De: Oliver Zeigermann [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 5 de outubro de 2004 11:05 Para: Slide Users Mailing List Assunto: Re: Copying files directly to slide directory in file system AFAIK there is no such jar... Oliver Cláudio Rodrigues Carvalho schrieb: Ok Oliver, Do you know where can I find the .jar that contains org.apache.slide.* ? Thank you very much. Claudio Carvalho -Mensagem original- De: Oliver Zeigermann [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 5 de outubro de 2004 10:27 Para: Slide Users Mailing List Assunto: Re: Copying files directly to slide directory in file system You will have to check out the latest sources from the Apache CVS server. More information is on http://jakarta.apache.org/site/cvsindex.html The store I was talking about is in src\stores\org\apache\slide\store\file Oliver Cláudio Rodrigues Carvalho schrieb: Oliver, Sorry, but I'm new at Slide Users and I don't know exactly how to deal with CVS HEAD, could you be more specific? Thanks. Claudio Carvalho. -Mensagem original- De: Oliver Zeigermann [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 5 de outubro de 2004 10:16 Para: Slide Users Mailing List Assunto: Re: Copying files directly to slide directory in file system The default store is not meant as a mapper from a file systen to WebDAV. If you want something like this try the simple file store contributed by Alon (which is in the CVS HEAD). Oliver Cláudio Rodrigues Carvalho schrieb: Hi, Does anybody know if its possible to copy files directly to slide directory defined in Domain.xml? If so, do I have to generate the .xml for each file? Thanks. Claudio Carvalho. - 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] - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Versioning - Rolling back to a previous version of a Node
Hi Guys, I am trying to find a way to programmatically (i.e. via the Slide kernal API ) roll back to a previous version of a Node. What I am trying to do is basically the following: 1. Create Node (revision no 1) 2. Update Node (revision no 2) 3. Update Node (revision no 3) 4. Update Node (revision no 4) 5. Update Node (revision no 5) 6. Rollback to revision no 3 (i.e. discard modifications in revisions 4 5) I thought that I would be able to acheive this via the org.apache.slide.content.NodeRevisionDescriptors class as it has a setLatestRevision() method however this only has package level visibility so I can't invoke it from my classes. Is there any other way to perform this operation ? Thanks Andy Bowes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Error creating SearchQuery
Thanks Julian. That's great and the link is really useful. -Original Message- From: Julian Reschke [mailto:[EMAIL PROTECTED] Sent: 23 September 2004 16:47 To: Slide Users Mailing List Subject: Re: Error creating SearchQuery Andy Bowes wrote: Hi Guys, I am getting the following exception thrown when I attempt to create a SearchQuery: org.apache.slide.search.InvalidQueryException: Expected exactly 1 prop element, found 2 at org.apache.slide.search.basic.expression.ComparedProperty.setProperty(Compar edProperty.java:169) at org.apache.slide.search.basic.expression.ComparedProperty.init(ComparedPro perty.java:123) at org.apache.slide.search.basic.expression.ComparePropertyExpression.init(Co mparePropertyExpression.java:65) at org.apache.slide.search.basic.expression.EQExpression.init(EQExpression.ja va:47) at org.apache.slide.search.basic.BasicExpressionFactory.createDAVExpression(Bas icExpressionFactory.java:241) at org.apache.slide.search.basic.BasicExpressionFactory.createExpression(BasicE xpressionFactory.java:193) at org.apache.slide.search.basic.BasicExpressionCompiler.createExpression(Basic ExpressionCompiler.java:177) at org.apache.slide.search.basic.BasicExpressionCompiler.compile(BasicExpressio nCompiler.java:130) at org.apache.slide.search.basic.BasicQueryImpl.parseQuery(BasicQueryImpl.java: 206) The Query XML looks like: basicsearch xmlns=DAV: select prop getname / /prop /select from scope href//href /scope /from where eq prop uuid / literal0cb53c48fef5cdd72acc65ff2b9c9d318000/literal /prop /eq /where /basicsearch It looks like I have a problem with the eq statement in the where clause but I haven't got a clue as to what this statement shoudl look like as I cannot find any examples or documentation. Can anyone help ? The spec is in http://greenbytes.de/tech/webdav/draft-reschke-webdav-search-latest.html. What you need is: where eq prop uuid / /prop literal0cb53c48fef5cdd72acc65ff2b9c9d318000/literal /eq /where instead. Best regards, Julian -- green/bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760 - 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]
Grammar URI for SearchQuery
Hi, I am attempting to use the Slide core API rather then the WebDav client to perform a search on a content store. I am using the following method to contruct my query but I can't find any details of how to define a valid value for the grammarUri parameter. SearchQuery query = searchHelper.createSearchQuery(grammarUri, queryElement, slideToken, depthLimit); Does anyone know what form this should take ? Thanks Andy Bowes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Grammar URI for SearchQuery
It's ok. I've answered my own question by using the 'DAV:' namespace as defined in NodeProperty.DEFAULT_NAMESPACE constant. -Original Message- From: Andy Bowes [mailto:[EMAIL PROTECTED] Sent: 23 September 2004 10:46 To: 'Slide Users Mailing List' Subject: Grammar URI for SearchQuery Hi, I am attempting to use the Slide core API rather then the WebDav client to perform a search on a content store. I am using the following method to contruct my query but I can't find any details of how to define a valid value for the grammarUri parameter. SearchQuery query = searchHelper.createSearchQuery(grammarUri, queryElement, slideToken, depthLimit); Does anyone know what form this should take ? Thanks Andy Bowes - 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]
Error creating SearchQuery
Hi Guys, I am getting the following exception thrown when I attempt to create a SearchQuery: org.apache.slide.search.InvalidQueryException: Expected exactly 1 prop element, found 2 at org.apache.slide.search.basic.expression.ComparedProperty.setProperty(Compar edProperty.java:169) at org.apache.slide.search.basic.expression.ComparedProperty.init(ComparedPro perty.java:123) at org.apache.slide.search.basic.expression.ComparePropertyExpression.init(Co mparePropertyExpression.java:65) at org.apache.slide.search.basic.expression.EQExpression.init(EQExpression.ja va:47) at org.apache.slide.search.basic.BasicExpressionFactory.createDAVExpression(Bas icExpressionFactory.java:241) at org.apache.slide.search.basic.BasicExpressionFactory.createExpression(BasicE xpressionFactory.java:193) at org.apache.slide.search.basic.BasicExpressionCompiler.createExpression(Basic ExpressionCompiler.java:177) at org.apache.slide.search.basic.BasicExpressionCompiler.compile(BasicExpressio nCompiler.java:130) at org.apache.slide.search.basic.BasicQueryImpl.parseQuery(BasicQueryImpl.java: 206) The Query XML looks like: basicsearch xmlns=DAV: select prop getname / /prop /select from scope href//href /scope /from where eq prop uuid / literal0cb53c48fef5cdd72acc65ff2b9c9d318000/literal /prop /eq /where /basicsearch It looks like I have a problem with the eq statement in the where clause but I haven't got a clue as to what this statement shoudl look like as I cannot find any examples or documentation. Can anyone help ? Thanks Andy Bowes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]