jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "gennadibereshnoi (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JCR-883) Versionning - Add more advanced features
Date Thu, 29 May 2008 16:03:46 GMT

    [ https://issues.apache.org/jira/browse/JCR-883?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12600812#action_12600812
] 

gennadibereshnoi commented on JCR-883:
--------------------------------------

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.

> Versionning - Add more advanced features
> ----------------------------------------
>
>                 Key: JCR-883
>                 URL: https://issues.apache.org/jira/browse/JCR-883
>             Project: Jackrabbit
>          Issue Type: Improvement
>          Components: jackrabbit-ocm
>            Reporter: Christophe Lombart
>
> 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. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message