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()
TimeBlockContract
hours of a TimeBlock
getHours
in interface CalendarBlockContract
getHours
in interface TimeBlockContract
public org.joda.time.DateTime getEndDateTime()
TimeBlockContract
endTimestamp wrapped in DateTime object of a TimeBlock
getEndDateTime
in interface CalendarBlockContract
getEndDateTime
in interface TimeBlockContract
public Boolean isClockLogCreated()
TimeBlockContract
clockLogCreated flag of a Timeblock
isClockLogCreated
in interface TimeBlockContract
public org.joda.time.DateTime getBeginDateTime()
TimeBlockContract
beginTimestamp wrapped in DateTime object of a TimeBlock
getBeginDateTime
in interface CalendarBlockContract
getBeginDateTime
in interface TimeBlockContract
public org.joda.time.LocalTime getEndTime()
TimeBlockContract
endTimestamp wrapped in Time object of a TimeBlock
getEndTime
in interface TimeBlockContract
public BigDecimal getAmount()
TimeBlockContract
amount of a TimeBlock
getAmount
in interface CalendarBlockContract
getAmount
in interface TimeBlockContract
public String getUserPrincipalId()
TimeBlockContract
userPrincipalId of a TimeBlock
getUserPrincipalId
in interface UserModified
getUserPrincipalId
in interface TimeBlockContract
public String getTkTimeBlockId()
TimeBlockContract
tkTimeBlockId of a TimeBlock
getTkTimeBlockId
in interface TimeBlockContract
public List<TimeHourDetail> getTimeHourDetails()
TimeBlockContract
timeHourDetails of a TimeBlock
getTimeHourDetails
in interface TimeBlockContract
public Boolean isPushBackward()
TimeBlockContract
A timeblock will be pushed back if the timeblock is still within the previous interval.
isPushBackward
in interface TimeBlockContract
public org.joda.time.DateTime getBeginTimeDisplay()
TimeBlockContract
Use 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 TimeBlockContract
public String getBeginTimeDisplayDateOnlyString()
TimeBlockContract
getBeginTimeDisplayDateOnlyString
in interface TimeBlockContract
public String getBeginTimeDisplayTimeOnlyString()
TimeBlockContract
getBeginTimeDisplayTimeOnlyString
in interface TimeBlockContract
public String getEndTimeDisplayDateOnlyString()
TimeBlockContract
getEndTimeDisplayDateOnlyString
in interface TimeBlockContract
public String getEndTimeDisplayTimeOnlyString()
TimeBlockContract
getEndTimeDisplayTimeOnlyString
in interface TimeBlockContract
public org.joda.time.DateTime getEndTimeDisplay()
TimeBlockContract
Use 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 TimeBlockContract
public String getClockLogBeginId()
TimeBlockContract
clockLogBeginId of a TimeBlock
getClockLogBeginId
in interface TimeBlockContract
public String getClockLogEndId()
TimeBlockContract
clockLogEndId of a TimeBlock
getClockLogEndId
in interface TimeBlockContract
public String getAssignmentKey()
TimeBlockContract
assignmentKey of a TimeBlock
getAssignmentKey
in interface TimeBlockContract
public String getAssignmentDescription()
TimeBlockContract
assignment description of a TimeBlock
getAssignmentDescription
in interface TimeBlockContract
public String getEarnCodeType()
TimeBlockContract
earnCodeType of a TimeBlock
getEarnCodeType
in interface TimeBlockContract
public String getPrincipalId()
TimeBlockContract
principalId of a TimeBlock
getPrincipalId
in interface CalendarBlockContract
getPrincipalId
in interface TimeBlockContract
public String getOvertimePref()
TimeBlockContract
overtimePref of a TimeBlock
getOvertimePref
in interface CalendarBlockContract
getOvertimePref
in interface TimeBlockContract
public String getActualBeginTimeString()
TimeBlockContract
It applies grace period rule to times of time block. This string is for GUI of Actual time inquiry
getActualBeginTimeString
in interface TimeBlockContract
public String getActualEndTimeString()
TimeBlockContract
It applies grace period rule to times of time block. This string is for GUI of Actual time inquiry
getActualEndTimeString
in interface TimeBlockContract
public boolean isLunchDeleted()
TimeBlockContract
lunchDeleted flag of a TimeBlock
isLunchDeleted
in interface CalendarBlockContract
isLunchDeleted
in interface TimeBlockContract
public String getHrCalendarBlockId()
TimeBlockContract
super.hrCalendarBlockId a TimeBlock
getHrCalendarBlockId
in interface CalendarBlockContract
getHrCalendarBlockId
in interface TimeBlockContract
public org.joda.time.LocalTime getBeginTime()
TimeBlockContract
beginTimestamp wrapped in Time object of a TimeBlock
getBeginTime
in interface TimeBlockContract
public org.joda.time.DateTime getCreateTime()
TimeBlockContract
timestamp of a TimeBlock
getCreateTime
in interface TimeBlockContract
public Long getWorkArea()
getWorkArea
in interface CalendarBlockContract
public Long getJobNumber()
getJobNumber
in interface CalendarBlockContract
public HrGroupKey getGroupKey()
getGroupKey
in interface KeyedData
public String getGroupKeyCode()
KeyedData
effectiveLocalDate of HrBusinessObject
getGroupKeyCode
in interface KeyedData
public Long getTask()
getTask
in interface CalendarBlockContract
public String getEarnCode()
getEarnCode
in interface CalendarBlockContract
public String getConcreteBlockType()
getConcreteBlockType
in interface CalendarBlockContract
public String getConcreteBlockId()
getConcreteBlockId
in interface CalendarBlockContract
public String getDocumentId()
getDocumentId
in interface CalendarBlockContract
public String getObjectId()
getObjectId
in interface org.kuali.rice.core.api.mo.common.GloballyUnique
public Long getVersionNumber()
getVersionNumber
in interface org.kuali.rice.core.api.mo.common.Versioned
public org.joda.time.DateTime getLeaveDateTime()
getLeaveDateTime
in interface TimeBlockContract
public Boolean isClockedByMissedPunch()
isClockedByMissedPunch
in interface TimeBlockContract
public Boolean getClockedByMissedPunch()
public String getAssignmentValue()
getAssignmentValue
in interface TimeBlockContract
public String getMissedPunchDocStatus()
getMissedPunchDocStatus
in interface TimeBlockContract
public String getMissedPunchDocId()
getMissedPunchDocId
in interface TimeBlockContract
public String getClockAction()
getClockAction
in interface TimeBlockContract
public org.joda.time.DateTime getActionDateTime()
getActionDateTime
in interface TimeBlockContract
public boolean isMissedPunchClockIn()
isMissedPunchClockIn
in interface TimeBlockContract
public boolean isMissedPunchClockOut()
isMissedPunchClockOut
in interface TimeBlockContract
public BigDecimal getTotalMinutes()
TimeBlockContract
total minutes of a TimeBlock
getTotalMinutes
in interface TimeBlockContract
public int compareTo(TimeBlockContract tb)
compareTo
in interface Comparable<TimeBlockContract>
Copyright © 2004–2014 The Kuali Foundation. All rights reserved.