public final class TimeBlock extends org.kuali.rice.core.api.mo.AbstractDataTransferObject implements TimeBlockContract
| Modifier and Type | Class and Description |
|---|---|
static class |
TimeBlock.Builder
A builder which can be used to construct
TimeBlock instances. |
| Modifier and Type | Field and Description |
|---|---|
static String |
CACHE_NAME |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(TimeBlockContract tb) |
static TimeBlock |
copy(TimeBlock timeBlock) |
boolean |
equals(Object obj) |
org.joda.time.DateTime |
getActionDateTime() |
String |
getActualBeginTimeString()
The actual begin time string associated with the TimeBlock
|
String |
getActualEndTimeString()
The actual end time string associated with the TimeBlock
|
BigDecimal |
getAmount()
The amount associated with the TimeBlock
|
String |
getAssignmentDescription()
The assignment description associated with the TimeBlock
|
String |
getAssignmentKey()
The assignment key associated with the TimeBlock
|
String |
getAssignmentValue() |
org.joda.time.DateTime |
getBeginDateTime()
The beginTimestamp (Datetime) associated with the TimeBlock
|
org.joda.time.LocalTime |
getBeginTime()
The beginTimestamp (Time) associated with the TimeBlock
|
org.joda.time.DateTime |
getBeginTimeDisplay()
The Timeblock begin time to display with the user's Timezone taken into account and applied to this DateTime object.
|
String |
getBeginTimeDisplayDateOnlyString()
The date portion of the Timeblock begin time associated with the TimeBlock
|
String |
getBeginTimeDisplayTimeOnlyString()
The time portion of the Timeblock begin time associated with the TimeBlock
|
String |
getClockAction() |
Boolean |
getClockedByMissedPunch() |
String |
getClockLogBeginId()
The clock log begin id associated with the TimeBlock
|
String |
getClockLogEndId()
The clock log end id associated with the TimeBlock
|
String |
getConcreteBlockId() |
String |
getConcreteBlockType() |
org.joda.time.DateTime |
getCreateTime()
The timestamp associated with the TimeBlock
|
String |
getDocumentId() |
String |
getEarnCode() |
String |
getEarnCodeType()
The earn code type associated with the TimeBlock
|
org.joda.time.DateTime |
getEndDateTime()
The endTimestamp (DateTime) associated with the TimeBlock
|
org.joda.time.LocalTime |
getEndTime()
The endTimestamp (Time) associated with the TimeBlock
|
org.joda.time.DateTime |
getEndTimeDisplay()
The Timeblock end time to display with the user's Timezone taken into account and applied to this DateTime object.
|
String |
getEndTimeDisplayDateOnlyString()
The date portion of the Timeblock end time associated with the TimeBlock
|
String |
getEndTimeDisplayTimeOnlyString()
The time portion of the Timeblock end time associated with the TimeBlock
|
HrGroupKey |
getGroupKey() |
String |
getGroupKeyCode()
The localDate format of the effective date of the HrBusinessObject
|
BigDecimal |
getHours()
The hours associated with the TimeBlock
|
String |
getHrCalendarBlockId()
The id of the CalendarBlock object associated with the TimeBlock
|
Long |
getJobNumber() |
org.joda.time.DateTime |
getLeaveDateTime() |
String |
getMissedPunchDocId() |
String |
getMissedPunchDocStatus() |
String |
getObjectId() |
String |
getOvertimePref()
TODO: Put a better comment
The overtimePref associated with the TimeBlock
|
String |
getPrincipalId()
The principalId associated with the TimeBlock
|
Long |
getTask() |
List<TimeHourDetail> |
getTimeHourDetails()
The list of TimeHourDetail objects associated with the TimeBlock
|
String |
getTkTimeBlockId()
The primary key of a TimeBlock entry saved in a database
|
BigDecimal |
getTotalMinutes()
The minutes associated with the TimeBlock (directly related to hours)
|
String |
getUserPrincipalId()
The userPrincipalId associated with the TimeBlock
|
Long |
getVersionNumber() |
Long |
getWorkArea() |
Boolean |
isClockedByMissedPunch() |
Boolean |
isClockLogCreated()
Flag the shows if the timeblock has been created by a clock log
|
boolean |
isLunchDeleted()
TODO: Make sure this comment is right
The flag that indicates if lunch hour is deleted
|
boolean |
isMissedPunchClockIn() |
boolean |
isMissedPunchClockOut() |
Boolean |
isPushBackward()
The flag that indicates if the TimeBlock will be pushed back or not
|
public static final String CACHE_NAME
public BigDecimal getHours()
TimeBlockContracthours of a TimeBlock
getHours in interface CalendarBlockContractgetHours in interface TimeBlockContractpublic org.joda.time.DateTime getEndDateTime()
TimeBlockContractendTimestamp wrapped in DateTime object of a TimeBlock
getEndDateTime in interface CalendarBlockContractgetEndDateTime in interface TimeBlockContractpublic Boolean isClockLogCreated()
TimeBlockContractclockLogCreated flag of a Timeblock
isClockLogCreated in interface TimeBlockContractpublic org.joda.time.DateTime getBeginDateTime()
TimeBlockContractbeginTimestamp wrapped in DateTime object of a TimeBlock
getBeginDateTime in interface CalendarBlockContractgetBeginDateTime in interface TimeBlockContractpublic org.joda.time.LocalTime getEndTime()
TimeBlockContractendTimestamp wrapped in Time object of a TimeBlock
getEndTime in interface TimeBlockContractpublic BigDecimal getAmount()
TimeBlockContractamount of a TimeBlock
getAmount in interface CalendarBlockContractgetAmount in interface TimeBlockContractpublic String getUserPrincipalId()
TimeBlockContractuserPrincipalId of a TimeBlock
getUserPrincipalId in interface UserModifiedgetUserPrincipalId in interface TimeBlockContractpublic String getTkTimeBlockId()
TimeBlockContracttkTimeBlockId of a TimeBlock
getTkTimeBlockId in interface TimeBlockContractpublic List<TimeHourDetail> getTimeHourDetails()
TimeBlockContracttimeHourDetails of a TimeBlock
getTimeHourDetails in interface TimeBlockContractpublic Boolean isPushBackward()
TimeBlockContractA timeblock will be pushed back if the timeblock is still within the previous interval.
isPushBackward in interface TimeBlockContractpublic org.joda.time.DateTime getBeginTimeDisplay()
TimeBlockContractUse this call for all GUI/Display related rendering of the END timestamp of the given time block. Timeblocks require pre-processing before there will be a non-null return value here.
getBeginTimeDisplay in interface TimeBlockContractpublic String getBeginTimeDisplayDateOnlyString()
TimeBlockContract
getBeginTimeDisplayDateOnlyString in interface TimeBlockContractpublic String getBeginTimeDisplayTimeOnlyString()
TimeBlockContract
getBeginTimeDisplayTimeOnlyString in interface TimeBlockContractpublic String getEndTimeDisplayDateOnlyString()
TimeBlockContract
getEndTimeDisplayDateOnlyString in interface TimeBlockContractpublic String getEndTimeDisplayTimeOnlyString()
TimeBlockContract
getEndTimeDisplayTimeOnlyString in interface TimeBlockContractpublic org.joda.time.DateTime getEndTimeDisplay()
TimeBlockContractUse this call for all GUI/Display related rendering of the END timestamp of the given time block. Timeblocks require pre-processing before there will be a non-null return value here.
getEndTimeDisplay in interface TimeBlockContractpublic String getClockLogBeginId()
TimeBlockContractclockLogBeginId of a TimeBlock
getClockLogBeginId in interface TimeBlockContractpublic String getClockLogEndId()
TimeBlockContractclockLogEndId of a TimeBlock
getClockLogEndId in interface TimeBlockContractpublic String getAssignmentKey()
TimeBlockContractassignmentKey of a TimeBlock
getAssignmentKey in interface TimeBlockContractpublic String getAssignmentDescription()
TimeBlockContractassignment description of a TimeBlock
getAssignmentDescription in interface TimeBlockContractpublic String getEarnCodeType()
TimeBlockContractearnCodeType of a TimeBlock
getEarnCodeType in interface TimeBlockContractpublic String getPrincipalId()
TimeBlockContractprincipalId of a TimeBlock
getPrincipalId in interface CalendarBlockContractgetPrincipalId in interface TimeBlockContractpublic String getOvertimePref()
TimeBlockContractovertimePref of a TimeBlock
getOvertimePref in interface CalendarBlockContractgetOvertimePref in interface TimeBlockContractpublic String getActualBeginTimeString()
TimeBlockContractIt applies grace period rule to times of time block. This string is for GUI of Actual time inquiry
getActualBeginTimeString in interface TimeBlockContractpublic String getActualEndTimeString()
TimeBlockContractIt applies grace period rule to times of time block. This string is for GUI of Actual time inquiry
getActualEndTimeString in interface TimeBlockContractpublic boolean isLunchDeleted()
TimeBlockContractlunchDeleted flag of a TimeBlock
isLunchDeleted in interface CalendarBlockContractisLunchDeleted in interface TimeBlockContractpublic String getHrCalendarBlockId()
TimeBlockContractsuper.hrCalendarBlockId a TimeBlock
getHrCalendarBlockId in interface CalendarBlockContractgetHrCalendarBlockId in interface TimeBlockContractpublic org.joda.time.LocalTime getBeginTime()
TimeBlockContractbeginTimestamp wrapped in Time object of a TimeBlock
getBeginTime in interface TimeBlockContractpublic org.joda.time.DateTime getCreateTime()
TimeBlockContracttimestamp of a TimeBlock
getCreateTime in interface TimeBlockContractpublic Long getWorkArea()
getWorkArea in interface CalendarBlockContractpublic Long getJobNumber()
getJobNumber in interface CalendarBlockContractpublic HrGroupKey getGroupKey()
getGroupKey in interface KeyedDatapublic String getGroupKeyCode()
KeyedDataeffectiveLocalDate of HrBusinessObject
getGroupKeyCode in interface KeyedDatapublic Long getTask()
getTask in interface CalendarBlockContractpublic String getEarnCode()
getEarnCode in interface CalendarBlockContractpublic String getConcreteBlockType()
getConcreteBlockType in interface CalendarBlockContractpublic String getConcreteBlockId()
getConcreteBlockId in interface CalendarBlockContractpublic String getDocumentId()
getDocumentId in interface CalendarBlockContractpublic String getObjectId()
getObjectId in interface org.kuali.rice.core.api.mo.common.GloballyUniquepublic Long getVersionNumber()
getVersionNumber in interface org.kuali.rice.core.api.mo.common.Versionedpublic org.joda.time.DateTime getLeaveDateTime()
getLeaveDateTime in interface TimeBlockContractpublic Boolean isClockedByMissedPunch()
isClockedByMissedPunch in interface TimeBlockContractpublic Boolean getClockedByMissedPunch()
public String getAssignmentValue()
getAssignmentValue in interface TimeBlockContractpublic String getMissedPunchDocStatus()
getMissedPunchDocStatus in interface TimeBlockContractpublic String getMissedPunchDocId()
getMissedPunchDocId in interface TimeBlockContractpublic String getClockAction()
getClockAction in interface TimeBlockContractpublic org.joda.time.DateTime getActionDateTime()
getActionDateTime in interface TimeBlockContractpublic boolean isMissedPunchClockIn()
isMissedPunchClockIn in interface TimeBlockContractpublic boolean isMissedPunchClockOut()
isMissedPunchClockOut in interface TimeBlockContractpublic BigDecimal getTotalMinutes()
TimeBlockContracttotal minutes of a TimeBlock
getTotalMinutes in interface TimeBlockContractpublic int compareTo(TimeBlockContract tb)
compareTo in interface Comparable<TimeBlockContract>Copyright © 2004–2015 The Kuali Foundation. All rights reserved.