/** * Restores this node to the version with the given name. * <p> * The default implement retrieves the named {@link Version} from the * associated {@link VersionHistory} and forwards the call to the * {@link Node#restore(Version, boolean)} method. * * @param versionName version name * @param removeExisting passed through * @throws RepositoryException if an error occurs */ public void restore(String versionName, boolean removeExisting) throws RepositoryException { restore(getVersionHistory().getVersion(versionName), removeExisting); }
/** * Restores this node to the version with the given name. * <p> * The default implement retrieves the named {@link Version} from the * associated {@link VersionHistory} and forwards the call to the * {@link Node#restore(Version, boolean)} method. * * @param versionName version name * @param removeExisting passed through * @throws RepositoryException if an error occurs */ public void restore(String versionName, boolean removeExisting) throws RepositoryException { restore(getVersionHistory().getVersion(versionName), removeExisting); }
/** * Restores this node to the version with the given label. * <p> * The default implement retrieves the labeled {@link Version} from the * associated {@link VersionHistory} and forwards the call to the * {@link Node#restore(Version, boolean)} method. * * @param versionLabel version label * @param removeExisting passed through * @throws RepositoryException if an error occurs */ public void restoreByLabel(String versionLabel, boolean removeExisting) throws RepositoryException { restore(getVersionHistory().getVersionByLabel(versionLabel), removeExisting); }
/** * Restores this node to the version with the given name. * <p> * The default implement retrieves the named {@link Version} from the * associated {@link VersionHistory} and forwards the call to the * {@link Node#restore(Version, boolean)} method. * * @param versionName version name * @param removeExisting passed through * @throws RepositoryException if an error occurs */ public void restore(String versionName, boolean removeExisting) throws RepositoryException { restore(getVersionHistory().getVersion(versionName), removeExisting); }
/** * Restores this node to the version with the given name. * <p> * The default implement retrieves the named {@link Version} from the * associated {@link VersionHistory} and forwards the call to the * {@link Node#restore(Version, boolean)} method. * * @param versionName version name * @param removeExisting passed through * @throws RepositoryException if an error occurs */ public void restore(String versionName, boolean removeExisting) throws RepositoryException { restore(getVersionHistory().getVersion(versionName), removeExisting); }
/** * Restores this node to the version with the given label. * <p> * The default implement retrieves the labeled {@link Version} from the * associated {@link VersionHistory} and forwards the call to the * {@link Node#restore(Version, boolean)} method. * * @param versionLabel version label * @param removeExisting passed through * @throws RepositoryException if an error occurs */ public void restoreByLabel(String versionLabel, boolean removeExisting) throws RepositoryException { restore(getVersionHistory().getVersionByLabel(versionLabel), removeExisting); }
/** * Restores this node to the version with the given label. * <p> * The default implement retrieves the labeled {@link Version} from the * associated {@link VersionHistory} and forwards the call to the * {@link Node#restore(Version, boolean)} method. * * @param versionLabel version label * @param removeExisting passed through * @throws RepositoryException if an error occurs */ public void restoreByLabel(String versionLabel, boolean removeExisting) throws RepositoryException { restore(getVersionHistory().getVersionByLabel(versionLabel), removeExisting); }
/** * Restores this node to the version with the given label. * <p> * The default implement retrieves the labeled {@link Version} from the * associated {@link VersionHistory} and forwards the call to the * {@link Node#restore(Version, boolean)} method. * * @param versionLabel version label * @param removeExisting passed through * @throws RepositoryException if an error occurs */ public void restoreByLabel(String versionLabel, boolean removeExisting) throws RepositoryException { restore(getVersionHistory().getVersionByLabel(versionLabel), removeExisting); }