public interface VersionSelector
The version selection in jackrabbit works as follows:
Node.restore() methods uses the
DateVersionSelector which is initialized with the creation date of
the parent version. This selector selects the latest version that is equal
or older than the given date. if no such version exists, the initial one
Node.restoreByLabel() uses the
LabelVersionSelector which is initialized with the label of the
version to be restored. This selector selects the version with the same
label. if no such version exists, the initial one is restored.
InternalVersion select(InternalVersionHistory versionHistory) throws javax.jcr.RepositoryException
null. Please note, that a version selector is not allowed to return the root version.
versionHistory- version history to select a version from
javax.jcr.RepositoryException- if an error occurs.
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.