org.kuali.hr.time.workflow.service
Class TimesheetDocumentHeaderServiceImpl

java.lang.Object
  extended by org.kuali.hr.time.workflow.service.TimesheetDocumentHeaderServiceImpl
All Implemented Interfaces:
TimesheetDocumentHeaderService

public class TimesheetDocumentHeaderServiceImpl
extends Object
implements TimesheetDocumentHeaderService


Constructor Summary
TimesheetDocumentHeaderServiceImpl()
           
 
Method Summary
 void deleteTimesheetHeader(String documentId)
           
 TimesheetDocumentHeader getDocumentHeader(String documentId)
          Fetch document header for a given document id
 TimesheetDocumentHeader getDocumentHeader(String principalId, Date payBeginDate, Date payEndDate)
          Fetch document header for a given principal id and pay period begin date and end date
 TimesheetDocumentHeader getDocumentHeaderForDate(String principalId, Date asOfDate)
           
 List<TimesheetDocumentHeader> getDocumentHeaders(Date payBeginDate, Date payEndDate)
          Fetch document headers for a given pay period begin date and end date
 List<TimesheetDocumentHeader> getDocumentHeadersForPrincipalId(String principalId)
          Fetch list of Document Headers by given principal id
 List<TimesheetDocumentHeader> getDocumentHeadersForYear(String principalId, String year)
          Fetch list of Document Headers by given principal id and year
 TimesheetDocumentHeader getNextDocumentHeader(String principalId, Date payEndDate)
          Fetch next document header
 TimesheetDocumentHeader getPreviousDocumentHeader(String principalId, Date payBeginDate)
          Fetch previous document header
 TimesheetDocumentHeader getPrevOrNextDocumentHeader(String prevOrNext, String principalId)
          Fetch previous or next Document Header -- uses the current Document from context.
 void saveOrUpdate(TimesheetDocumentHeader documentHeader)
          Save or Update the document header
 void setTimesheetDocumentHeaderDao(TimesheetDocumentHeaderDao documentHeaderDao)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimesheetDocumentHeaderServiceImpl

public TimesheetDocumentHeaderServiceImpl()
Method Detail

setTimesheetDocumentHeaderDao

public void setTimesheetDocumentHeaderDao(TimesheetDocumentHeaderDao documentHeaderDao)

getDocumentHeader

public TimesheetDocumentHeader getDocumentHeader(String documentId)
Description copied from interface: TimesheetDocumentHeaderService
Fetch document header for a given document id

Specified by:
getDocumentHeader in interface TimesheetDocumentHeaderService
Returns:

saveOrUpdate

public void saveOrUpdate(TimesheetDocumentHeader documentHeader)
Description copied from interface: TimesheetDocumentHeaderService
Save or Update the document header

Specified by:
saveOrUpdate in interface TimesheetDocumentHeaderService

getDocumentHeader

public TimesheetDocumentHeader getDocumentHeader(String principalId,
                                                 Date payBeginDate,
                                                 Date payEndDate)
Description copied from interface: TimesheetDocumentHeaderService
Fetch document header for a given principal id and pay period begin date and end date

Specified by:
getDocumentHeader in interface TimesheetDocumentHeaderService
Returns:

getPreviousDocumentHeader

public TimesheetDocumentHeader getPreviousDocumentHeader(String principalId,
                                                         Date payBeginDate)
Description copied from interface: TimesheetDocumentHeaderService
Fetch previous document header

Specified by:
getPreviousDocumentHeader in interface TimesheetDocumentHeaderService
Returns:

getNextDocumentHeader

public TimesheetDocumentHeader getNextDocumentHeader(String principalId,
                                                     Date payEndDate)
Description copied from interface: TimesheetDocumentHeaderService
Fetch next document header

Specified by:
getNextDocumentHeader in interface TimesheetDocumentHeaderService
Returns:

getPrevOrNextDocumentHeader

public TimesheetDocumentHeader getPrevOrNextDocumentHeader(String prevOrNext,
                                                           String principalId)
Description copied from interface: TimesheetDocumentHeaderService
Fetch previous or next Document Header -- uses the current Document from context.

Specified by:
getPrevOrNextDocumentHeader in interface TimesheetDocumentHeaderService
Returns:

getDocumentHeaders

public List<TimesheetDocumentHeader> getDocumentHeaders(Date payBeginDate,
                                                        Date payEndDate)
Description copied from interface: TimesheetDocumentHeaderService
Fetch document headers for a given pay period begin date and end date

Specified by:
getDocumentHeaders in interface TimesheetDocumentHeaderService
Returns:

deleteTimesheetHeader

public void deleteTimesheetHeader(String documentId)
Specified by:
deleteTimesheetHeader in interface TimesheetDocumentHeaderService

getDocumentHeadersForPrincipalId

public List<TimesheetDocumentHeader> getDocumentHeadersForPrincipalId(String principalId)
Description copied from interface: TimesheetDocumentHeaderService
Fetch list of Document Headers by given principal id

Specified by:
getDocumentHeadersForPrincipalId in interface TimesheetDocumentHeaderService
Returns:
List

getDocumentHeadersForYear

public List<TimesheetDocumentHeader> getDocumentHeadersForYear(String principalId,
                                                               String year)
Description copied from interface: TimesheetDocumentHeaderService
Fetch list of Document Headers by given principal id and year

Specified by:
getDocumentHeadersForYear in interface TimesheetDocumentHeaderService
Returns:
List

getDocumentHeaderForDate

public TimesheetDocumentHeader getDocumentHeaderForDate(String principalId,
                                                        Date asOfDate)
Specified by:
getDocumentHeaderForDate in interface TimesheetDocumentHeaderService


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