All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.nuiton.topia.service.migration.TopiaMigrationServiceAskUserToMigrate Maven / Gradle / Ivy

The newest version!
package org.nuiton.topia.service.migration;

/*-
 * #%L
 * ObServe Toolkit :: ToPIA Migration service
 * %%
 * Copyright (C) 2017 - 2018 IRD, Ultreia.io
 * %%
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public
 * License along with this program.  If not, see
 * .
 * #L%
 */

import org.nuiton.version.Version;

import java.util.List;

/**
 * Callback to ask user to migrate.
 *
 * To add one, you have just to implements it and make available via the {@link java.util.ServiceLoader} mechanism.
 * 

* Created by tchemit on 05/05/2018. * * @author Tony Chemit - [email protected] */ public interface TopiaMigrationServiceAskUserToMigrate { /** * Ask user to migrate database. * * @param dbVersion current schema version * @param versions available versions to apply * @return {@code true} if user accept to migrate, {@code false} otherwise. */ boolean canIMigrate(Version dbVersion, List versions); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy