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.missedpunch.service;
017
018 import java.util.List;
019
020 import org.kuali.hr.time.missedpunch.MissedPunchDocument;
021
022
023 public interface MissedPunchService {
024 /**
025 * Fetch missed punch by header id
026 * @param headerId
027 * @return
028 */
029 public MissedPunchDocument getMissedPunchByRouteHeader(String headerId);
030 /**
031 * Add clock log for missed punch
032 * @param missedPunch
033 * @param logEndId
034 * @param logBeginId
035 */
036 public void addClockLogForMissedPunch(MissedPunchDocument missedPunch, String logEndId, String logBeginId);
037 /**
038 * Add clock log for missed punch
039 * @param missedPunch
040 */
041 public void addClockLogForMissedPunch(MissedPunchDocument missedPunch);
042 /**
043 * Update clock log and time block if necessary
044 * @param missedPunch
045 */
046 public void updateClockLogAndTimeBlockIfNecessary(MissedPunchDocument missedPunch);
047 /**
048 * Get missed punch by clock id
049 * @param clockLogId
050 * @return
051 */
052 public MissedPunchDocument getMissedPunchByClockLogId(String clockLogId);
053 /**
054 * Approve missed punch document
055 * @param document
056 * @return
057 */
058 public void approveMissedPunch(MissedPunchDocument document);
059 /**
060 * Get missed punch documents by timesheetDocumentId
061 * @param timesheetDocumentId
062 * @return
063 */
064 public List<MissedPunchDocument> getMissedPunchDocsByTimesheetDocumentId(String timesheetDocumentId);
065 }