Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.versioning
Class DefaultVersionRemovalPolicy

java.lang.Object
  extended by 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

Constructor Summary
DefaultVersionRemovalPolicy()
           
 
Method Summary
 void removeVersions(Session session, Document doc, CoreSession coreSession)
          Removes the versions when a given working document is about to be removed.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultVersionRemovalPolicy

public DefaultVersionRemovalPolicy()
Method Detail

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 session
doc - the document that is about to be removed
Throws:
ClientException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.