This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository observe. See http://git.codelutin.com/observe.git commit e11bdf22efd7e77b2f0f076112d5dd7e21c1b0a1 Author: Tony CHEMIT <chemit@codelutin.com> Date: Thu Nov 5 23:32:15 2015 +0100 Suppression d'une classe obsolète --- .../fr/ird/observe/entities/OpenableEntities.java | 101 --------------------- 1 file changed, 101 deletions(-) diff --git a/observe-entities/src/main/java/fr/ird/observe/entities/OpenableEntities.java b/observe-entities/src/main/java/fr/ird/observe/entities/OpenableEntities.java deleted file mode 100644 index 6d2fc26..0000000 --- a/observe-entities/src/main/java/fr/ird/observe/entities/OpenableEntities.java +++ /dev/null @@ -1,101 +0,0 @@ -package fr.ird.observe.entities; - -/* - * #%L - * ObServe :: Entities - * %% - * Copyright (C) 2008 - 2014 IRD, Codelutin, Tony Chemit - * %% - * 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 - * <http://www.gnu.org/licenses/gpl-3.0.html>. - * #L% - */ - -/** - * Created on 8/25/14. - * - * @author Tony Chemit - chemit@codelutin.com - * @since 3.7 - */ -public class OpenableEntities { - -// /** -// * @param o l'objet dont on veut tester le type -// * @return {@code true} si l'objet est non null et de type {@link -// * OpenableEntity}, {@code false} autrement. -// */ -// public static boolean isOpenable(Object o) { -// if (o == null) { -// return false; -// } -// Class<?> c; -// if (!Class.class.equals(o.getClass())) { -// c = o.getClass(); -// } else { -// c = (Class<?>) o; -// } -// return OpenableEntity.class.isAssignableFrom(c); -// } -// -// /** -// * //FIXME Should use also a getOpenTrip for Longline model. -// * @param ctxt le topia context -// * @return la marée ouverte, ou <code>null</code> si pas de marée ouverte -// * @if any pb -// */ -// public static TripSeine getOpenTrip(ObserveTopiaPersistenceContext ctxt) { -// if (ctxt == null) { -// throw new TopiaException("could not find a local topia" + -// " context"); -// } -// TripSeine m = ctxt.getTripSeineDao().forOpenEquals(true).findAnyOrNull(); -// return m; -// } -// -// /** -// * @param <O> le type des données de type {@link OpenableEntity} -// * @param openableEntity l'openableEntity ou rechercher dans ses chils -// * @return l'objet dans la liste qui est ouvert, ou <code>null</code> si -// * aucun objet ouvert. -// */ -// public static <O extends OpenableEntity> O getOpenChild(OpenableEntity openableEntity) { -// Collection<?> openables = openableEntity.getOpenableChilds(); -// if (openables != null) { -// for (Object o : openables) { -// if (((OpenableEntity) o).isOpen()) { -// return (O) o; -// } -// } -// } -// return null; -// } -// -// /** -// * @param <O> le type des données de type {@link OpenableEntity} -// * @param openables une liste de données de type {@link OpenableEntity}. -// * @return l'objet dans la liste qui est ouvert, ou <code>null</code> si -// * aucun objet ouvert. -// */ -// public static <O extends OpenableEntity> O getOpenEntity( -// Collection<O> openables) { -// if (openables != null) { -// for (O o : openables) { -// if (o.isOpen()) { -// return o; -// } -// } -// } -// return null; -// } -} -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@list.forge.codelutin.com>.