public class TimesheetDocument extends CalendarDocument implements TimesheetDocumentContract
| Modifier and Type | Field and Description |
|---|---|
static String |
TIMESHEET_DOCUMENT_TYPE
This static member is needed by document search, to trigger the correct calendar document
opening when clicking on a doc id link in the search results.
|
asOfDate, assignments, calendarEntry, calendarType, documentHeader| Constructor and Description |
|---|
TimesheetDocument(TimesheetDocumentHeader documentHeader) |
| Modifier and Type | Method and Description |
|---|---|
org.joda.time.LocalDate |
getAsOfDate()
The beginning date of the calendar entry the CalendarDocument is associated with
|
Map<String,String> |
getAssignmentDescriptions(boolean clockOnlyAssignments)
TODO: Put a comment
The map of assignment descriptions associated with the TimesheetDocument
|
Map<String,String> |
getAssignmentDescriptionsOfApprovals(boolean clockOnlyAssignments) |
List<Assignment> |
getAssignments()
The list of Assignment objects the CalendarDocument is associated with
|
CalendarEntry |
getCalendarEntry()
The CalendarEntry object the CalendarDocument is associated with
|
org.joda.time.LocalDate |
getDocEndDate()
The end period date of the calendar entry associated with the TimesheetDocument
|
TimesheetDocumentHeader |
getDocumentHeader()
The CalendarDocumentHeader object the CalendarDocument is associated with
|
String |
getDocumentId()
The document id of the document header associated with the TimesheetDocument
|
Map<String,List<org.joda.time.LocalDate>> |
getEarnCodeMap()
TODO: Put a better comment
The map of earn code name and a list of begin date of time blocks associated with the TimesheetDocument
|
Job |
getJob(Long jobNumber)
The Job object associated with the jobNumber
|
List<Job> |
getJobs()
The list of Job objects associated with the TimesheetDocument
|
String |
getPrincipalId()
The principal id of the document header associated with the TimesheetDocument
|
List<TimeBlock> |
getTimeBlocks()
The list of TimeBlock objects associated with the TimesheetDocument
|
TimeSummary |
getTimeSummary()
The TimeSummary object associated with the TimesheetDocument
|
void |
setAssignments(List<Assignment> assignments) |
void |
setCalendarEntry(CalendarEntry calendarEntry) |
void |
setDocumentHeader(TimesheetDocumentHeader documentHeader) |
void |
setJobs(List<Job> jobs) |
void |
setTimeBlocks(List<TimeBlock> timeBlocks) |
void |
setTimeSummary(TimeSummary timeSummary) |
getAssignment, getAssignmentDescriptions, getCalendarType, setCalendarTypepublic static final String TIMESHEET_DOCUMENT_TYPE
public TimesheetDocument(TimesheetDocumentHeader documentHeader)
public TimesheetDocumentHeader getDocumentHeader()
CalendarDocumentContractdocumentHeader of a CalendarDocument
getDocumentHeader in interface CalendarDocumentContractgetDocumentHeader in class CalendarDocumentpublic void setDocumentHeader(TimesheetDocumentHeader documentHeader)
public List<Assignment> getAssignments()
CalendarDocumentContractassignments of a CalendarDocument
getAssignments in interface CalendarDocumentContractgetAssignments in class CalendarDocumentpublic void setAssignments(List<Assignment> assignments)
public List<Job> getJobs()
TimesheetDocumentContractjobs of a TimesheetDocument
getJobs in interface TimesheetDocumentContractpublic List<TimeBlock> getTimeBlocks()
TimesheetDocumentContracttimeBlocks of a TimesheetDocument
getTimeBlocks in interface TimesheetDocumentContractpublic void setTimeBlocks(List<TimeBlock> timeBlocks)
public CalendarEntry getCalendarEntry()
CalendarDocumentContractcalendarEntry of a CalendarDocument
getCalendarEntry in interface CalendarDocumentContractgetCalendarEntry in class CalendarDocumentpublic void setCalendarEntry(CalendarEntry calendarEntry)
public void setTimeSummary(TimeSummary timeSummary)
public TimeSummary getTimeSummary()
TimesheetDocumentContracttimeSummary of a TimesheetDocument
getTimeSummary in interface TimesheetDocumentContractpublic String getPrincipalId()
TimesheetDocumentContractgetDocumentHeader().getPrincipalId() of a TimesheetDocument
getPrincipalId in interface TimesheetDocumentContractgetPrincipalId in class CalendarDocumentpublic Job getJob(Long jobNumber)
TimesheetDocumentContractjob associated with the jobNumber
getJob in interface TimesheetDocumentContractpublic org.joda.time.LocalDate getAsOfDate()
CalendarDocumentContractasOfDate of a CalendarDocument
getAsOfDate in interface CalendarDocumentContractgetAsOfDate in class CalendarDocumentpublic org.joda.time.LocalDate getDocEndDate()
TimesheetDocumentContractgetCalendarEntry().getEndPeriodFullDateTime().toLocalDate() of a TimesheetDocument
getDocEndDate in interface TimesheetDocumentContractpublic String getDocumentId()
TimesheetDocumentContractthis.getDocumentHeader().getDocumentId() of a TimesheetDocument
getDocumentId in interface TimesheetDocumentContractgetDocumentId in class CalendarDocumentpublic Map<String,List<org.joda.time.LocalDate>> getEarnCodeMap()
TimesheetDocumentContractearnCodeMap of a TimesheetDocument
getEarnCodeMap in interface TimesheetDocumentContractpublic Map<String,String> getAssignmentDescriptions(boolean clockOnlyAssignments)
TimesheetDocumentContract
getAssignmentDescriptions in interface TimesheetDocumentContractpublic Map<String,String> getAssignmentDescriptionsOfApprovals(boolean clockOnlyAssignments)
Copyright © 2004–2014 The Kuali Foundation. All rights reserved.