org.kuali.hr.time.clocklog.service
Class ClockLogServiceImpl

java.lang.Object
  extended by org.kuali.hr.time.clocklog.service.ClockLogServiceImpl
All Implemented Interfaces:
ClockLogService

public class ClockLogServiceImpl
extends Object
implements ClockLogService


Constructor Summary
ClockLogServiceImpl()
           
 
Method Summary
 ClockLog buildClockLog(Timestamp clockTimestamp, Timestamp originalTimestamp, Assignment assignment, TimesheetDocument timesheetDocument, String clockAction, String ip)
          Build ClockLog based on criteria passed in
 ClockLog buildClockLog(Timestamp clockTimestamp, Timestamp originalTimestamp, Assignment assignment, TimesheetDocument timesheetDocument, String clockAction, String ip, String userPrincipalId)
           
 String buildUnapprovedIPWarning(ClockLog cl)
          Build an unapproved IP address warning message for based on given ClockLog
 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, CalendarEntries 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
 ClockLog processClockLog(Timestamp clockTimeStamp, Assignment assignment, CalendarEntries pe, String ip, Date asOfDate, TimesheetDocument td, String clockAction, String principalId)
          Process clock log created
 ClockLog processClockLog(Timestamp clockTimeStamp, Assignment assignment, CalendarEntries pe, String ip, Date asOfDate, TimesheetDocument td, String clockAction, String principalId, String userPrincipalId)
           
 void saveClockLog(ClockLog clockLog)
          Save clock log
 void setClockLogDao(ClockLogDao clockLogDao)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClockLogServiceImpl

public ClockLogServiceImpl()
Method Detail

saveClockLog

public void saveClockLog(ClockLog clockLog)
Description copied from interface: ClockLogService
Save clock log

Specified by:
saveClockLog in interface ClockLogService

processClockLog

public ClockLog processClockLog(Timestamp clockTimeStamp,
                                Assignment assignment,
                                CalendarEntries pe,
                                String ip,
                                Date asOfDate,
                                TimesheetDocument td,
                                String clockAction,
                                String principalId)
Description copied from interface: ClockLogService
Process clock log created

Specified by:
processClockLog in interface ClockLogService
Returns:

processClockLog

public ClockLog processClockLog(Timestamp clockTimeStamp,
                                Assignment assignment,
                                CalendarEntries pe,
                                String ip,
                                Date asOfDate,
                                TimesheetDocument td,
                                String clockAction,
                                String principalId,
                                String userPrincipalId)
Specified by:
processClockLog in interface ClockLogService

buildClockLog

public ClockLog buildClockLog(Timestamp clockTimestamp,
                              Timestamp originalTimestamp,
                              Assignment assignment,
                              TimesheetDocument timesheetDocument,
                              String clockAction,
                              String ip)
Description copied from interface: ClockLogService
Build ClockLog based on criteria passed in

Specified by:
buildClockLog in interface ClockLogService
Parameters:
clockTimestamp - -- timestamp with grace rule applied if there is one
originalTimestamp - -- timestamp without grace rule applied
Returns:

buildClockLog

public ClockLog buildClockLog(Timestamp clockTimestamp,
                              Timestamp originalTimestamp,
                              Assignment assignment,
                              TimesheetDocument timesheetDocument,
                              String clockAction,
                              String ip,
                              String userPrincipalId)
Specified by:
buildClockLog in interface ClockLogService

setClockLogDao

public void setClockLogDao(ClockLogDao clockLogDao)

getLastClockLog

public ClockLog getLastClockLog(String principalId)
Description copied from interface: ClockLogService
Fetch last clock log for principal id

Specified by:
getLastClockLog in interface ClockLogService
Returns:

getLastClockLog

public ClockLog getLastClockLog(String principalId,
                                String clockAction)
Description copied from interface: ClockLogService
Fetch last clock log for principal id and clock action

Specified by:
getLastClockLog in interface ClockLogService
Returns:

getLastClockLog

public ClockLog getLastClockLog(String principalId,
                                String jobNumber,
                                String workArea,
                                String task,
                                CalendarEntries calendarEntry)
Description copied from interface: ClockLogService
Fetch last clock log for principal id, assignment details, and calendar entry

Specified by:
getLastClockLog in interface ClockLogService
Returns:

getClockLog

public ClockLog getClockLog(String tkClockLogId)
Description copied from interface: ClockLogService
Fetch clock log by id

Specified by:
getClockLog in interface ClockLogService
Returns:

getUnapprovedIPWarning

public List<String> getUnapprovedIPWarning(List<TimeBlock> timeBlocks)
Description copied from interface: ClockLogService
Get warning messages for clock actions taken from unapproved IP address on given timesheet document

Specified by:
getUnapprovedIPWarning in interface ClockLogService
Returns:
List

buildUnapprovedIPWarning

public String buildUnapprovedIPWarning(ClockLog cl)
Description copied from interface: ClockLogService
Build an unapproved IP address warning message for based on given ClockLog

Specified by:
buildUnapprovedIPWarning in interface ClockLogService
Returns:


Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.