1 package fr.ifremer.quadrige2.core.dao.administration.user; 2 3 /*- 4 * #%L 5 * Quadrige2 Core :: Quadrige2 Server Core 6 * $Id:$ 7 * $HeadURL:$ 8 * %% 9 * Copyright (C) 2017 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 import fr.ifremer.quadrige2.core.vo.administration.user.DepartmentVO; 26 27 import java.util.List; 28 import java.util.Properties; 29 30 31 /** 32 * <p> 33 * DepartmentJdbcDao interface. 34 * </p> 35 * 36 */ 37 public interface DepartmentJdbcDao { 38 39 /** 40 * Get full data on department (execute against the default datasource) 41 * 42 * @param depId 43 * a int. 44 * @return a {@link fr.ifremer.quadrige2.core.vo.administration.user.DepartmentVO} object. 45 */ 46 DepartmentVO getDepartmentById(int depId); 47 48 /** 49 * Get full data on department, using the given connection 50 * 51 * @param connectionProperties 52 * if null, the default datasource will be used (if exists) 53 * @param depId 54 * a int. 55 * @return a {@link fr.ifremer.quadrige2.core.vo.administration.user.DepartmentVO} object. 56 */ 57 DepartmentVO getDepartmentById(Properties connectionProperties, int depId); 58 59 /** 60 * Get department by ids (execute against the default datasource) 61 * 62 * @param ids 63 * a {@link java.util.List} object. 64 * @return a {@link java.util.List} object. 65 */ 66 List<DepartmentVO> getDepartmentsByIds(List<Integer> ids); 67 68 /** 69 * Get department by ids, using the given connection 70 * 71 * @param connectionProperties 72 * if null, the default datasource will be used (if exists) 73 * @param ids 74 * a {@link java.util.List} object. 75 * @return a {@link java.util.List} object. 76 */ 77 List<DepartmentVO> getDepartmentsByIds(Properties connectionProperties, List<Integer> ids); 78 79 }