From 3ba555853ff55178f7f52315f8ad90032eddbc18 Mon Sep 17 00:00:00 2001 From: Miciele Ghiorghis Date: Wed, 16 Jan 2013 17:06:11 +0100 Subject: [PATCH] Tim-connector: Contract for AppPropertiesDAO An interface that AppPropertiesDAO implements --- .../common/daos/IAppPropertiesDAO.java | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 libreplan-business/src/main/java/org/libreplan/business/common/daos/IAppPropertiesDAO.java diff --git a/libreplan-business/src/main/java/org/libreplan/business/common/daos/IAppPropertiesDAO.java b/libreplan-business/src/main/java/org/libreplan/business/common/daos/IAppPropertiesDAO.java new file mode 100644 index 000000000..862d73a6a --- /dev/null +++ b/libreplan-business/src/main/java/org/libreplan/business/common/daos/IAppPropertiesDAO.java @@ -0,0 +1,40 @@ +/* + * This file is part of LibrePlan + * + * Copyright (C) 2013 St. Antoniusziekenhuis + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +package org.libreplan.business.common.daos; + +import java.util.List; +import java.util.Map; + +import org.libreplan.business.common.entities.AppProperties; + +/** + * Contract for {@link AppPropertiesDAO} + * + * @author Miciele Ghiorghis + */ +public interface IAppPropertiesDAO extends IGenericDAO { + + List getAll(); + + Map findByMajorId(String majorId); + + AppProperties findByMajorIdAndName(String majorId, String proprtyName); + +}