1 /** 2 * Copyright 2011-2013 The Kuali Foundation Licensed under the Educational 3 * Community License, Version 2.0 (the "License"); you may not use this file 4 * except in compliance with the License. You may obtain a copy of the License 5 * at 6 * 7 * http://www.osedu.org/licenses/ECL-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 11 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 12 * License for the specific language governing permissions and limitations under 13 * the License. 14 */ 15 package org.kuali.mobility.l10n.dao; 16 17 import org.kuali.mobility.l10n.entity.LocalisedString; 18 19 /** 20 * A DAO used to retrieve and persist localised strings. 21 * @author Kuali Mobility Team (mobility.collab@kuali.org) 22 * @since 23 */ 24 public interface LocalisationDao { 25 26 /** 27 * Gets a localised String. 28 * @param code Code of the string to get 29 * @param locale The locale to get the String for. 30 * @return 31 */ 32 public LocalisedString getLocalisedString(String code, String locale); 33 34 /** 35 * Saves a localised string with the specified code, locale and content. 36 * @param code Code used to retrieve the string again. 37 * @param locale Locale for the string 38 * @param content Content of the String. 39 */ 40 public void saveLocalisedString(String code, String locale, String content); 41 }