org.kuali.kpme.tklm.time.timeblock
Class TimeBlock

java.lang.Object
  extended by org.kuali.rice.krad.bo.BusinessObjectBase
      extended by org.kuali.rice.krad.bo.PersistableBusinessObjectBase
          extended by org.kuali.kpme.core.block.CalendarBlockBase
              extended by org.kuali.kpme.core.block.CalendarBlock
                  extended by org.kuali.kpme.tklm.time.timeblock.TimeBlock
All Implemented Interfaces:
Serializable, Comparable, org.apache.ojb.broker.PersistenceBrokerAware, CalendarBlockContract, TimeBlockContract, org.kuali.rice.core.api.mo.common.GloballyUnique, org.kuali.rice.core.api.mo.common.Versioned, org.kuali.rice.core.api.mo.ModelObjectBasic, org.kuali.rice.krad.bo.BusinessObject, org.kuali.rice.krad.bo.PersistableBusinessObject
Direct Known Subclasses:
TimeBlockHistory

public class TimeBlock
extends CalendarBlock
implements Comparable, TimeBlockContract

See Also:
Serialized Form

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

CACHE_NAME

public static final String CACHE_NAME
See Also:
Constant Field Values

leaveAmount

protected BigDecimal leaveAmount
Constructor Detail

TimeBlock

public TimeBlock()

TimeBlock

protected TimeBlock(TimeBlock b)
Word on the street is that Object.clone() is a POS. We only need some basics for comparison, so we'll implement a simple copy constructor instead.

TODO: Check whether or not it matters if the History is copied, this operation needs to be as inexpensive as possible.

Parameters:
b - The TimeBlock to copy values from when creating this instance.
Method Detail

getBeginDate

public Date getBeginDate()
Description copied from interface: TimeBlockContract
The beginTimestamp (Date) associated with the TimeBlock

beginTimestamp wrapped in Date object of a TimeBlock

Specified by:
getBeginDate in interface TimeBlockContract
Returns:
new Date(beginTimestamp.getTime())

getBeginTimestampVal

public Timestamp getBeginTimestampVal()

getEndTimestampVal

public Timestamp getEndTimestampVal()

setBeginDate

public void setBeginDate(Date beginDate)

getBeginTime

public Time getBeginTime()
Description copied from interface: TimeBlockContract
The beginTimestamp (Time) associated with the TimeBlock

beginTimestamp wrapped in Time object of a TimeBlock

Specified by:
getBeginTime in interface TimeBlockContract
Returns:
new Time(beginTimestamp.getTime())

setBeginTime

public void setBeginTime(Time beginTime)

getBeginDateTime

public org.joda.time.DateTime getBeginDateTime()
Description copied from interface: TimeBlockContract
The beginTimestamp (Datetime) associated with the TimeBlock

beginTimestamp wrapped in DateTime object of a TimeBlock

Specified by:
getBeginDateTime in interface TimeBlockContract
Returns:
new DateTime(beginTimestamp)

setBeginDateTime

public void setBeginDateTime(org.joda.time.DateTime beginDateTime)

getEndTimestamp

public Date getEndTimestamp()
Description copied from interface: TimeBlockContract
The endTimestamp associated with the TimeBlock

endTimestamp of a TimeBlock

Specified by:
getEndTimestamp in interface CalendarBlockContract
Specified by:
getEndTimestamp in interface TimeBlockContract
Overrides:
getEndTimestamp in class CalendarBlock
Returns:
endTimestamp for TimeBlock

setEndTimestamp

public void setEndTimestamp(Date endTimestamp)
Specified by:
setEndTimestamp in interface CalendarBlockContract
Overrides:
setEndTimestamp in class CalendarBlock

getEndDate

public Date getEndDate()
Description copied from interface: TimeBlockContract
The endTimestamp (Date) associated with the TimeBlock

endTimestamp wrapped in Date object of a TimeBlock

Specified by:
getEndDate in interface TimeBlockContract
Returns:
new Date(endTimestamp.getTime())

setEndDate

public void setEndDate(Date endDate)

getEndTime

public Time getEndTime()
Description copied from interface: TimeBlockContract
The endTimestamp (Time) associated with the TimeBlock

endTimestamp wrapped in Time object of a TimeBlock

Specified by:
getEndTime in interface TimeBlockContract
Returns:
new Time(endTimestamp.getTime())

setEndTime

public void setEndTime(Time endTime)

getEndDateTime

public org.joda.time.DateTime getEndDateTime()
Description copied from interface: TimeBlockContract
The endTimestamp (DateTime) associated with the TimeBlock

endTimestamp wrapped in DateTime object of a TimeBlock

Specified by:
getEndDateTime in interface TimeBlockContract
Returns:
new DateTime(endTimestamp)

setEndDateTime

public void setEndDateTime(org.joda.time.DateTime endDateTime)

getClockLogCreated

public Boolean getClockLogCreated()
Description copied from interface: TimeBlockContract
TODO: Make sure this comment is right The flag that indicates if a clock log has been created or not.

clockLogCreated flag of a ShiftDifferentialRule

Specified by:
getClockLogCreated in interface TimeBlockContract
Returns:
Y if created, N if not

setClockLogCreated

public void setClockLogCreated(Boolean clockLogCreated)

getHours

public BigDecimal getHours()
Description copied from interface: TimeBlockContract
The hours associated with the TimeBlock

hours of a TimeBlock

Specified by:
getHours in interface CalendarBlockContract
Specified by:
getHours in interface TimeBlockContract
Overrides:
getHours in class CalendarBlock
Returns:
hours for TimeBlock

setHours

public void setHours(BigDecimal hours)
Specified by:
setHours in interface CalendarBlockContract
Overrides:
setHours in class CalendarBlock

getAmount

public BigDecimal getAmount()
Description copied from interface: TimeBlockContract
The amount associated with the TimeBlock

amount of a TimeBlock

Specified by:
getAmount in interface CalendarBlockContract
Specified by:
getAmount in interface TimeBlockContract
Overrides:
getAmount in class CalendarBlock
Returns:
amount for TimeBlock

setAmount

public void setAmount(BigDecimal amount)
Specified by:
setAmount in interface CalendarBlockContract
Overrides:
setAmount in class CalendarBlock

getUserPrincipalId

public String getUserPrincipalId()
Description copied from interface: TimeBlockContract
The userPrincipalId associated with the TimeBlock

userPrincipalId of a TimeBlock

Specified by:
getUserPrincipalId in interface TimeBlockContract
Returns:
userPrincipalId for TimeBlock

setUserPrincipalId

public void setUserPrincipalId(String userPrincipalId)
Overrides:
setUserPrincipalId in class CalendarBlock

getTimestamp

public Timestamp getTimestamp()
Description copied from interface: TimeBlockContract
The timestamp associated with the TimeBlock

timestamp of a TimeBlock

Specified by:
getTimestamp in interface CalendarBlockContract
Specified by:
getTimestamp in interface TimeBlockContract
Overrides:
getTimestamp in class CalendarBlock
Returns:
timestamp for TimeBlock

setTimestamp

public void setTimestamp(Timestamp timestamp)
Specified by:
setTimestamp in interface CalendarBlockContract
Overrides:
setTimestamp in class CalendarBlock

toCSVString

public String toCSVString()

getTkTimeBlockId

public String getTkTimeBlockId()
Description copied from interface: TimeBlockContract
The primary key of a TimeBlock entry saved in a database

tkTimeBlockId of a TimeBlock

Specified by:
getTkTimeBlockId in interface TimeBlockContract
Returns:
tkTimeBlockId for TimeBlock

setTkTimeBlockId

public void setTkTimeBlockId(String tkTimeBlockId)

getTimeHourDetails

public List<TimeHourDetail> getTimeHourDetails()
Description copied from interface: TimeBlockContract
The list of TimeHourDetail objects associated with the TimeBlock

timeHourDetails of a TimeBlock

Specified by:
getTimeHourDetails in interface TimeBlockContract
Returns:
timeHourDetails for TimeBlock

addTimeHourDetail

public void addTimeHourDetail(TimeHourDetail timeHourDetail)

removeTimeHourDetail

public void removeTimeHourDetail(TimeHourDetail timeHourDetail)

setTimeHourDetails

public void setTimeHourDetails(List<TimeHourDetail> timeHourDetails)

getPushBackward

