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, setCalendarType
public static final String TIMESHEET_DOCUMENT_TYPE
public TimesheetDocument(TimesheetDocumentHeader documentHeader)
public TimesheetDocumentHeader getDocumentHeader()
CalendarDocumentContract
documentHeader of a CalendarDocument
getDocumentHeader
in interface CalendarDocumentContract
getDocumentHeader
in class CalendarDocument
public void setDocumentHeader(TimesheetDocumentHeader documentHeader)
public List<Assignment> getAssignments()
CalendarDocumentContract
assignments of a CalendarDocument
getAssignments
in interface CalendarDocumentContract
getAssignments
in class CalendarDocument
public void setAssignments(List<Assignment> assignments)
public List<Job> getJobs()
TimesheetDocumentContract
jobs of a TimesheetDocument
getJobs
in interface TimesheetDocumentContract
public List<TimeBlock> getTimeBlocks()
TimesheetDocumentContract
timeBlocks of a TimesheetDocument
getTimeBlocks
in interface TimesheetDocumentContract
public void setTimeBlocks(List<TimeBlock> timeBlocks)
public CalendarEntry getCalendarEntry()
CalendarDocumentContract
calendarEntry of a CalendarDocument
getCalendarEntry
in interface CalendarDocumentContract
getCalendarEntry
in class CalendarDocument
public void setCalendarEntry(CalendarEntry calendarEntry)
public void setTimeSummary(TimeSummary timeSummary)
public TimeSummary getTimeSummary()
TimesheetDocumentContract
timeSummary of a TimesheetDocument
getTimeSummary
in interface TimesheetDocumentContract
public String getPrincipalId()
TimesheetDocumentContract
getDocumentHeader().getPrincipalId() of a TimesheetDocument
getPrincipalId
in interface TimesheetDocumentContract
getPrincipalId
in class CalendarDocument
public Job getJob(Long jobNumber)
TimesheetDocumentContract
job associated with the jobNumber
getJob
in interface TimesheetDocumentContract
public org.joda.time.LocalDate getAsOfDate()
CalendarDocumentContract
asOfDate of a CalendarDocument
getAsOfDate
in interface CalendarDocumentContract
getAsOfDate
in class CalendarDocument
public org.joda.time.LocalDate getDocEndDate()
TimesheetDocumentContract
getCalendarEntry().getEndPeriodFullDateTime().toLocalDate() of a TimesheetDocument
getDocEndDate
in interface TimesheetDocumentContract
public String getDocumentId()
TimesheetDocumentContract
this.getDocumentHeader().getDocumentId() of a TimesheetDocument
getDocumentId
in interface TimesheetDocumentContract
getDocumentId
in class CalendarDocument
public Map<String,List<org.joda.time.LocalDate>> getEarnCodeMap()
TimesheetDocumentContract
earnCodeMap of a TimesheetDocument
getEarnCodeMap
in interface TimesheetDocumentContract
public Map<String,String> getAssignmentDescriptions(boolean clockOnlyAssignments)
TimesheetDocumentContract
getAssignmentDescriptions
in interface TimesheetDocumentContract
public Map<String,String> getAssignmentDescriptionsOfApprovals(boolean clockOnlyAssignments)
Copyright © 2004–2014 The Kuali Foundation. All rights reserved.