public static final class TimeBlock.Builder extends Object implements Serializable, TimeBlockContract, org.kuali.rice.core.api.mo.ModelBuilder
TimeBlock
instances. Enforces the constraints of the TimeBlockContract
.Modifier and Type | Method and Description |
---|---|
TimeBlock |
build() |
int |
compareTo(TimeBlockContract tb) |
static TimeBlock.Builder |
create() |
static TimeBlock.Builder |
create(TimeBlockContract contract) |
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() |
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.Builder |
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.Builder> |
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
|
void |
setActionDateTime(org.joda.time.DateTime actionDateTime) |
void |
setActualBeginTimeString(String actualBeginTimeString) |
void |
setActualEndTimeString(String actualEndTimeString) |
void |
setAmount(BigDecimal amount) |
void |
setAssignmentDescription(String assignmentDescription) |
void |
setAssignmentKey(String assignmentKey) |
void |
setAssignmentValue(String assignmentValue) |
void |
setBeginDateTime(org.joda.time.DateTime beginDateTime) |
void |
setBeginTime(org.joda.time.LocalTime beginTime) |
void |
setBeginTimeDisplay(org.joda.time.DateTime beginTimeDisplay) |
void |
setBeginTimeDisplayDateOnlyString(String beginTimeDisplayDateOnlyString) |
void |
setBeginTimeDisplayTimeOnlyString(String beginTimeDisplayTimeOnlyString) |
void |
setClockAction(String clockAction) |
void |
setClockedByMissedPunch(Boolean clockedByMissedPunch) |
void |
setClockLogBeginId(String clockLogBeginId) |
void |
setClockLogCreated(Boolean clockLogCreated) |
void |
setClockLogEndId(String clockLogEndId) |
void |
setConcreteBlockId(String concreteBlockId) |
void |
setConcreteBlockType(String concreteBlockType) |
void |
setCreateTime(org.joda.time.DateTime createTime) |
void |
setDocumentId(String documentId) |
void |
setEarnCode(String earnCode) |
void |
setEarnCodeType(String earnCodeType) |
void |
setEndDateTime(org.joda.time.DateTime endDateTime) |
void |
setEndTime(org.joda.time.LocalTime endTime) |
void |
setEndTimeDisplay(org.joda.time.DateTime endTimeDisplay) |
void |
setEndTimeDisplayDateOnlyString(String endTimeDisplayDateOnlyString) |
void |
setEndTimeDisplayTimeOnlyString(String endTimeDisplayTimeOnlyString) |
void |
setGroupKey(HrGroupKey.Builder groupKey) |
void |
setGroupKeyCode(String groupKeyCode) |
void |
setHours(BigDecimal hours) |
void |
setHrCalendarBlockId(String hrCalendarBlockId) |
void |
setJobNumber(Long jobNumber) |
void |
setLeaveDateTime(org.joda.time.DateTime leaveDateTime) |
void |
setLunchDeleted(boolean lunchDeleted) |
void |
setMissedPunchClockIn(boolean missedPunchClockIn) |
void |
setMissedPunchClockOut(boolean missedPunchClockOut) |
void |
setMissedPunchDocId(String missedPunchDocId) |
void |
setMissedPunchDocStatus(String missedPunchDocStatus) |
void |
setObjectId(String objectId) |
void |
setOvertimePref(String overtimePref) |
void |
setPrincipalId(String principalId) |
void |
setPushBackward(Boolean pushBackward) |
void |
setTask(Long task) |
void |
setTimeHourDetails(List<TimeHourDetail.Builder> timeHourDetails) |
void |
setTkTimeBlockId(String tkTimeBlockId) |
void |
setTotalMinutes(BigDecimal totalMinutes) |
void |
setUserPrincipalId(String userPrincipalId) |
void |
setVersionNumber(Long versionNumber) |
void |
setWorkArea(Long workArea) |
public static TimeBlock.Builder create()
public static TimeBlock.Builder create(TimeBlockContract contract)
public TimeBlock build()
build
in interface org.kuali.rice.core.api.mo.ModelBuilder
public int compareTo(TimeBlockContract tb)
compareTo
in interface Comparable<TimeBlockContract>
public BigDecimal getHours()
TimeBlockContract
hours of a TimeBlock
getHours
in interface CalendarBlockContract
getHours
in interface TimeBlockContract
public String getGroupKeyCode()
KeyedData
effectiveLocalDate of HrBusinessObject
getGroupKeyCode
in interface KeyedData
public HrGroupKey.Builder getGroupKey()
getGroupKey
in interface KeyedData
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.Builder> 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 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 org.joda.time.DateTime getLeaveDateTime()
getLeaveDateTime
in interface TimeBlockContract
public org.joda.time.DateTime getActionDateTime()
getActionDateTime
in interface TimeBlockContract
public Boolean isClockedByMissedPunch()
isClockedByMissedPunch
in interface TimeBlockContract
public boolean isMissedPunchClockIn()
isMissedPunchClockIn
in interface TimeBlockContract
public boolean isMissedPunchClockOut()
isMissedPunchClockOut
in interface TimeBlockContract
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 Long getVersionNumber()
getVersionNumber
in interface org.kuali.rice.core.api.mo.common.Versioned
public BigDecimal getTotalMinutes()
TimeBlockContract
total minutes of a TimeBlock
getTotalMinutes
in interface TimeBlockContract
public void setTotalMinutes(BigDecimal totalMinutes)
public void setHours(BigDecimal hours)
public void setEndDateTime(org.joda.time.DateTime endDateTime)
public void setClockLogCreated(Boolean clockLogCreated)
public void setBeginDateTime(org.joda.time.DateTime beginDateTime)
public void setGroupKeyCode(String groupKeyCode)
public void setGroupKey(HrGroupKey.Builder groupKey)
public void setEndTime(org.joda.time.LocalTime endTime)
public void setAmount(BigDecimal amount)
public void setUserPrincipalId(String userPrincipalId)
public void setTkTimeBlockId(String tkTimeBlockId)
public void setTimeHourDetails(List<TimeHourDetail.Builder> timeHourDetails)
public void setPushBackward(Boolean pushBackward)
public void setBeginTimeDisplay(org.joda.time.DateTime beginTimeDisplay)
public void setBeginTimeDisplayDateOnlyString(String beginTimeDisplayDateOnlyString)
public void setBeginTimeDisplayTimeOnlyString(String beginTimeDisplayTimeOnlyString)
public void setEndTimeDisplayDateOnlyString(String endTimeDisplayDateOnlyString)
public void setEndTimeDisplayTimeOnlyString(String endTimeDisplayTimeOnlyString)
public void setEndTimeDisplay(org.joda.time.DateTime endTimeDisplay)
public void setClockLogBeginId(String clockLogBeginId)
public void setClockLogEndId(String clockLogEndId)
public void setAssignmentKey(String assignmentKey)
public void setAssignmentDescription(String assignmentDescription)
public void setEarnCodeType(String earnCodeType)
public void setPrincipalId(String principalId)
public void setOvertimePref(String overtimePref)
public void setActualBeginTimeString(String actualBeginTimeString)
public void setActualEndTimeString(String actualEndTimeString)
public void setLunchDeleted(boolean lunchDeleted)
public void setHrCalendarBlockId(String hrCalendarBlockId)
public void setBeginTime(org.joda.time.LocalTime beginTime)
public void setCreateTime(org.joda.time.DateTime createTime)
public void setWorkArea(Long workArea)
public void setJobNumber(Long jobNumber)
public void setEarnCode(String earnCode)
public void setConcreteBlockType(String concreteBlockType)
public void setConcreteBlockId(String concreteBlockId)
public void setDocumentId(String documentId)
public void setObjectId(String objectId)
public void setVersionNumber(Long versionNumber)
public void setLeaveDateTime(org.joda.time.DateTime leaveDateTime)
public void setClockedByMissedPunch(Boolean clockedByMissedPunch)
public void setAssignmentValue(String assignmentValue)
public void setMissedPunchDocStatus(String missedPunchDocStatus)
public void setMissedPunchDocId(String missedPunchDocId)
public void setMissedPunchClockIn(boolean missedPunchClockIn)
public void setMissedPunchClockOut(boolean missedPunchClockOut)
public void setClockAction(String clockAction)
public void setActionDateTime(org.joda.time.DateTime actionDateTime)
Copyright © 2004–2014 The Kuali Foundation. All rights reserved.