public Boolean getPushBackward()
Description copied from interface: TimeBlockContract
The flag that indicates if the TimeBlock will be pushed back or not

A timeblock will be pushed back if the timeblock is still within the previous interval.

Specified by:
getPushBackward in interface TimeBlockContract
Returns:
Y if pushed back, N if not

setPushBackward

public void setPushBackward(Boolean pushBackward)

getBeginTimeDisplay

public org.joda.time.DateTime getBeginTimeDisplay()
Use this call for all GUI/Display related rendering of the BEGIN timestamp of the given time block. Timeblocks require pre-processing before there will be a non-null return value here.

Specified by:
getBeginTimeDisplay in interface TimeBlockContract
Returns:
The Timeblock Begin time to display, with the Users Timezone taken into account and applied to this DateTime object.

getBeginTimeDisplayDate

public Date getBeginTimeDisplayDate()
Helper to call DateTime.toDate().

Specified by:
getBeginTimeDisplayDate in interface TimeBlockContract
Returns:
a date representing the getBeginTimeDisplay() DateTime.

getBeginTimeDisplayDateOnlyString

public String getBeginTimeDisplayDateOnlyString()
Description copied from interface: TimeBlockContract
The date portion of the Timeblock begin time associated with the TimeBlock

Specified by:
getBeginTimeDisplayDateOnlyString in interface TimeBlockContract
Returns:
a string representing the getBeginTimeDisplay() in MM/dd/yyyy format

getBeginTimeDisplayTimeOnlyString

public String getBeginTimeDisplayTimeOnlyString()
Description copied from interface: TimeBlockContract
The time portion of the Timeblock begin time associated with the TimeBlock

Specified by:
getBeginTimeDisplayTimeOnlyString in interface TimeBlockContract
Returns:
a string representing getBeginTimeDisplay() in hh:mm aa format

getEndTimeDisplayDateOnlyString

public String getEndTimeDisplayDateOnlyString()
Description copied from interface: TimeBlockContract
The date portion of the Timeblock end time associated with the TimeBlock

Specified by:
getEndTimeDisplayDateOnlyString in interface TimeBlockContract
Returns:
a string representing getEndTimeDisplay() in MM/dd/yyyy format

getEndTimeDisplayTimeOnlyString

public String getEndTimeDisplayTimeOnlyString()
Description copied from interface: TimeBlockContract
The time portion of the Timeblock end time associated with the TimeBlock

Specified by:
getEndTimeDisplayTimeOnlyString in interface TimeBlockContract
Returns:
a string representing the getEndTimeDisplay() in hh:mm aa format

setBeginTimeDisplay

public void setBeginTimeDisplay(org.joda.time.DateTime beginTimeDisplay)
Set this value with a DateTime that is in the current users Timezone. This should happen as a pre processing step for display purposes. Do not use these values for server-side computation.

Parameters:
beginTimeDisplay -

getEndTimeDisplay

public org.joda.time.DateTime getEndTimeDisplay()
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.

Specified by:
getEndTimeDisplay in interface TimeBlockContract
Returns:
The Timeblock end time to display, with the Users Timezone taken into account and applied to this DateTime object.

getEndTimeDisplayDate

public Date getEndTimeDisplayDate()
Helper to call DateTime.toDate().

Specified by:
getEndTimeDisplayDate in interface TimeBlockContract
Returns:
a date representing the getEndTimeDisplay() DateTime.

setEndTimeDisplay

public void setEndTimeDisplay(org.joda.time.DateTime endTimeDisplay)
Set this value with a DateTime that is in the current users Timezone. This should happen as a pre processing step for display purposes. Do not use these values for server-side computation.

Parameters:
endTimeDisplay -

getTimesheetDocumentHeader

public TimesheetDocumentHeader getTimesheetDocumentHeader()
Description copied from interface: TimeBlockContract
The TimesheetDocumentHeader object associated with the TimeBlock

timesheetDocumentHeader of a TimeBlock

Specified by:
getTimesheetDocumentHeader in interface TimeBlockContract
Returns:
timesheetDocumentHeader for TimeBlock

setTimesheetDocumentHeader

public void setTimesheetDocumentHeader(TimesheetDocumentHeader timesheetDocumentHeader)

