public class ClockLogServiceImpl extends Object implements ClockLogService
| Constructor and Description | 
|---|
| ClockLogServiceImpl() | 
| Modifier and Type | Method and Description | 
|---|---|
| String | buildUnapprovedIPWarning(ClockLog cl)Build an unapproved IP address warning message for  based on given ClockLog | 
| void | deleteClockLogsForDocumentId(String documentId) | 
| ClockLog | getClockLog(String tkClockLogId)Fetch clock log by id | 
| ClockLog | getLastClockLog(String principalId)Fetch last clock log for principal id | 
| ClockLog | getLastClockLog(String principalId,
                              String clockAction)Fetch last clock log for principal id and clock action | 
| ClockLog | getLastClockLog(String principalId,
                              String jobNumber,
                              String workArea,
                              String task,
                              CalendarEntry calendarEntry)Fetch last clock log for principal id, assignment details, and calendar entry | 
| List<String> | getUnapprovedIPWarning(List<TimeBlock> timeBlocks)Get warning messages for clock actions taken from unapproved IP address on given timesheet document | 
| boolean | isClockLogCreatedByMissedPunch(String clockLogId)Determine if a clock log was created by Missed Punch document | 
| ClockLog | processClockLog(org.joda.time.DateTime clockDateTime,
                              Assignment assignment,
                              CalendarEntry pe,
                              String ip,
                              org.joda.time.LocalDate asOfDate,
                              TimesheetDocument td,
                              String clockAction,
                              boolean runRules,
                              String principalId)Process clock log created | 
| ClockLog | processClockLog(org.joda.time.DateTime clockDateTime,
                              Assignment assignment,
                              CalendarEntry pe,
                              String ip,
                              org.joda.time.LocalDate asOfDate,
                              TimesheetDocument td,
                              String clockAction,
                              boolean runRules,
                              String principalId,
                              String userPrincipalId) | 
| ClockLog | saveClockLog(ClockLog clockLog)Save clock log | 
| void | setClockLogDao(ClockLogDao clockLogDao) | 
public ClockLogServiceImpl()
public ClockLog saveClockLog(ClockLog clockLog)
ClockLogServicesaveClockLog in interface ClockLogServicepublic ClockLog processClockLog(org.joda.time.DateTime clockDateTime, Assignment assignment, CalendarEntry pe, String ip, org.joda.time.LocalDate asOfDate, TimesheetDocument td, String clockAction, boolean runRules, String principalId)
ClockLogServiceprocessClockLog in interface ClockLogServicepublic ClockLog processClockLog(org.joda.time.DateTime clockDateTime, Assignment assignment, CalendarEntry pe, String ip, org.joda.time.LocalDate asOfDate, TimesheetDocument td, String clockAction, boolean runRules, String principalId, String userPrincipalId)
processClockLog in interface ClockLogServicepublic void setClockLogDao(ClockLogDao clockLogDao)
public ClockLog getLastClockLog(String principalId)
ClockLogServicegetLastClockLog in interface ClockLogServicepublic ClockLog getLastClockLog(String principalId, String clockAction)
ClockLogServicegetLastClockLog in interface ClockLogServicepublic ClockLog getLastClockLog(String principalId, String jobNumber, String workArea, String task, CalendarEntry calendarEntry)
ClockLogServicegetLastClockLog in interface ClockLogServicepublic ClockLog getClockLog(String tkClockLogId)
ClockLogServicegetClockLog in interface ClockLogServicepublic void deleteClockLogsForDocumentId(String documentId)
deleteClockLogsForDocumentId in interface ClockLogServicepublic List<String> getUnapprovedIPWarning(List<TimeBlock> timeBlocks)
ClockLogServicegetUnapprovedIPWarning in interface ClockLogServicepublic String buildUnapprovedIPWarning(ClockLog cl)
ClockLogServicebuildUnapprovedIPWarning in interface ClockLogServicepublic boolean isClockLogCreatedByMissedPunch(String clockLogId)
ClockLogServiceisClockLogCreatedByMissedPunch in interface ClockLogServiceCopyright © 2004–2014 The Kuali Foundation. All rights reserved.