4 Replies Latest reply on May 22, 2012 8:51 AM by nl

    Versioning sample

    nl

      Hi,

       

      I am new to JCR and Modeshape (2.8.1) and try to get a simple sample application running that allows versioning of file nodes on FileSystemSource.

      Can someone help with a small sample?

       

      Thanks, Niels

        • 1. Re: Versioning sample
          hchiorean

          Hi Niels,

           

          I don't think this is possible using the FileSystemSource: the only types allowed by this type of source are: nt:file, nt:folder, nt:resource & mode:resource, none of which are versionable.

          • 2. Re: Versioning sample
            nl

            Thanks!

             

            If changed to DiskSource then it seams to work better (at least I don't get exceptions anymore...)!

            • 3. Re: Versioning sample
              hchiorean

               

              If changed to DiskSource then it seams to work better (at least I don't get exceptions anymore...)!

              yup, DiskSource does not impose any limitations on the types of nodes which it can store.

              • 4. Re: Versioning sample
                nl

                The main reason why I prefer FileSystemSource is that I fear corruption. And if if so, how can I get my data back. In DiskStore all the files are binaries...