1 /**
2 * Copyright 2011 The Kuali Foundation Licensed under the
3 * Educational Community License, Version 2.0 (the "License"); you may
4 * not use this file except in compliance with the License. You may
5 * obtain a copy of the License at
6 *
7 * http://www.osedu.org/licenses/ECL-2.0
8 *
9 * Unless required by applicable law or agreed to in writing,
10 * software distributed under the License is distributed on an "AS IS"
11 * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12 * or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15
16 package org.kuali.mobility.configparams.dao;
17
18 import java.util.List;
19
20 import org.kuali.mobility.configparams.entity.ConfigParam;
21
22 /**
23 * Interface for a contract for manipulating configuration parameters
24 * @author Kuali Mobility Team (mobility.dev@kuali.org)
25 *
26 */
27 public interface ConfigParamDao {
28
29 /**
30 * @param id the id of the ConfigParam to retrieve
31 * @return the ConfigParam matching the id
32 */
33 public ConfigParam findConfigParamById(Long id);
34 /**
35 * @param name the name of the ConfigParam to retrieve
36 * @return the ConfigParam matching the name
37 */
38 public ConfigParam findConfigParamByName(String name);
39 /**
40 * @param configParam the ConfigParam to save
41 * @return the id of the saved ConfigParam
42 */
43 public Long saveConfigParam(ConfigParam configParam);
44 /**
45 * @return a list of all configuration parameters
46 */
47 public List<ConfigParam> findAllConfigParam();
48 /**
49 * @param id the id of the ConfigParam to delete
50 */
51 public void deleteConfigParamById(Long id);
52
53 }