|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.bo.BusinessObjectBase org.kuali.rice.krad.bo.PersistableBusinessObjectBase org.kuali.kpme.core.block.CalendarBlockBase org.kuali.kpme.core.block.CalendarBlock org.kuali.kpme.tklm.time.timeblock.TimeBlock
public class TimeBlock
Field Summary | |
---|---|
static String |
CACHE_NAME
|
protected BigDecimal |
leaveAmount
|
Fields inherited from class org.kuali.kpme.core.block.CalendarBlockBase |
---|
beginTimestamp, concreteBlockId, concreteBlockType, documentId, earnCode, endTimestamp, hrCalendarBlockId, jobNumber, lunchDeleted, principalId, task, timestamp, workArea |
Fields inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase |
---|
extension, versionNumber |
Constructor Summary | |
---|---|
|
TimeBlock()
|
protected |
TimeBlock(TimeBlock b)
Word on the street is that Object.clone() is a POS. |
Method Summary | |
---|---|
void |
addTimeHourDetail(TimeHourDetail timeHourDetail)
|
int |
compareTo(CalendarBlockBase tb)
|
int |
compareTo(Object o)
This is for distribute time block page to sort it by begin date/time |
TimeBlock |
copy()
|
void |
copy(TimeBlock b)
|
boolean |
equals(Object obj)
|
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 |
Date |
getBeginDate()
The beginTimestamp (Date) associated with the TimeBlock |
org.joda.time.DateTime |
getBeginDateTime()
The beginTimestamp (Datetime) associated with the TimeBlock |
Time |
getBeginTime()
The beginTimestamp (Time) associated with the TimeBlock |
org.joda.time.DateTime |
getBeginTimeDisplay()
Use this call for all GUI/Display related rendering of the BEGIN timestamp of the given time block. |
Date |
getBeginTimeDisplayDate()
Helper to call DateTime.toDate(). |
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 |
Timestamp |
getBeginTimestampVal()
|
String |
getClockLogBeginId()
The clock log begin id associated with the TimeBlock |
Boolean |
getClockLogCreated()
TODO: Make sure this comment is right The flag that indicates if a clock log has been created or not. |
String |
getClockLogEndId()
The clock log end id associated with the TimeBlock |
String |
getConcreteBlockId()
|
String |
getConcreteBlockType()
|
Boolean |
getDeleteable()
Indicates if this user has a permission to delete this time block |
String |
getEarnCodeType()
The earn code type associated with the TimeBlock |
Boolean |
getEditable()
Indicates if the user has permission to edit/delete the TimeBlock |
org.kuali.rice.kim.api.identity.Person |
getEmployeeObj()
|
Date |
getEndDate()
The endTimestamp (Date) associated with the TimeBlock |
org.joda.time.DateTime |
getEndDateTime()
The endTimestamp (DateTime) associated with the TimeBlock |
Time |
getEndTime()
The endTimestamp (Time) associated with the TimeBlock |
org.joda.time.DateTime |
getEndTimeDisplay()
Use this call for all GUI/Display related rendering of the END timestamp of the given time block. |
Date |
getEndTimeDisplayDate()
Helper to call DateTime.toDate(). |
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 |
Date |
getEndTimestamp()
The endTimestamp associated with the TimeBlock |
Timestamp |
getEndTimestampVal()
|
BigDecimal |
getHours()
The hours associated with the TimeBlock |
String |
getHrCalendarBlockId()
The id of the CalendarBlock object associated with the TimeBlock |
Boolean |
getOvertimeEditable()
Indicates if overtime earn code can be edited |
String |
getOvertimePref()
TODO: Put a better comment The overtimePref associated with the TimeBlock |
String |
getPrincipalId()
The principalId associated with the TimeBlock |
String |
getPrincipalIdModified()
|
Boolean |
getPushBackward()
The flag that indicates if the TimeBlock will be pushed back or not |
Boolean |
getTimeBlockEditable()
Indicates if this user has a permission to edit this time block |
List<TimeBlockHistory> |
getTimeBlockHistories()
The list of TimeBlockHistory objects associated with the TimeBlock |
List<TimeHourDetail> |
getTimeHourDetails()
The list of TimeHourDetail objects associated with the TimeBlock |
TimesheetDocumentHeader |
getTimesheetDocumentHeader()
The TimesheetDocumentHeader object associated with the TimeBlock |
Timestamp |
getTimestamp()
The timestamp associated with the TimeBlock |
String |
getTkTimeBlockId()
The primary key of a TimeBlock entry saved in a database |
org.kuali.rice.kim.api.identity.Person |
getUser()
The Person object associated with the TimeBlock |
String |
getUserPrincipalId()
The userPrincipalId associated with the TimeBlock |
int |
hashCode()
|
boolean |
isLunchDeleted()
TODO: Make sure this comment is right The flag that indicates if lunch hour is deleted |
void |
removeTimeHourDetail(TimeHourDetail timeHourDetail)
|
void |
setAmount(BigDecimal amount)
|
void |
setAssignmentKey(String assignmentDescription)
|
void |
setBeginDate(Date beginDate)
|
void |
setBeginDateTime(org.joda.time.DateTime beginDateTime)
|
void |
setBeginTime(Time beginTime)
|
void |
setBeginTimeDisplay(org.joda.time.DateTime beginTimeDisplay)
Set this value with a DateTime that is in the current users Timezone. |
void |
setClockLogBeginId(String clockLogBeginId)
|
void |
setClockLogCreated(Boolean clockLogCreated)
|
void |
setClockLogEndId(String clockLogEndId)
|
void |
setConcreteBlockId(String concreteBlockId)
|
void |
setConcreteBlockType(String ojbConcreteClass)
|
void |
setEarnCodeType(String earnCodeType)
|
void |
setEmployeeObj(org.kuali.rice.kim.api.identity.Person employeeObj)
|
void |
setEndDate(Date endDate)
|
void |
setEndDateTime(org.joda.time.DateTime endDateTime)
|
void |
setEndTime(Time endTime)
|
void |
setEndTimeDisplay(org.joda.time.DateTime endTimeDisplay)
Set this value with a DateTime that is in the current users Timezone. |
void |
setEndTimestamp(Date endTimestamp)
|
void |
setHours(BigDecimal hours)
|
void |
setHrCalendarBlockId(String hrCalendarBlockId)
|
void |
setLunchDeleted(boolean lunchDeleted)
|
void |
setOvertimePref(String overtimePref)
|
void |
setPrincipalId(String principalId)
|
void |
setPrincipalIdModified(String principalIdModified)
|
void |
setPushBackward(Boolean pushBackward)
|
void |
setTimeBlockHistories(List<TimeBlockHistory> timeBlockHistories)
|
void |
setTimeHourDetails(List<TimeHourDetail> timeHourDetails)
|
void |
setTimesheetDocumentHeader(TimesheetDocumentHeader timesheetDocumentHeader)
|
void |
setTimestamp(Timestamp timestamp)
|
void |
setTkTimeBlockId(String tkTimeBlockId)
|
void |
setUser(org.kuali.rice.kim.api.identity.Person user)
|
void |
setUserPrincipalId(String userPrincipalId)
|
String |
toCSVString()
|
Methods inherited from class org.kuali.kpme.core.block.CalendarBlock |
---|
getBeginTimestamp, getDocumentId, getEarnCode, getJobNumber, getLunchDeleted, getTask, getWorkArea, setBeginTimestamp, setDocumentId, setEarnCode, setJobNumber, setTask, setWorkArea |
Methods inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase |
---|
afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, buildListOfDeletionAwareLists, getExtension, getObjectId, getPersistenceService, getPersistenceStructureService, getVersionNumber, isNewCollectionRecord, linkEditableUserFields, postLoad, postPersist, postRemove, postUpdate, prePersist, preRemove, preUpdate, refresh, refreshNonUpdateableReferences, refreshReferenceObject, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber |
Methods inherited from class org.kuali.rice.krad.bo.BusinessObjectBase |
---|
toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.kuali.kpme.core.api.block.CalendarBlockContract |
---|
getBeginTimestamp, getDocumentId, getEarnCode, getJobNumber, getLunchDeleted, getTask, getWorkArea, setBeginTimestamp, setDocumentId, setEarnCode, setJobNumber, setTask, setWorkArea |
Methods inherited from interface org.kuali.rice.core.api.mo.ModelObjectBasic |
---|
toString |
Field Detail |
---|
public static final String CACHE_NAME
protected BigDecimal leaveAmount
Constructor Detail |
---|
public TimeBlock()
protected TimeBlock(TimeBlock b)
b
- The TimeBlock to copy values from when creating this instance.Method Detail |
---|
public Date getBeginDate()
TimeBlockContract
beginTimestamp wrapped in Date object of a TimeBlock
getBeginDate
in interface TimeBlockContract
public Timestamp getBeginTimestampVal()
public Timestamp getEndTimestampVal()
public void setBeginDate(Date beginDate)
public Time getBeginTime()
TimeBlockContract
beginTimestamp wrapped in Time object of a TimeBlock
getBeginTime
in interface TimeBlockContract
public void setBeginTime(Time beginTime)
public org.joda.time.DateTime getBeginDateTime()
TimeBlockContract
beginTimestamp wrapped in DateTime object of a TimeBlock
getBeginDateTime
in interface TimeBlockContract
public void setBeginDateTime(org.joda.time.DateTime beginDateTime)
public Date getEndTimestamp()
TimeBlockContract
endTimestamp of a TimeBlock
getEndTimestamp
in interface CalendarBlockContract
getEndTimestamp
in interface TimeBlockContract
getEndTimestamp
in class CalendarBlock
public void setEndTimestamp(Date endTimestamp)
setEndTimestamp
in interface CalendarBlockContract
setEndTimestamp
in class CalendarBlock
public Date getEndDate()
TimeBlockContract
endTimestamp wrapped in Date object of a TimeBlock
getEndDate
in interface TimeBlockContract
public void setEndDate(Date endDate)
public Time getEndTime()
TimeBlockContract
endTimestamp wrapped in Time object of a TimeBlock
getEndTime
in interface TimeBlockContract
public void setEndTime(Time endTime)
public org.joda.time.DateTime getEndDateTime()
TimeBlockContract
endTimestamp wrapped in DateTime object of a TimeBlock
getEndDateTime
in interface TimeBlockContract
public void setEndDateTime(org.joda.time.DateTime endDateTime)
public Boolean getClockLogCreated()
TimeBlockContract
clockLogCreated flag of a ShiftDifferentialRule
getClockLogCreated
in interface TimeBlockContract
public void setClockLogCreated(Boolean clockLogCreated)
public BigDecimal getHours()
TimeBlockContract
hours of a TimeBlock
getHours
in interface CalendarBlockContract
getHours
in interface TimeBlockContract
getHours
in class CalendarBlock
public void setHours(BigDecimal hours)
setHours
in interface CalendarBlockContract
setHours
in class CalendarBlock
public BigDecimal getAmount()
TimeBlockContract
amount of a TimeBlock
getAmount
in interface CalendarBlockContract
getAmount
in interface TimeBlockContract
getAmount
in class CalendarBlock
public void setAmount(BigDecimal amount)
setAmount
in interface CalendarBlockContract
setAmount
in class CalendarBlock
public String getUserPrincipalId()
TimeBlockContract
userPrincipalId of a TimeBlock
getUserPrincipalId
in interface TimeBlockContract
public void setUserPrincipalId(String userPrincipalId)
setUserPrincipalId
in class CalendarBlock
public Timestamp getTimestamp()
TimeBlockContract
timestamp of a TimeBlock
getTimestamp
in interface CalendarBlockContract
getTimestamp
in interface TimeBlockContract
getTimestamp
in class CalendarBlock
public void setTimestamp(Timestamp timestamp)
setTimestamp
in interface CalendarBlockContract
setTimestamp
in class CalendarBlock
public String toCSVString()
public String getTkTimeBlockId()
TimeBlockContract
tkTimeBlockId of a TimeBlock
getTkTimeBlockId
in interface TimeBlockContract
public void setTkTimeBlockId(String tkTimeBlockId)
public List<TimeHourDetail> getTimeHourDetails()
TimeBlockContract
timeHourDetails of a TimeBlock
getTimeHourDetails
in interface TimeBlockContract
public void addTimeHourDetail(TimeHourDetail timeHourDetail)
public void removeTimeHourDetail(TimeHourDetail timeHourDetail)
public void setTimeHourDetails(List<TimeHourDetail> timeHourDetails)
public Boolean getPushBackward()
TimeBlockContract
A timeblock will be pushed back if the timeblock is still within the previous interval.
getPushBackward
in interface TimeBlockContract
public void setPushBackward(Boolean pushBackward)
public org.joda.time.DateTime getBeginTimeDisplay()
getBeginTimeDisplay
in interface TimeBlockContract
public Date getBeginTimeDisplayDate()
getBeginTimeDisplayDate
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 void setBeginTimeDisplay(org.joda.time.DateTime beginTimeDisplay)
beginTimeDisplay
- public org.joda.time.DateTime getEndTimeDisplay()
getEndTimeDisplay
in interface TimeBlockContract
public Date getEndTimeDisplayDate()
getEndTimeDisplayDate
in interface TimeBlockContract
public void setEndTimeDisplay(org.joda.time.DateTime endTimeDisplay)
endTimeDisplay
- public TimesheetDocumentHeader getTimesheetDocumentHeader()
TimeBlockContract
timesheetDocumentHeader of a TimeBlock
getTimesheetDocumentHeader
in interface TimeBlockContract
public void setTimesheetDocumentHeader(TimesheetDocumentHeader timesheetDocumentHeader)
public List<TimeBlockHistory> getTimeBlockHistories()
TimeBlockContract
timeBlockHistories of a TimeBlock
getTimeBlockHistories
in interface TimeBlockContract
public void setTimeBlockHistories(List<TimeBlockHistory> timeBlockHistories)
public String getClockLogBeginId()
TimeBlockContract
clockLogBeginId of a TimeBlock
getClockLogBeginId
in interface TimeBlockContract
public void setClockLogBeginId(String clockLogBeginId)
public String getClockLogEndId()
TimeBlockContract
clockLogEndId of a TimeBlock
getClockLogEndId
in interface TimeBlockContract
public void setClockLogEndId(String clockLogEndId)
public String getAssignmentKey()
TimeBlockContract
assignmentKey of a TimeBlock
getAssignmentKey
in interface TimeBlockContract
public void setAssignmentKey(String assignmentDescription)
public String getAssignmentDescription()
TimeBlockContract
assignment description of a TimeBlock
getAssignmentDescription
in interface TimeBlockContract
public TimeBlock copy()
public void copy(TimeBlock b)
public String getEarnCodeType()
TimeBlockContract
earnCodeType of a TimeBlock
getEarnCodeType
in interface TimeBlockContract
public void setEarnCodeType(String earnCodeType)
public int compareTo(Object o)
compareTo
in interface Comparable
Comparable.compareTo(java.lang.Object)
public int compareTo(CalendarBlockBase tb)
public Boolean getEditable()
TimeBlockContract
getEditable
in interface TimeBlockContract
public String getPrincipalId()
TimeBlockContract
principalId of a TimeBlock
getPrincipalId
in interface CalendarBlockContract
getPrincipalId
in interface TimeBlockContract
getPrincipalId
in class CalendarBlock
public void setPrincipalId(String principalId)
setPrincipalId
in interface CalendarBlockContract
setPrincipalId
in class CalendarBlock
public String getOvertimePref()
TimeBlockContract
overtimePref of a TimeBlock
getOvertimePref
in interface CalendarBlockContract
getOvertimePref
in interface TimeBlockContract
getOvertimePref
in class CalendarBlock
public void setOvertimePref(String overtimePref)
setOvertimePref
in interface CalendarBlockContract
setOvertimePref
in class CalendarBlock
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 getDeleteable()
TimeBlockContract
getDeleteable
in interface TimeBlockContract
public Boolean getOvertimeEditable()
TimeBlockContract
getOvertimeEditable
in interface TimeBlockContract
public Boolean getTimeBlockEditable()
TimeBlockContract
getTimeBlockEditable
in interface TimeBlockContract
public boolean isLunchDeleted()
TimeBlockContract
lunchDeleted flag of a TimeBlock
isLunchDeleted
in interface TimeBlockContract
public void setLunchDeleted(boolean lunchDeleted)
setLunchDeleted
in interface CalendarBlockContract
setLunchDeleted
in class CalendarBlock
public org.kuali.rice.kim.api.identity.Person getUser()
TimeBlockContract
user of a TimeBlock
getUser
in interface TimeBlockContract
public void setUser(org.kuali.rice.kim.api.identity.Person user)
public org.kuali.rice.kim.api.identity.Person getEmployeeObj()
public void setEmployeeObj(org.kuali.rice.kim.api.identity.Person employeeObj)
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String getPrincipalIdModified()
public void setPrincipalIdModified(String principalIdModified)
public String getHrCalendarBlockId()
TimeBlockContract
super.hrCalendarBlockId a TimeBlock
getHrCalendarBlockId
in interface CalendarBlockContract
getHrCalendarBlockId
in interface TimeBlockContract
getHrCalendarBlockId
in class CalendarBlockBase
public void setHrCalendarBlockId(String hrCalendarBlockId)
setHrCalendarBlockId
in interface CalendarBlockContract
setHrCalendarBlockId
in class CalendarBlockBase
public String getConcreteBlockId()
getConcreteBlockId
in interface CalendarBlockContract
getConcreteBlockId
in class CalendarBlock
public void setConcreteBlockId(String concreteBlockId)
setConcreteBlockId
in interface CalendarBlockContract
setConcreteBlockId
in class CalendarBlock
public String getConcreteBlockType()
getConcreteBlockType
in interface CalendarBlockContract
getConcreteBlockType
in class CalendarBlock
public void setConcreteBlockType(String ojbConcreteClass)
setConcreteBlockType
in interface CalendarBlockContract
setConcreteBlockType
in class CalendarBlock
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |