|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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()
TimeBlockContractbeginTimestamp wrapped in Date object of a TimeBlock
getBeginDate in interface TimeBlockContractpublic Timestamp getBeginTimestampVal()
public Timestamp getEndTimestampVal()
public void setBeginDate(Date beginDate)
public Time getBeginTime()
TimeBlockContractbeginTimestamp wrapped in Time object of a TimeBlock
getBeginTime in interface TimeBlockContractpublic void setBeginTime(Time beginTime)
public org.joda.time.DateTime getBeginDateTime()
TimeBlockContractbeginTimestamp wrapped in DateTime object of a TimeBlock
getBeginDateTime in interface TimeBlockContractpublic void setBeginDateTime(org.joda.time.DateTime beginDateTime)
public Date getEndTimestamp()
TimeBlockContractendTimestamp of a TimeBlock
getEndTimestamp in interface CalendarBlockContractgetEndTimestamp in interface TimeBlockContractgetEndTimestamp in class CalendarBlockpublic void setEndTimestamp(Date endTimestamp)
setEndTimestamp in interface CalendarBlockContractsetEndTimestamp in class CalendarBlockpublic Date getEndDate()
TimeBlockContractendTimestamp wrapped in Date object of a TimeBlock
getEndDate in interface TimeBlockContractpublic void setEndDate(Date endDate)
public Time getEndTime()
TimeBlockContractendTimestamp wrapped in Time object of a TimeBlock
getEndTime in interface TimeBlockContractpublic void setEndTime(Time endTime)
public org.joda.time.DateTime getEndDateTime()
TimeBlockContractendTimestamp wrapped in DateTime object of a TimeBlock
getEndDateTime in interface TimeBlockContractpublic void setEndDateTime(org.joda.time.DateTime endDateTime)
public Boolean getClockLogCreated()
TimeBlockContractclockLogCreated flag of a ShiftDifferentialRule
getClockLogCreated in interface TimeBlockContractpublic void setClockLogCreated(Boolean clockLogCreated)
public BigDecimal getHours()
TimeBlockContracthours of a TimeBlock
getHours in interface CalendarBlockContractgetHours in interface TimeBlockContractgetHours in class CalendarBlockpublic void setHours(BigDecimal hours)
setHours in interface CalendarBlockContractsetHours in class CalendarBlockpublic BigDecimal getAmount()
TimeBlockContractamount of a TimeBlock
getAmount in interface CalendarBlockContractgetAmount in interface TimeBlockContractgetAmount in class CalendarBlockpublic void setAmount(BigDecimal amount)
setAmount in interface CalendarBlockContractsetAmount in class CalendarBlockpublic String getUserPrincipalId()
TimeBlockContractuserPrincipalId of a TimeBlock
getUserPrincipalId in interface TimeBlockContractpublic void setUserPrincipalId(String userPrincipalId)
setUserPrincipalId in class CalendarBlockpublic Timestamp getTimestamp()
TimeBlockContracttimestamp of a TimeBlock
getTimestamp in interface CalendarBlockContractgetTimestamp in interface TimeBlockContractgetTimestamp in class CalendarBlockpublic void setTimestamp(Timestamp timestamp)
setTimestamp in interface CalendarBlockContractsetTimestamp in class CalendarBlockpublic String toCSVString()
public String getTkTimeBlockId()
TimeBlockContracttkTimeBlockId of a TimeBlock
getTkTimeBlockId in interface TimeBlockContractpublic void setTkTimeBlockId(String tkTimeBlockId)
public List<TimeHourDetail> getTimeHourDetails()
TimeBlockContracttimeHourDetails of a TimeBlock
getTimeHourDetails in interface TimeBlockContractpublic void addTimeHourDetail(TimeHourDetail timeHourDetail)
public void removeTimeHourDetail(TimeHourDetail timeHourDetail)
public void setTimeHourDetails(List<TimeHourDetail> timeHourDetails)
public Boolean getPushBackward()
TimeBlockContractA timeblock will be pushed back if the timeblock is still within the previous interval.
getPushBackward in interface TimeBlockContractpublic void setPushBackward(Boolean pushBackward)
public org.joda.time.DateTime getBeginTimeDisplay()
getBeginTimeDisplay in interface TimeBlockContractpublic Date getBeginTimeDisplayDate()
getBeginTimeDisplayDate 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 void setBeginTimeDisplay(org.joda.time.DateTime beginTimeDisplay)
beginTimeDisplay - public org.joda.time.DateTime getEndTimeDisplay()
getEndTimeDisplay in interface TimeBlockContractpublic Date getEndTimeDisplayDate()
getEndTimeDisplayDate in interface TimeBlockContractpublic void setEndTimeDisplay(org.joda.time.DateTime endTimeDisplay)
endTimeDisplay - public TimesheetDocumentHeader getTimesheetDocumentHeader()
TimeBlockContracttimesheetDocumentHeader of a TimeBlock
getTimesheetDocumentHeader in interface TimeBlockContractpublic void setTimesheetDocumentHeader(TimesheetDocumentHeader timesheetDocumentHeader)
public List<TimeBlockHistory> getTimeBlockHistories()
TimeBlockContracttimeBlockHistories of a TimeBlock
getTimeBlockHistories in interface TimeBlockContractpublic void setTimeBlockHistories(List<TimeBlockHistory> timeBlockHistories)
public String getClockLogBeginId()
TimeBlockContractclockLogBeginId of a TimeBlock
getClockLogBeginId in interface TimeBlockContractpublic void setClockLogBeginId(String clockLogBeginId)
public String getClockLogEndId()
TimeBlockContractclockLogEndId of a TimeBlock
getClockLogEndId in interface TimeBlockContractpublic void setClockLogEndId(String clockLogEndId)
public String getAssignmentKey()
TimeBlockContractassignmentKey of a TimeBlock
getAssignmentKey in interface TimeBlockContractpublic void setAssignmentKey(String assignmentDescription)
public String getAssignmentDescription()
TimeBlockContractassignment description of a TimeBlock
getAssignmentDescription in interface TimeBlockContractpublic TimeBlock copy()
public void copy(TimeBlock b)
public String getEarnCodeType()
TimeBlockContractearnCodeType of a TimeBlock
getEarnCodeType in interface TimeBlockContractpublic void setEarnCodeType(String earnCodeType)
public int compareTo(Object o)
compareTo in interface ComparableComparable.compareTo(java.lang.Object)public int compareTo(CalendarBlockBase tb)
public Boolean getEditable()
TimeBlockContract
getEditable in interface TimeBlockContractpublic String getPrincipalId()
TimeBlockContractprincipalId of a TimeBlock
getPrincipalId in interface CalendarBlockContractgetPrincipalId in interface TimeBlockContractgetPrincipalId in class CalendarBlockpublic void setPrincipalId(String principalId)
setPrincipalId in interface CalendarBlockContractsetPrincipalId in class CalendarBlockpublic String getOvertimePref()
TimeBlockContractovertimePref of a TimeBlock
getOvertimePref in interface CalendarBlockContractgetOvertimePref in interface TimeBlockContractgetOvertimePref in class CalendarBlockpublic void setOvertimePref(String overtimePref)
setOvertimePref in interface CalendarBlockContractsetOvertimePref in class CalendarBlockpublic 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 getDeleteable()
TimeBlockContract
getDeleteable in interface TimeBlockContractpublic Boolean getOvertimeEditable()
TimeBlockContract
getOvertimeEditable in interface TimeBlockContractpublic Boolean getTimeBlockEditable()
TimeBlockContract
getTimeBlockEditable in interface TimeBlockContractpublic boolean isLunchDeleted()
TimeBlockContractlunchDeleted flag of a TimeBlock
isLunchDeleted in interface TimeBlockContractpublic void setLunchDeleted(boolean lunchDeleted)
setLunchDeleted in interface CalendarBlockContractsetLunchDeleted in class CalendarBlockpublic org.kuali.rice.kim.api.identity.Person getUser()
TimeBlockContractuser of a TimeBlock
getUser in interface TimeBlockContractpublic 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 Objectpublic int hashCode()
hashCode in class Objectpublic String getPrincipalIdModified()
public void setPrincipalIdModified(String principalIdModified)
public String getHrCalendarBlockId()
TimeBlockContractsuper.hrCalendarBlockId a TimeBlock
getHrCalendarBlockId in interface CalendarBlockContractgetHrCalendarBlockId in interface TimeBlockContractgetHrCalendarBlockId in class CalendarBlockBasepublic void setHrCalendarBlockId(String hrCalendarBlockId)
setHrCalendarBlockId in interface CalendarBlockContractsetHrCalendarBlockId in class CalendarBlockBasepublic String getConcreteBlockId()
getConcreteBlockId in interface CalendarBlockContractgetConcreteBlockId in class CalendarBlockpublic void setConcreteBlockId(String concreteBlockId)
setConcreteBlockId in interface CalendarBlockContractsetConcreteBlockId in class CalendarBlockpublic String getConcreteBlockType()
getConcreteBlockType in interface CalendarBlockContractgetConcreteBlockType in class CalendarBlockpublic void setConcreteBlockType(String ojbConcreteClass)
setConcreteBlockType in interface CalendarBlockContractsetConcreteBlockType in class CalendarBlock
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||