public class LeaveCalendarServiceImpl extends Object implements LeaveCalendarService
Constructor and Description |
---|
LeaveCalendarServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
approveLeaveCalendar(String principalId,
LeaveCalendarDocument leaveCalendarDocument) |
void |
approveLeaveCalendar(String principalId,
LeaveCalendarDocument leaveCalendarDocument,
String action) |
void |
disapproveLeaveCalendar(String principalId,
LeaveCalendarDocument leaveCalendarDocument) |
LeaveCalendarDao |
getLeaveCalendarDao() |
LeaveCalendarDocument |
getLeaveCalendarDocument(String documentId) |
LeaveCalendarDocument |
getLeaveCalendarDocument(String principalId,
CalendarEntry calendarEntry) |
protected LeaveCalendarDocument |
initiateWorkflowDocument(String principalId,
org.joda.time.DateTime payBeginDate,
org.joda.time.DateTime payEndDate,
CalendarEntry calendarEntry,
String documentType,
String title) |
boolean |
isLeavePlanningCalendar(String principalId,
org.joda.time.LocalDate beginDate,
org.joda.time.LocalDate endDate)
Determine if Leave Calendar is planning or reporting calendar
|
boolean |
isReadyToApprove(CalendarDocument document) |
protected void |
leaveCalendarDocumentAction(String action,
String principalId,
LeaveCalendarDocument leaveCalendarDocument) |
protected void |
loadLeaveCalendarDocumentData(LeaveCalendarDocument ldoc,
String principalId,
CalendarEntry calEntry)
Preload the document data.
|
LeaveCalendarDocument |
openLeaveCalendarDocument(String principalId,
CalendarEntry calEntry) |
void |
routeLeaveCalendar(String principalId,
LeaveCalendarDocument leaveCalendarDocument)
Route the given leaveCalendarDocument
|
void |
routeLeaveCalendar(String principalId,
LeaveCalendarDocument leaveCalendarDocument,
String action) |
void |
setLeaveCalendarDao(LeaveCalendarDao leaveCalendarDao) |
boolean |
shouldCreateLeaveDocument(String principalId,
CalendarEntry calEntry)
Determine if Leave Calendar document should be created for given principalId and calendar entry
Should only create leave calendar document if active jobs were found with flsa elig = no and ben elg = yes
|
public LeaveCalendarServiceImpl()
public LeaveCalendarDocument getLeaveCalendarDocument(String documentId)
getLeaveCalendarDocument
in interface LeaveCalendarService
public LeaveCalendarDocument openLeaveCalendarDocument(String principalId, CalendarEntry calEntry) throws org.kuali.rice.kew.api.exception.WorkflowException
openLeaveCalendarDocument
in interface LeaveCalendarService
org.kuali.rice.kew.api.exception.WorkflowException
public boolean shouldCreateLeaveDocument(String principalId, CalendarEntry calEntry)
LeaveCalendarService
shouldCreateLeaveDocument
in interface LeaveCalendarService
protected LeaveCalendarDocument 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
protected void loadLeaveCalendarDocumentData(LeaveCalendarDocument ldoc, String principalId, CalendarEntry calEntry)
ldoc
- principalId
- calEntry
- public LeaveCalendarDao getLeaveCalendarDao()
public void setLeaveCalendarDao(LeaveCalendarDao leaveCalendarDao)
public LeaveCalendarDocument getLeaveCalendarDocument(String principalId, CalendarEntry calendarEntry)
getLeaveCalendarDocument
in interface LeaveCalendarService
public void routeLeaveCalendar(String principalId, LeaveCalendarDocument leaveCalendarDocument)
LeaveCalendarService
routeLeaveCalendar
in interface LeaveCalendarService
public void routeLeaveCalendar(String principalId, LeaveCalendarDocument leaveCalendarDocument, String action)
routeLeaveCalendar
in interface LeaveCalendarService
public void approveLeaveCalendar(String principalId, LeaveCalendarDocument leaveCalendarDocument)
approveLeaveCalendar
in interface LeaveCalendarService
public void approveLeaveCalendar(String principalId, LeaveCalendarDocument leaveCalendarDocument, String action)
approveLeaveCalendar
in interface LeaveCalendarService
public void disapproveLeaveCalendar(String principalId, LeaveCalendarDocument leaveCalendarDocument)
disapproveLeaveCalendar
in interface LeaveCalendarService
public boolean isReadyToApprove(CalendarDocument document)
isReadyToApprove
in interface LeaveCalendarService
protected void leaveCalendarDocumentAction(String action, String principalId, LeaveCalendarDocument leaveCalendarDocument)
public boolean isLeavePlanningCalendar(String principalId, org.joda.time.LocalDate beginDate, org.joda.time.LocalDate endDate)
LeaveCalendarService
isLeavePlanningCalendar
in interface LeaveCalendarService
Copyright © 2004–2014 The Kuali Foundation. All rights reserved.