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

All Known Implementing Classes:
ClockLogServiceImpl

public interface ClockLogService


Method Summary
 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, 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, boolean runRules, String principalId)
          Process clock log created
 ClockLog processClockLog(Timestamp clockTimeStamp, Assignment assignment, CalendarEntries pe, String ip, Date asOfDate, TimesheetDocument td, String clockAction, boolean runRules, String principalId, String userPrincipalId)
           
 ClockLog saveClockLog(ClockLog clockLog)
          Save clock log
 

Method Detail

saveClockLog

ClockLog 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:

getLastClockLog

ClockLog getLastClockLog(String principalId,
                         String jobNumber,
                         String workArea,
                         String task,
                         CalendarEntries calendarEntry)
Fetch last clock log for principal id, assignment details, and calendar entry

Parameters:
principalId -
jobNumber -
workArea -
task -
calendarEntry -
Returns:

processClockLog

ClockLog processClockLog(Timestamp clockTimestamp,
                         Assignment assignment,
                         CalendarEntries pe,
                         String ip,
                         Date asOfDate,
                         TimesheetDocument td,
                         String clockAction,
                         boolean runRules,
                         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:

processClockLog

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

deleteClockLogsForDocumentId

void deleteClockLogsForDocumentId(String documentId)

getUnapprovedIPWarning

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

Parameters:
timeBlocks -
Returns:
List

buildUnapprovedIPWarning

String buildUnapprovedIPWarning(ClockLog cl)
Build an unapproved IP address warning message for based on given ClockLog

Parameters:
cl -
Returns:


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