1 package fr.ifremer.dali.dao.system.extraction; 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.system.extraction.ExtractionDTO; 27 import fr.ifremer.quadrige3.core.dao.system.extraction.ExtractFilterDao; 28 29 import java.io.File; 30 import java.util.List; 31 32 /** 33 * <p>DaliExtractionDao interface.</p> 34 * 35 * @author Ludovic 36 */ 37 public interface DaliExtractionDao extends ExtractFilterDao { 38 39 /** 40 * <p>getAllExtraction.</p> 41 * 42 * @return a {@link java.util.List} object. 43 */ 44 List<ExtractionDTO> getAllExtractions(); 45 46 /** 47 * <p>getAllLightExtraction.</p> 48 * 49 * @return a {@link java.util.List} object. 50 */ 51 List<ExtractionDTO> getAllLightExtractions(); 52 53 /** 54 * <p>getExtractionById.</p> 55 * 56 * @param extractionId a int. 57 * @return a {@link fr.ifremer.dali.dto.system.extraction.ExtractionDTO} object. 58 */ 59 ExtractionDTO getExtractionById(int extractionId); 60 61 /** 62 * <p>searchExtractionByProgram.</p> 63 * 64 * @param programCode a {@link java.lang.String} object. 65 * @return a {@link java.util.List} object. 66 */ 67 List<ExtractionDTO> searchExtractionByProgram(String programCode); 68 69 /** 70 * <p>saveExtraction.</p> 71 * 72 * @param extraction a {@link fr.ifremer.dali.dto.system.extraction.ExtractionDTO} object. 73 */ 74 void saveExtraction(ExtractionDTO extraction); 75 76 /** 77 * Export extraction definition and parameter to a file 78 * 79 * @param extraction extraction to export 80 * @param exportFile destination file 81 */ 82 void exportExtraction(ExtractionDTO extraction, File exportFile); 83 84 /** 85 * Import an extraction from a file 86 * 87 * @param importFile source file 88 * @return the imported extraction (already saved in db if valid) 89 */ 90 ExtractionDTO importExtraction(File importFile); 91 92 }