1 package fr.ifremer.dali.service.system; 2 3 /* 4 * #%L 5 * Dali :: Core 6 * $Id:$ 7 * $HeadURL:$ 8 * %% 9 * Copyright (C) 2014 - 2015 Ifremer 10 * %% 11 * This program is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Affero General Public License as published by 13 * the Free Software Foundation, either version 3 of the License, or 14 * (at your option) any later version. 15 * 16 * This program is distributed in the hope that it will be useful, 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 * GNU General Public License for more details. 20 * 21 * You should have received a copy of the GNU Affero General Public License 22 * along with this program. If not, see <http://www.gnu.org/licenses/>. 23 * #L% 24 */ 25 26 import fr.ifremer.dali.dto.FunctionDTO; 27 import fr.ifremer.dali.dto.SearchDateDTO; 28 import fr.ifremer.dali.dto.StateDTO; 29 import fr.ifremer.dali.dto.SynchronizationStatusDTO; 30 import fr.ifremer.dali.dto.configuration.control.ControlElementDTO; 31 import fr.ifremer.dali.dto.configuration.control.ControlFeatureDTO; 32 import fr.ifremer.quadrige3.ui.core.dto.MonthDTO; 33 34 import java.util.List; 35 36 /** 37 * Le sevice pour les donnees de type Survey. 38 */ 39 public interface SystemService { 40 41 /** 42 * La listes des etats 43 * 44 * @return Les etats 45 */ 46 List<StateDTO> getStates(); 47 48 /** 49 * La liste des libelles pour la recherche d'une date (entre, avant, apres). 50 * 51 * @return La liste des valeurs 52 */ 53 List<SearchDateDTO> getSearchDates(); 54 55 /** 56 * Get synchronization status 57 * 58 * @return list of all synchronization status 59 * @param withReadyToSyncStatus a boolean. 60 */ 61 List<SynchronizationStatusDTO> getAllSynchronizationStatus(boolean withReadyToSyncStatus); 62 63 /** 64 * Recuperation du partage local pour les nouvelles observations 65 * 66 * @return le partage local 67 */ 68 SynchronizationStatusDTO getLocalShare(); 69 70 /** 71 * Recherches les fonctions possible pour une regle de controle 72 * 73 * @return La liste des fonction 74 */ 75 List<FunctionDTO> getFunctionsControlSystem(); 76 77 /** 78 * Recherche la liste des elements a controle pour une regle de controle 79 * 80 * @return La liste des elements a controler 81 */ 82 List<ControlElementDTO> getControlElements(); 83 84 /** 85 * Recherche la liste des caracteristiques pour une regle de controle 86 * 87 * @param elementControl Element control 88 * @return la liste des caracteristiques a controler 89 */ 90 List<ControlFeatureDTO> getControlFeatures(ControlElementDTO elementControl); 91 92 List<MonthDTO> getMonths(); 93 94 void clearCaches(); 95 }