|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.kpme.tklm.time.timesheet.service.TimesheetServiceImpl
public class TimesheetServiceImpl
Constructor Summary | |
---|---|
TimesheetServiceImpl()
|
Method Summary | |
---|---|
void |
approveTimesheet(String principalId,
TimesheetDocument timesheetDocument)
|
void |
approveTimesheet(String principalId,
TimesheetDocument timesheetDocument,
String action)
|
void |
deleteTimesheet(String documentId)
Delete a timesheet(used for testing only) |
void |
disapproveTimesheet(String principalId,
TimesheetDocument timesheetDocument)
|
List<EarnCode> |
getEarnCodesForTime(Assignment a,
org.joda.time.LocalDate asOfDate)
Previously in EarnCodeService |
List<EarnCode> |
getEarnCodesForTime(Assignment a,
org.joda.time.LocalDate asOfDate,
boolean includeRegularEarnCode)
Fetch a list of earn codes for Time usage, for a particular assignment as of a particular date |
HRPermissionService |
getHRPermissionService()
|
List<TimeBlock> |
getPrevDocumentTimeBlocks(String principalId,
org.joda.time.DateTime payBeginDate)
Fetch TimeBlocks for previous pay periods |
TimesheetDocument |
getTimesheetDocument(String documentId)
For a given document ID, return a fully populated time sheet document. |
protected TimesheetDocument |
initiateWorkflowDocument(String principalId,
org.joda.time.DateTime payBeginDate,
org.joda.time.DateTime payEndDate,
CalendarEntry calendarEntry,
String documentType,
String title)
|
boolean |
isReadyToApprove(TimesheetDocument document)
|
boolean |
isSynchronousUser()
Is user a Clock in/out person or do they manually enter TimeBlocks |
void |
loadHolidaysOnTimesheet(TimesheetDocument timesheetDocument,
String principalId,
org.joda.time.LocalDate beginDate,
org.joda.time.LocalDate endDate)
Load holidays on given timesheet |
protected void |
loadTimesheetDocumentData(TimesheetDocument tdoc,
String principalId,
CalendarEntry payCalEntry)
|
TimesheetDocument |
openTimesheetDocument(String principalId,
CalendarEntry calendarDates)
Opens the timesheet document for the user at the given payEndDate provided. |
void |
resetTimeBlock(List<TimeBlock> timeBlocks,
org.joda.time.LocalDate asOfDate)
|
TimeBlock |
resetWorkedHours(TimeBlock previousTimeBlock,
TimeBlock timeBlock,
org.joda.time.LocalDate asOfDate)
|
void |
routeTimesheet(String principalId,
TimesheetDocument timesheetDocument)
Route the given timesheet |
void |
routeTimesheet(String principalId,
TimesheetDocument timesheetDocument,
String action)
|
protected void |
timesheetAction(String action,
String principalId,
TimesheetDocument timesheetDocument)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimesheetServiceImpl()
Method Detail |
---|
public void routeTimesheet(String principalId, TimesheetDocument timesheetDocument)
TimesheetService
routeTimesheet
in interface TimesheetService
public void routeTimesheet(String principalId, TimesheetDocument timesheetDocument, String action)
routeTimesheet
in interface TimesheetService
public void approveTimesheet(String principalId, TimesheetDocument timesheetDocument)
approveTimesheet
in interface TimesheetService
public void approveTimesheet(String principalId, TimesheetDocument timesheetDocument, String action)
approveTimesheet
in interface TimesheetService
public void disapproveTimesheet(String principalId, TimesheetDocument timesheetDocument)
disapproveTimesheet
in interface TimesheetService
protected void timesheetAction(String action, String principalId, TimesheetDocument timesheetDocument)
public TimesheetDocument openTimesheetDocument(String principalId, CalendarEntry calendarDates) throws org.kuali.rice.kew.api.exception.WorkflowException
TimesheetService
openTimesheetDocument
in interface TimesheetService
org.kuali.rice.kew.api.exception.WorkflowException
public void loadHolidaysOnTimesheet(TimesheetDocument timesheetDocument, String principalId, org.joda.time.LocalDate beginDate, org.joda.time.LocalDate endDate)
TimesheetService
loadHolidaysOnTimesheet
in interface TimesheetService
protected TimesheetDocument initiateWorkflowDocument(String principalId, org.joda.time.DateTime payBeginDate, org.joda.time.DateTime payEndDate, CalendarEntry calendarEntry, String documentType, String title) throws org.kuali.rice.kew.api.exception.WorkflowException
org.kuali.rice.kew.api.exception.WorkflowException
public List<TimeBlock> getPrevDocumentTimeBlocks(String principalId, org.joda.time.DateTime payBeginDate)
TimesheetService
getPrevDocumentTimeBlocks
in interface TimesheetService
public TimesheetDocument getTimesheetDocument(String documentId)
TimesheetService
getTimesheetDocument
in interface TimesheetService
protected void loadTimesheetDocumentData(TimesheetDocument tdoc, String principalId, CalendarEntry payCalEntry)
public boolean isSynchronousUser()
TimesheetService
isSynchronousUser
in interface TimesheetService
public void deleteTimesheet(String documentId)
TimesheetService
deleteTimesheet
in interface TimesheetService
public TimeBlock resetWorkedHours(TimeBlock previousTimeBlock, TimeBlock timeBlock, org.joda.time.LocalDate asOfDate)
public void resetTimeBlock(List<TimeBlock> timeBlocks, org.joda.time.LocalDate asOfDate)
resetTimeBlock
in interface TimesheetService
public boolean isReadyToApprove(TimesheetDocument document)
isReadyToApprove
in interface TimesheetService
public List<EarnCode> getEarnCodesForTime(Assignment a, org.joda.time.LocalDate asOfDate, boolean includeRegularEarnCode)
TimesheetService
getEarnCodesForTime
in interface TimesheetService
public List<EarnCode> getEarnCodesForTime(Assignment a, org.joda.time.LocalDate asOfDate)
TimesheetService
getEarnCodesForTime
in interface TimesheetService
public HRPermissionService getHRPermissionService()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |