View Javadoc

1   /**
2    * Copyright 2004-2013 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.missedpunch.service;
17  
18  import java.util.List;
19  
20  import org.kuali.hr.time.missedpunch.MissedPunchDocument;
21  
22  
23  public interface MissedPunchService {
24  	/**
25  	 * Fetch missed punch by header id
26  	 * @param headerId
27  	 * @return
28  	 */
29      public MissedPunchDocument getMissedPunchByRouteHeader(String headerId);
30      /**
31       * Add clock log for missed punch
32       * @param missedPunch
33       * @param logEndId
34       * @param logBeginId
35       */
36      public void addClockLogForMissedPunch(MissedPunchDocument missedPunch, String logEndId, String logBeginId);
37      /**
38       * Add clock log for missed punch
39       * @param missedPunch
40       */
41      public void addClockLogForMissedPunch(MissedPunchDocument missedPunch);
42      /**
43       * Update clock log and time block if necessary
44       * @param missedPunch
45       */
46      public void updateClockLogAndTimeBlockIfNecessary(MissedPunchDocument missedPunch);
47      /**
48       * Get missed punch by clock id
49       * @param clockLogId
50       * @return
51       */
52      public MissedPunchDocument getMissedPunchByClockLogId(String clockLogId);
53      /**
54       * Approve missed punch document
55       * @param document
56       * @return
57       */
58      public void approveMissedPunch(MissedPunchDocument document);
59      /**
60       * Get missed punch documents by timesheetDocumentId
61       * @param timesheetDocumentId
62       * @return
63       */
64      public List<MissedPunchDocument> getMissedPunchDocsByTimesheetDocumentId(String timesheetDocumentId);
65  }