Reputation: 8551
Is it possible to checkin/upload the document(with versionable aspect applied) without increasing the version number in Alfresco ?
Any kind help is appreciated.
Upvotes: 2
Views: 2407
Reputation: 6159
Assuming what you want is disabling automatic versioning, there are a few options available:
You can set the property values cm:autoVersion
and cm:autoVersionOnUpdateProps
to false
.
You can either set the defaults to false
in contentModel.xml
, or just set them to false explicitely after the aspect is applied. With these values set to false, alfresco will no longer increment the version automatically. Have a look at http://wiki.alfresco.com/wiki/Versioning_Behaviour
You can disable automatic versioning for a node in one transaction regardless of the autoversion* property values using one of the disableBehaviour
methods of org.alfresco.repo.policy.BehaviourFilter
(bean policyBehaviourFilter), e.g.
behaviourFilter.disableBehaviour(nodeRef, ContentModel.ASPECT_VERSIONABLE);
You can applying the aspect sys:temporary
to a node to disable autoversioning. This behaves just as 1., but has some other effects as well, e.g. bypassing the archive store on removal IIRC.
If in doubt, try 1. first.
Upvotes: 4
Reputation: 5588
You can delete a version with versionService.
Here's the java doc:
Upvotes: 1