getTimeBlockHistories

public List<TimeBlockHistory> getTimeBlockHistories()
Description copied from interface: TimeBlockContract
The list of TimeBlockHistory objects associated with the TimeBlock

timeBlockHistories of a TimeBlock

Specified by:
getTimeBlockHistories in interface TimeBlockContract
Returns:
timeBlockHistories for TimeBlock

setTimeBlockHistories

public void setTimeBlockHistories(List<TimeBlockHistory> timeBlockHistories)

getClockLogBeginId

public String getClockLogBeginId()
Description copied from interface: TimeBlockContract
The clock log begin id associated with the TimeBlock

clockLogBeginId of a TimeBlock

Specified by:
getClockLogBeginId in interface TimeBlockContract
Returns:
clockLogBeginId for TimeBlock

setClockLogBeginId

public void setClockLogBeginId(String clockLogBeginId)

getClockLogEndId

public String getClockLogEndId()
Description copied from interface: TimeBlockContract
The clock log end id associated with the TimeBlock

clockLogEndId of a TimeBlock

Specified by:
getClockLogEndId in interface TimeBlockContract
Returns:
clockLogEndId for TimeBlock

setClockLogEndId

public void setClockLogEndId(String clockLogEndId)

getAssignmentKey

public String getAssignmentKey()
Description copied from interface: TimeBlockContract
The assignment key associated with the TimeBlock

assignmentKey of a TimeBlock

Specified by:
getAssignmentKey in interface TimeBlockContract
Returns:
assignmentKey for TimeBlock

setAssignmentKey

public void setAssignmentKey(String assignmentDescription)

getAssignmentDescription

public String getAssignmentDescription()
Description copied from interface: TimeBlockContract
The assignment description associated with the TimeBlock

assignment description of a TimeBlock

Specified by:
getAssignmentDescription in interface TimeBlockContract
Returns:
assignment description for TimeBlock

copy

public TimeBlock copy()
Returns:
A new copy of this TimeBlock.

copy

public void copy(TimeBlock b)

getEarnCodeType

public String getEarnCodeType()
Description copied from interface: TimeBlockContract
The earn code type associated with the TimeBlock

earnCodeType of a TimeBlock

Specified by:
getEarnCodeType in interface TimeBlockContract
Returns:
earnCodeType for TimeBlock

setEarnCodeType

public void setEarnCodeType(String earnCodeType)

compareTo

public int compareTo(Object o)
This is for distribute time block page to sort it by begin date/time

Specified by:
compareTo in interface Comparable
See Also:
Comparable.compareTo(java.lang.Object)

compareTo

public int compareTo(CalendarBlockBase tb)

getEditable

public Boolean getEditable()
Description copied from interface: TimeBlockContract
Indicates if the user has permission to edit/delete the TimeBlock

Specified by:
getEditable in interface TimeBlockContract
Returns:
Y if user has a permission to edit/delete this time block, N if not

getPrincipalId

public String getPrincipalId()
Description copied from interface: TimeBlockContract
The principalId associated with the TimeBlock

principalId of a TimeBlock

Specified by:
getPrincipalId in interface CalendarBlockContract
Specified by:
getPrincipalId in interface TimeBlockContract
Overrides:
getPrincipalId in class CalendarBlock
Returns:
principalId for TimeBlock

setPrincipalId

public void setPrincipalId(String principalId)
Specified by:
setPrincipalId in interface CalendarBlockContract
Overrides:
setPrincipalId in class CalendarBlock

getOvertimePref

public String getOvertimePref()
Description copied from interface: TimeBlockContract
TODO: Put a better comment The overtimePref associated with the TimeBlock

overtimePref of a TimeBlock

Specified by:
getOvertimePref in interface CalendarBlockContract
Specified by:
getOvertimePref in interface TimeBlockContract
Overrides:
getOvertimePref in class CalendarBlock
Returns:
overtimePref for TimeBlock

setOvertimePref

public void setOvertimePref(String overtimePref)
Specified by:
setOvertimePref in interface CalendarBlockContract
Overrides:
setOvertimePref in class CalendarBlock

getActualBeginTimeString

public String getActualBeginTimeString()
Description copied from interface: TimeBlockContract
The actual begin time string associated with the TimeBlock

