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.
|
Constructor and Description |
---|
TimesheetDocument(TimesheetDocumentHeader documentHeader) |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getAssignmentDescriptions(boolean clockOnlyAssignments,
org.joda.time.LocalDate date)
TODO: Put a comment
The map of assignment descriptions associated with the TimesheetDocument
|
Map<String,String> |
getAssignmentDescriptionsOfApprovals(boolean clockOnlyAssignments) |
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 |
setDocumentHeader(TimesheetDocumentHeader documentHeader) |
void |
setJobs(List<Job> jobs) |
void |
setTimeBlocks(List<TimeBlock> timeBlocks) |
getAllAssignments, getAsOfDate, getAssignment, getAssignmentDescriptions, getAssignmentMap, getCalendarEntry, getCalendarType, getDocEndDate, setAssignments, setCalendarEntry, setCalendarType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDocEndDate
getAllAssignments, getAsOfDate, getAssignmentMap, getCalendarEntry
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<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 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
jobNumber
- number to retrieve Job object from jobNumberToJobMappublic 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, org.joda.time.LocalDate date)
TimesheetDocumentContract
getAssignmentDescriptions
in interface TimesheetDocumentContract
public Map<String,String> getAssignmentDescriptionsOfApprovals(boolean clockOnlyAssignments)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.