001 /**
002 * Copyright 2011 The Kuali Foundation Licensed under the
003 * Educational Community License, Version 2.0 (the "License"); you may
004 * not use this file except in compliance with the License. You may
005 * obtain a copy of the License at
006 *
007 * http://www.osedu.org/licenses/ECL-2.0
008 *
009 * Unless required by applicable law or agreed to in writing,
010 * software distributed under the License is distributed on an "AS IS"
011 * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
012 * or implied. See the License for the specific language governing
013 * permissions and limitations under the License.
014 */
015
016 package org.kuali.mobility.emergencyinfo.service;
017
018 import java.util.Collection;
019 import java.util.List;
020
021 import org.kuali.mobility.emergencyinfo.entity.EmergencyInfo;
022
023 public interface EmergencyInfoService {
024
025 public EmergencyInfo findEmergencyInfoById(Long id);
026 public List<EmergencyInfo> findAllEmergencyInfo();
027 public List<EmergencyInfo> findAllEmergencyInfoByCampus(String campus);
028 public Long saveEmergencyInfo(EmergencyInfo emergencyInfo);
029 public void deleteEmergencyInfoById(Long id);
030 public void reorder(Long id, boolean up);
031
032 public String toJson(Collection<EmergencyInfo> collection);
033 public EmergencyInfo fromJsonToEntity(String json);
034 public Collection<EmergencyInfo> fromJsonToCollection(String json);
035
036 }