001 /**
002 * Copyright 2004-2013 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
020 import org.kuali.hr.time.batch.BatchJob;
021 import org.kuali.hr.time.batch.dao.BatchJobDao;
022
023 public class BatchJobServiceImpl implements BatchJobService {
024 private BatchJobDao batchJobDao;
025
026 public void setBatchJobDao(BatchJobDao batchJobDao) {
027 this.batchJobDao = batchJobDao;
028 }
029
030 public BatchJob getBatchJob(Long batchJobId){
031 return batchJobDao.getBatchJob(batchJobId);
032 }
033
034 @Override
035 public List<BatchJob> getBatchJobs(String hrPyCalendarEntryId) {
036 return batchJobDao.getBatchJobs(hrPyCalendarEntryId);
037 }
038
039 @Override
040 public List<BatchJob> getBatchJobs(String hrPyCalendarEntryId, String batchJobStatus) {
041 return batchJobDao.getPayCalendarEntries(hrPyCalendarEntryId, batchJobStatus);
042 }
043
044 @Override
045 public void saveBatchJob(BatchJob batchJob) {
046 this.batchJobDao.saveOrUpdate(batchJob);
047 }
048
049 }