org.nuxeo.ecm.core.versioning
Class DefaultVersionRemovalPolicy
java.lang.Object
org.nuxeo.ecm.core.versioning.DefaultVersionRemovalPolicy
- All Implemented Interfaces:
- VersionRemovalPolicy
public class DefaultVersionRemovalPolicy
- extends Object
- implements VersionRemovalPolicy
Removes the version history if no proxies exist, otherwise do nothing.
- Author:
- Florent Guillaume
DefaultVersionRemovalPolicy
public DefaultVersionRemovalPolicy()
removeVersions
public void removeVersions(Session session,
Document doc,
CoreSession coreSession)
throws ClientException
- Description copied from interface:
VersionRemovalPolicy
- Removes the versions when a given working document is about to be
removed.
- Specified by:
removeVersions
in interface VersionRemovalPolicy
- Parameters:
session
- the current sessiondoc
- the document that is about to be removed
- Throws:
ClientException
Copyright © 2011 Nuxeo SAS. All Rights Reserved.