org.kuali.hr.time.clocklog.service
Interface ClockLogService

All Known Implementing Classes:
ClockLogServiceImpl

public interface ClockLogService


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)
           
 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
 List<ClockLog> getOpenClockLogs(CalendarEntries payCalendarEntry)
          Fetch open clock logs by pay calendar entry
 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
 

Method Detail

saveClockLog

void saveClockLog(ClockLog clockLog)
Save clock log

Parameters:
clockLog -

getLastClockLog

ClockLog getLastClockLog(String principalId)
Fetch last clock log for principal id

Parameters:
principalId -
Returns:

getLastClockLog

ClockLog getLastClockLog(String principalId,
                         String clockAction)
Fetch last clock log for principal id and clock action

Parameters:
principalId -
clockAction -
Returns:

buildClockLog

ClockLog buildClockLog(Timestamp clockTimestamp,
                       Timestamp originalTimestamp,
                       Assignment assignment,
                       TimesheetDocument timesheetDocument,
                       String clockAction,
                       String ip)
Build ClockLog based on criteria passed in

Parameters:
clockTimestamp - -- timestamp with grace rule applied if there is one
originalTimestamp - -- timestamp without grace rule applied
assignment -
timesheetDocument -
clockAction -
ip -
Returns:

getOpenClockLogs

List<ClockLog> getOpenClockLogs(CalendarEntries payCalendarEntry)
Fetch open clock logs by pay calendar entry

Parameters:
payCalendarEntry -
Returns:

processClockLog

ClockLog processClockLog(Timestamp clockTimestamp,
                         Assignment assignment,
                         CalendarEntries pe,
                         String ip,
                         Date asOfDate,
                         TimesheetDocument td,
                         String clockAction,
                         String principalId)
Process clock log created

Parameters:
clockTimestamp -
assignment -
pe -
ip -
asOfDate -
td -
clockAction -
principalId -
Returns:

getClockLog

ClockLog getClockLog(String tkClockLogId)
Fetch clock log by id

Parameters:
tkClockLogId -
Returns:

buildClockLog

ClockLog buildClockLog(Timestamp clockTimestamp,
                       Timestamp originalTimestamp,
                       Assignment assignment,
                       TimesheetDocument timesheetDocument,
                       String clockAction,
                       String ip,
                       String userPrincipalId)

processClockLog

ClockLog processClockLog(Timestamp clockTimeStamp,
                         Assignment assignment,
                         CalendarEntries pe,
                         String ip,
                         Date asOfDate,
                         TimesheetDocument td,
                         String clockAction,
                         String principalId,
                         String userPrincipalId)


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