Jackrabbit OCM
  1. Jackrabbit OCM
  2. OCM-19

Versionning - Add more advanced features

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      The following versionning features should be interesting in some applications :

      • Restore a particular version
      • remove labels
      • Checkout before update (optionnally)
      • Checking after save (optionnally)
      • Define a new "version" tag in xml mapping file containing the following attributes :
        + checkoutBeforeUpdate
        + checkinAfterSaving
      • Add mixin type tags in the xml mapping file. By this way, nt:unstructured content can be versionned or based on another mix type.
      • Create branch
      • merge
      • Compare version.
      • Support for same name sibling : seems to have a couple of bugs in Jackrabbit
      • Review all version bugs on the Jackrabbit site.

        Activity

        Hide
        Jason de Windt added a comment -

        I think these additional version management functionalities are very crucial, especially the ability to restore a particular version. I am not aware of a workaround. Any chance that some or all of these issues will be implemented ?

        Show
        Jason de Windt added a comment - I think these additional version management functionalities are very crucial, especially the ability to restore a particular version. I am not aware of a workaround. Any chance that some or all of these issues will be implemented ?
        Hide
        gennadibereshnoi added a comment -

        as far as i understand from this JIRA the particular version is not supported currently by PCM Correct?
        i wanted to retrieve all versions of stored Object. Just i am tried to run similar with test code like
        ---QUOTED--
        ...
        ObjectContentManager ocm = new ObjectContentManagerImpl(session, mapper);
        ...
        org.apache.jackrabbit.ocm.version.VersionIterator versionIterator = ocm.getAllVersions("/testVersioningPath");
        for(org.apache.jackrabbit.ocm.version.Version v = (org.apache.jackrabbit.ocm.version.Version)versionIterator.next();...

        { ... Object o = ocm.getObject("/testVersioningPath",v.getName()); }

        ---QUOTED--

        and it is trows exception :
        ---QUOTED--
        org.apache.jackrabbit.ocm.exception.IncorrectPersistentClassException: Node type: nt:unstructured has no descriptor.
        at org.apache.jackrabbit.ocm.mapper.impl.AbstractMapperImpl.getClassDescriptorByNodeType(AbstractMapperImpl.java:188)
        at org.apache.jackrabbit.ocm.manager.objectconverter.impl.ObjectConverterImpl.getObject(ObjectConverterImpl.java:293)
        at org.apache.jackrabbit.ocm.manager.impl.ObjectContentManagerImpl.getObject(ObjectContentManagerImpl.java:313)
        ...
        ---QUOTED--

        Good to know. Then i vote for this ISSUE!

        PS
        The version for OCM is 1.5-SNAPSHOT.

        Show
        gennadibereshnoi added a comment - as far as i understand from this JIRA the particular version is not supported currently by PCM Correct? i wanted to retrieve all versions of stored Object. Just i am tried to run similar with test code like --- QUOTED -- ... ObjectContentManager ocm = new ObjectContentManagerImpl(session, mapper); ... org.apache.jackrabbit.ocm.version.VersionIterator versionIterator = ocm.getAllVersions("/testVersioningPath"); for(org.apache.jackrabbit.ocm.version.Version v = (org.apache.jackrabbit.ocm.version.Version)versionIterator.next();... { ... Object o = ocm.getObject("/testVersioningPath",v.getName()); } --- QUOTED -- and it is trows exception : --- QUOTED -- org.apache.jackrabbit.ocm.exception.IncorrectPersistentClassException: Node type: nt:unstructured has no descriptor. at org.apache.jackrabbit.ocm.mapper.impl.AbstractMapperImpl.getClassDescriptorByNodeType(AbstractMapperImpl.java:188) at org.apache.jackrabbit.ocm.manager.objectconverter.impl.ObjectConverterImpl.getObject(ObjectConverterImpl.java:293) at org.apache.jackrabbit.ocm.manager.impl.ObjectContentManagerImpl.getObject(ObjectContentManagerImpl.java:313) ... --- QUOTED -- Good to know. Then i vote for this ISSUE! PS The version for OCM is 1.5-SNAPSHOT.
        Hide
        Helio S. P. added a comment -

        I am interest on remove labels and compare version.

        Show
        Helio S. P. added a comment - I am interest on remove labels and compare version.

          People

          • Assignee:
            Unassigned
            Reporter:
            Christophe Lombart
          • Votes:
            5 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:

              Development