1 /** 2 * Copyright 2004-2012 The Kuali Foundation 3 * 4 * Licensed under the Educational Community License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.opensource.org/licenses/ecl2.php 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package org.kuali.hr.time.batch.service; 17 18 import java.util.List; 19 import java.util.Map; 20 21 import org.kuali.hr.time.batch.BatchJobEntry; 22 23 public interface BatchJobEntryService { 24 /** 25 * Fetch a BatchJobEntry by a given ID 26 * @param batchJobEntryId 27 * @return 28 */ 29 public BatchJobEntry getBatchJobEntry(Long batchJobEntryId); 30 31 /** 32 * Saves or updates the provided BatchJobEntry. 33 * @param batchJobEntry The object we want to save. 34 */ 35 public void saveBatchJobEntry(BatchJobEntry batchJobEntry); 36 37 /** 38 * For the indicated batchJobId, grab a List of BatchJobEntry objects. 39 * @param batchJobId The ID to query against. 40 * @return A List of BatchJobEntry objects. 41 */ 42 public List<BatchJobEntry> getBatchJobEntries(Long batchJobId); 43 44 /** 45 * For the given parameters, return a List of BatchJobEntry objects. 46 * @param ip The IP address we are interested in. 47 * @param status The status. 48 * @return A List of BatchJobEntry objects. 49 */ 50 public List<BatchJobEntry> getBatchJobEntries(String ip, String status); 51 52 /** 53 * Fetch a list of BatchJob objects by the given criteria. 54 * @param criteria 55 * @return List of BatchJob objects. 56 */ 57 List<BatchJobEntry> getBatchJobEntries(Map<String, Object> criteria); 58 }