1 /**
2 * Copyright 2004-2015 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.kpme.tklm.time.missedpunch.document;
17
18 import java.util.List;
19
20 import org.kuali.kpme.tklm.time.missedpunch.MissedPunchDocument;
21
22 public interface MissedPunchDocumentService {
23
24 /**
25 * Get a list of Missed Punch Documents by Timesheet document ids.
26 *
27 * @param timesheetDocumentId The Timesheet document id to look up
28 *
29 * @return a list of Missed Punch Documents associated with the given Timesheet document id
30 */
31 List<MissedPunchDocument> getMissedPunchDocumentsByTimesheetDocumentId(String timesheetDocumentId);
32
33 /**
34 * Approve a Missed Punch Document.
35 *
36 * @param missedPunchDocument The Missed Punch Document to approve
37 */
38 public void approveMissedPunchDocument(MissedPunchDocument missedPunchDocument);
39
40 /**
41 * Cancel a Missed Punch Document.
42 *
43 * @param missedPunchDocument The Missed Punch Document to approve
44 */
45 public void cancelMissedPunchDocument(MissedPunchDocument missedPunchDocument);
46
47 void cancelMissedPunchDocumentWithDocumentId(String documentId);
48
49 public MissedPunchDocument getMissedPunchDocumentByMissedPunchId(String tkMissedPunchId);
50
51 public MissedPunchDocument getMissedPunchDocumentByDocumentId(String documentId);
52 }