1 package org.kuali.ole.deliver.calendar.service;
2
3 import org.kuali.ole.deliver.calendar.bo.OleCalendar;
4 import org.kuali.ole.deliver.calendar.bo.OleCalendarGroup;
5 import org.kuali.ole.deliver.util.ItemFineRate;
6
7 import java.sql.Timestamp;
8
9
10
11
12
13
14
15
16 public interface OleCalendarService {
17 public OleCalendarGroup getCalendarGroup(String deskId);
18
19 public OleCalendar getActiveCalendar(Timestamp date, String groupId);
20
21 public Timestamp calculateDueDate(String deskId, String timePeriod, Timestamp currentDate);
22
23 public Timestamp calculateDueDateHrs(String deskId, String timePeriod, Timestamp currentDate);
24
25 public Float calculateFine(String deskId, Timestamp dueDate, Timestamp currentDate, String fineAmount);
26
27 public void generalInfoValidation(OleCalendar oleCalendar, boolean isNew);
28
29 public void assignEndDate(OleCalendar oleCalendar);
30
31 public void convert12HrsFormat(OleCalendar oldCalendar);
32
33 public void validateCalendarDocument(OleCalendar oleCalendar);
34
35 public void deleteCalendarDocument(OleCalendar oleCalendar);
36
37 public Double calculateOverdueFine(String groupId, Timestamp dueDate, Timestamp checkInDate, ItemFineRate itemFineRate);
38 }