It applies grace period rule to times of time block. This string is for GUI of Actual time inquiry

Specified by:
getActualBeginTimeString in interface TimeBlockContract
Returns:
actual begin time string for TimeBlock

getActualEndTimeString

public String getActualEndTimeString()
Description copied from interface: TimeBlockContract
The actual end time string associated with the TimeBlock

It applies grace period rule to times of time block. This string is for GUI of Actual time inquiry

Specified by:
getActualEndTimeString in interface TimeBlockContract
Returns:
actual end time string for TimeBlock

getDeleteable

public Boolean getDeleteable()
Description copied from interface: TimeBlockContract
Indicates if this user has a permission to delete this time block

Specified by:
getDeleteable in interface TimeBlockContract
Returns:
Y if user has a permission to delete this time block, N if not

getOvertimeEditable

public Boolean getOvertimeEditable()
Description copied from interface: TimeBlockContract
Indicates if overtime earn code can be edited

Specified by:
getOvertimeEditable in interface TimeBlockContract
Returns:
Y if overtime earn code can be edited, N if not

getTimeBlockEditable

public Boolean getTimeBlockEditable()
Description copied from interface: TimeBlockContract
Indicates if this user has a permission to edit this time block

Specified by:
getTimeBlockEditable in interface TimeBlockContract
Returns:
Y if user has a permission to edit this time block, N if not

isLunchDeleted

public boolean isLunchDeleted()
Description copied from interface: TimeBlockContract
TODO: Make sure this comment is right The flag that indicates if lunch hour is deleted

lunchDeleted flag of a TimeBlock

Specified by:
isLunchDeleted in interface TimeBlockContract
Returns:
Y if deleted, N if not

setLunchDeleted

public void setLunchDeleted(boolean lunchDeleted)
Specified by:
setLunchDeleted in interface CalendarBlockContract
Overrides:
setLunchDeleted in class CalendarBlock

getUser

public org.kuali.rice.kim.api.identity.Person getUser()
Description copied from interface: TimeBlockContract
The Person object associated with the TimeBlock

user of a TimeBlock

Specified by:
getUser in interface TimeBlockContract
Returns:
user for TimeBlock

setUser

public void setUser(org.kuali.rice.kim.api.identity.Person user)

getEmployeeObj

public org.kuali.rice.kim.api.identity.Person getEmployeeObj()

setEmployeeObj

public void setEmployeeObj(org.kuali.rice.kim.api.identity.Person employeeObj)

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getPrincipalIdModified

public String getPrincipalIdModified()

setPrincipalIdModified

public void setPrincipalIdModified(String principalIdModified)

getHrCalendarBlockId

public String getHrCalendarBlockId()
Description copied from interface: TimeBlockContract
The id of the CalendarBlock object associated with the TimeBlock

super.hrCalendarBlockId a TimeBlock

Specified by:
getHrCalendarBlockId in interface CalendarBlockContract
Specified by:
getHrCalendarBlockId in interface TimeBlockContract
Overrides:
getHrCalendarBlockId in class CalendarBlockBase
Returns:
super.hrCalendarBlockId for TimeBlock

setHrCalendarBlockId

public void setHrCalendarBlockId(String hrCalendarBlockId)
Specified by:
setHrCalendarBlockId in interface CalendarBlockContract
Overrides:
setHrCalendarBlockId in class CalendarBlockBase

getConcreteBlockId

public String getConcreteBlockId()
Specified by:
getConcreteBlockId in interface CalendarBlockContract
Overrides:
getConcreteBlockId in class CalendarBlock

setConcreteBlockId

public void setConcreteBlockId(String concreteBlockId)
Specified by:
setConcreteBlockId in interface CalendarBlockContract
Overrides:
setConcreteBlockId in class CalendarBlock

getConcreteBlockType

public String getConcreteBlockType()
Specified by:
getConcreteBlockType in interface CalendarBlockContract
Overrides:
getConcreteBlockType in class CalendarBlock

setConcreteBlockType

public void setConcreteBlockType(String ojbConcreteClass)
Specified by:
setConcreteBlockType in interface CalendarBlockContract
Overrides:
setConcreteBlockType in class CalendarBlock


Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.