001    /**
002     * Copyright 2004-2012 The Kuali Foundation
003     *
004     * Licensed under the Educational Community License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     *
008     * http://www.opensource.org/licenses/ecl2.php
009     *
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    package org.kuali.hr.time.batch.service;
017    
018    import java.util.List;
019    import java.util.Map;
020    
021    import org.kuali.hr.time.batch.BatchJobEntry;
022    
023    public interface BatchJobEntryService {
024            /**
025             * Fetch a BatchJobEntry by a given ID
026             * @param batchJobEntryId
027             * @return
028             */
029            public BatchJobEntry getBatchJobEntry(Long batchJobEntryId);
030    
031        /**
032         * Saves or updates the provided BatchJobEntry.
033         * @param batchJobEntry The object we want to save.
034         */
035            public void saveBatchJobEntry(BatchJobEntry batchJobEntry);
036    
037        /**
038         * For the indicated batchJobId, grab a List of BatchJobEntry objects.
039         * @param batchJobId The ID to query against.
040         * @return A List of BatchJobEntry objects.
041         */
042            public List<BatchJobEntry> getBatchJobEntries(Long batchJobId);
043    
044        /**
045         * For the given parameters, return a List of BatchJobEntry objects.
046         * @param ip The IP address we are interested in.
047         * @param status The status.
048         * @return A List of BatchJobEntry objects.
049         */
050        public List<BatchJobEntry> getBatchJobEntries(String ip, String status);
051    
052          /**
053         * Fetch a list of BatchJob objects by the given criteria.
054         * @param criteria
055         * @return List of BatchJob objects.
056         */
057        List<BatchJobEntry> getBatchJobEntries(Map<String, Object> criteria);
058    }