org.kuali.hr.lm.leavecalendar.service
Class LeaveCalendarServiceImpl

java.lang.Object
  extended by org.kuali.hr.lm.leavecalendar.service.LeaveCalendarServiceImpl
All Implemented Interfaces:
LeaveCalendarService

public class LeaveCalendarServiceImpl
extends Object
implements LeaveCalendarService


Constructor Summary
LeaveCalendarServiceImpl()
           
 
Method Summary
 void approveLeaveCalendar(String principalId, LeaveCalendarDocument leaveCalendarDocument)
           
 void approveLeaveCalendar(String principalId, LeaveCalendarDocument leaveCalendarDocument, String action)
           
 void disapproveLeaveCalendar(String principalId, LeaveCalendarDocument leaveCalendarDocument)
           
 BigDecimal getCarryOverForCurrentCalendar(String principalId)
           
 LeaveCalendarDao getLeaveCalendarDao()
           
 LeaveCalendarDocument getLeaveCalendarDocument(String documentId)
           
 LeaveCalendarDocument getLeaveCalendarDocument(String principalId, CalendarEntries calendarEntry)
           
protected  LeaveCalendarDocument initiateWorkflowDocument(String principalId, Date payBeginDate, Date payEndDate, CalendarEntries calendarEntries, String documentType, String title)
           
 boolean isLeavePlanningCalendar(String principalId, Date beginDate, Date endDate)
          Determine if Leave Calendar is planning or reporting calendar
 boolean isReadyToApprove(LeaveCalendarDocument document)
           
protected  void leaveCalendarDocumentAction(String action, String principalId, LeaveCalendarDocument leaveCalendarDocument)
           
protected  void loadLeaveCalendarDocumentData(LeaveCalendarDocument ldoc, String principalId, CalendarEntries calEntry)
          Preload the document data.
 LeaveCalendarDocument openLeaveCalendarDocument(String principalId, CalendarEntries 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, CalendarEntries 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LeaveCalendarServiceImpl

public LeaveCalendarServiceImpl()
Method Detail

getLeaveCalendarDocument

public LeaveCalendarDocument getLeaveCalendarDocument(String documentId)
Specified by:
getLeaveCalendarDocument in interface LeaveCalendarService

openLeaveCalendarDocument

public LeaveCalendarDocument openLeaveCalendarDocument(String principalId,
                                                       CalendarEntries calEntry)
                                                throws org.kuali.rice.kew.api.exception.WorkflowException
Specified by:
openLeaveCalendarDocument in interface LeaveCalendarService
Throws:
org.kuali.rice.kew.api.exception.WorkflowException

shouldCreateLeaveDocument

public boolean shouldCreateLeaveDocument(String principalId,
                                         CalendarEntries calEntry)
Description copied from interface: LeaveCalendarService
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

Specified by:
shouldCreateLeaveDocument in interface LeaveCalendarService
Returns:
boolean

initiateWorkflowDocument

protected LeaveCalendarDocument initiateWorkflowDocument(String principalId,
                                                         Date payBeginDate,
                                                         Date payEndDate,
                                                         CalendarEntries calendarEntries,
                                                         String documentType,
                                                         String title)
                                                  throws org.kuali.rice.kew.api.exception.WorkflowException
Throws:
org.kuali.rice.kew.api.exception.WorkflowException

loadLeaveCalendarDocumentData

protected void loadLeaveCalendarDocumentData(LeaveCalendarDocument ldoc,
                                             String principalId,
                                             CalendarEntries calEntry)
Preload the document data. It preloads: - LeaveBlocks on the document.

Parameters:
ldoc -
principalId -
calEntry -

getLeaveCalendarDao

public LeaveCalendarDao getLeaveCalendarDao()

setLeaveCalendarDao

public void setLeaveCalendarDao(LeaveCalendarDao leaveCalendarDao)

getLeaveCalendarDocument

public LeaveCalendarDocument getLeaveCalendarDocument(String principalId,
                                                      CalendarEntries calendarEntry)
Specified by:
getLeaveCalendarDocument in interface LeaveCalendarService

routeLeaveCalendar

public void routeLeaveCalendar(String principalId,
                               LeaveCalendarDocument leaveCalendarDocument)
Description copied from interface: LeaveCalendarService
Route the given leaveCalendarDocument

Specified by:
routeLeaveCalendar in interface LeaveCalendarService

routeLeaveCalendar

public void routeLeaveCalendar(String principalId,
                               LeaveCalendarDocument leaveCalendarDocument,
                               String action)
Specified by:
routeLeaveCalendar in interface LeaveCalendarService

approveLeaveCalendar

public void approveLeaveCalendar(String principalId,
                                 LeaveCalendarDocument leaveCalendarDocument)
Specified by:
approveLeaveCalendar in interface LeaveCalendarService

approveLeaveCalendar

public void approveLeaveCalendar(String principalId,
                                 LeaveCalendarDocument leaveCalendarDocument,
                                 String action)
Specified by:
approveLeaveCalendar in interface LeaveCalendarService

disapproveLeaveCalendar

public void disapproveLeaveCalendar(String principalId,
                                    LeaveCalendarDocument leaveCalendarDocument)
Specified by:
disapproveLeaveCalendar in interface LeaveCalendarService

isReadyToApprove

public boolean isReadyToApprove(LeaveCalendarDocument document)
Specified by:
isReadyToApprove in interface LeaveCalendarService

leaveCalendarDocumentAction

protected void leaveCalendarDocumentAction(String action,
                                           String principalId,
                                           LeaveCalendarDocument leaveCalendarDocument)

isLeavePlanningCalendar

public boolean isLeavePlanningCalendar(String principalId,
                                       Date beginDate,
                                       Date endDate)
Description copied from interface: LeaveCalendarService
Determine if Leave Calendar is planning or reporting calendar

Specified by:
isLeavePlanningCalendar in interface LeaveCalendarService
Returns:
boolean

getCarryOverForCurrentCalendar

public BigDecimal getCarryOverForCurrentCalendar(String principalId)
Specified by:
getCarryOverForCurrentCalendar in interface LeaveCalendarService


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