cancel
Showing results for 
Search instead for 
Did you mean: 

Versioning via JCR 170

sisao
Champ in-the-making
Champ in-the-making
hi all,

i'm trying to get the checkin() and checkout() methods of the Node library work with the alfresco repository…they have no effect on my code, neither they cause exceptions of any kind.
https://issues.alfresco.com/jira/browse/AR-659 is not working to me…

i tried the mynode.addMixin("mix:versionable) method but it has no effect….i relly cant understand how to use cm:versionable as stated in the issue i've linked.
I've tried to build up a checkin and checkout algorithm by myself but i cant even have a node marked as "lockable" in order to set the proeprty cm:lockType with the value "READ_ONLY_LOCK", then clone the node for checkout and merge for checkin.

i have a real need of not use the alfresco API such as CMLs under org.alfresco.webservice.repository.types…

What i've noticed is that even though i cant have my nodes marked as versionable/locakble, the alfresco webclient let me chekout those nodes anyway…is actually the versionable property a default statement for alfresco nodes?
In this case i still nedd to solve the locking issue…

Any help appreciated,
regards.
1 REPLY 1

sisao
Champ in-the-making
Champ in-the-making
EDIT:
i finally worked how to get my nodes "versionable" with mix:versionable, but i need to attach the property at the very 1st node creation…if i initially create the node then set the versionable property it has no effect…now i have to refer to
https://issues.alfresco.com/jira/browse/AR-659
as i am in the same situation…