Package org.nuxeo.ecm.core.versioning
Class DefaultVersionRemovalPolicy
java.lang.Object
org.nuxeo.ecm.core.versioning.DefaultVersionRemovalPolicy
- All Implemented Interfaces:
VersionRemovalPolicy
Removes the version history if no proxies exist, otherwise do nothing.
- Author:
- Florent Guillaume
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
removeVersions
(Session session, Document doc, CoreSession coreSession) Removes the versions when a given working document is about to be removed.
-
Field Details
-
ORPHAN_VERSION_REMOVE
- See Also:
-
-
Constructor Details
-
DefaultVersionRemovalPolicy
public DefaultVersionRemovalPolicy()
-
-
Method Details
-
removeVersions
Description copied from interface:VersionRemovalPolicy
Removes the versions when a given working document is about to be removed.- Specified by:
removeVersions
in interfaceVersionRemovalPolicy
- Parameters:
session
- the current sessiondoc
- the document that is about to be removed
-