Package 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
-
-
Field Summary
Fields Modifier and Type Field Description static String
ORPHAN_VERSION_REMOVE
-
Constructor Summary
Constructors Constructor Description DefaultVersionRemovalPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
removeVersions(Session session, Document doc, CoreSession coreSession)
Removes the versions when a given working document is about to be removed.
-
-
-
Field Detail
-
ORPHAN_VERSION_REMOVE
public static final String ORPHAN_VERSION_REMOVE
- See Also:
- Constant Field Values
-
-
Method Detail
-
removeVersions
public void removeVersions(Session session, Document doc, CoreSession coreSession)
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
-
-