public class LeaveBlock extends CalendarBlock implements Assignable, LeaveBlockContract
Modifier and Type | Class and Description |
---|---|
static class |
LeaveBlock.Builder |
Modifier and Type | Field and Description |
---|---|
static String |
CACHE_NAME |
protected String |
earnCode |
protected Long |
jobNumber |
protected BigDecimal |
leaveAmount |
protected String |
lmLeaveBlockId |
protected Long |
task |
protected Long |
workArea |
amount, beginTimestamp, concreteBlockId, concreteBlockType, documentId, endTimestamp, hours, hrCalendarBlockId, lunchDeleted, overtimePref, principalId, timestamp
extension, versionNumber
ASSIGNABLE_TERM_NAME
Constructor and Description |
---|
LeaveBlock() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getAccrualCategory()
The AccrualCategory name associated with the LeaveBlock
|
AccrualCategory |
getAccrualCategoryObj() |
AccrualCategoryRule |
getAccrualCategoryRule() |
String |
getAccrualCategoryRuleId()
The AccrualCategoryRuleId associated with the LeaveBlock
|
Boolean |
getAccrualGenerated()
The accrualGenerated flag to indicate if the accrual is generated or not
|
String |
getAffectPay() |
String |
getAssignmentKey()
The assignment key associated with the LeaveBlock
|
List<Assignment> |
getAssignments() |
String |
getAssignmentTitle()
The assignment title associated with the LeaveBlock
|
Date |
getBeginDate() |
org.joda.time.DateTime |
getBeginDateTime()
The begin timestamp (DateTime) associated with the LeaveBlock
|
Timestamp |
getBeginTimestampVal() |
Long |
getBlockId()
TODO: What is this used for? Different from lmLeaveBlockId??
The blockId associated with the LeaveBlock
|
String |
getCalendarId()
The calendar id associated with the LeaveBlock
|
String |
getDescription()
The description associated with the LeaveBlock
|
String |
getDocumentStatus()
The document status associated with the LeaveBlock
|
String |
getEarnCode()
The EarnCode name associated with the LeaveBlock
|
String |
getEarnCodeDescription()
The description of the earn code associated with the LeaveBlock
|
org.joda.time.DateTime |
getEndDateTime()
The end timestamp (DateTime) associated with the LeaveBlock
|
Timestamp |
getEndTimestampVal() |
Long |
getJobNumber()
The job number associated with the LeaveBlock
|
BigDecimal |
getLeaveAmount()
The leave amount associated with the LeaveBlock
|
List<LeaveBlockHistory> |
getLeaveBlockHistories()
The list of LeaveBlockHistory objects associated with the LeaveBlock
|
String |
getLeaveBlockType()
The type of leave block associated with the LeaveBlock
|
LeaveCalendarDocumentHeader |
getLeaveCalendarDocumentHeader() |
Date |
getLeaveDate()
The leave date (Date) associated with the LeaveBlock
|
org.joda.time.LocalDate |
getLeaveLocalDate()
The leave date (LocalDate) associated with the LeaveBlock
|
String |
getLeaveRequestDocumentId()
The document id of the leave request associated with the LeaveBlock
|
String |
getLmLeaveBlockId()
The primary key of a LeaveBlock entry saved in a database
|
String |
getPlanningDescription()
TODO: Put a better comment
The planning description associated with the LeaveBlock
|
PrincipalHRAttributes |
getPrincipalHRAttributes() |
String |
getPrincipalIdModified() |
String |
getReason()
The reason associated with the LeaveBlock
|
String |
getRequestStatus()
The requestStatus associated with the LeaveBlock
|
String |
getRequestStatusString()
The value of requestStatus associated with the LeaveBlock
|
String |
getScheduleTimeOffId()
The scheduleTimeOffId associated with the LeaveBlock
|
Long |
getTask()
The task number associated with the LeaveBlock
|
String |
getTransactionalDocId()
TODO: Put a better comment
The transactional document id associated with the LeaveBlock
|
String |
getUserPrincipalId() |
Long |
getWorkArea()
The workArea number associated with the LeaveBlock
|
int |
hashCode() |
boolean |
isDeletable()
Indicates if the principal has a permission to delete the leave block
|
boolean |
isEditable()
Indicates if the principal has a permission to edit a leave block
|
boolean |
isSubmit()
TODO: Put a better comment
The submit flag of the LeaveBlock
|
void |
setAccrualCategory(String accrualCategory) |
void |
setAccrualGenerated(Boolean accrualGenerated) |
void |
setAffectPay(String affectPay) |
void |
setAssignmentKey(String assignmentDescription) |
void |
setAssignmentTitle(String assignmentTitle) |
void |
setBeginDate(Date beginDate) |
void |
setBeginDateTime(org.joda.time.DateTime beginDateTime) |
void |
setBlockId(Long blockId) |
void |
setCalendarId(String calendarId) |
void |
setDescription(String description) |
void |
setDocumentStatus(String documentStatus) |
void |
setEarnCode(String earnCode) |
void |
setEndDateTime(org.joda.time.DateTime endDateTime) |
void |
setJobNumber(Long jobNumber) |
void |
setLeaveAmount(BigDecimal leaveAmount) |
void |
setLeaveBlockHistories(List<LeaveBlockHistory> leaveBlockHistories) |
void |
setLeaveBlockType(String leaveBlockType) |
void |
setLeaveCalendarDocumentHeader(LeaveCalendarDocumentHeader leaveCalendarDocumentHeader) |
void |
setLeaveDate(Date leaveDate) |
void |
setLeaveLocalDate(org.joda.time.LocalDate leaveLocalDate) |
void |
setLeaveRequestDocumentId(String leaveRequestDocumentId) |
void |
setLmLeaveBlockId(String lmLeaveBlockId) |
void |
setPlanningDescription(String planningDescription) |
void |
setPrincipalHRAttributes(PrincipalHRAttributes principalHRAttributes) |
void |
setPrincipalIdModified(String principalIdModified) |
void |
setReason(String reason) |
void |
setRequestStatus(String requestStatus) |
void |
setScheduleTimeOffId(String scheduleTimeOffId) |
void |
setSubmit(boolean submit) |
void |
setTask(Long task) |
void |
setTransactionDocId(String documentHeaderId) |
void |
setUserPrincipalId(String userPrincipalId) |
void |
setWorkArea(Long workArea) |
getAmount, getBeginTimestamp, getConcreteBlockId, getConcreteBlockType, getDocumentId, getEndTimestamp, getHours, getLunchDeleted, getOvertimePref, getPrincipalId, getTimestamp, setAmount, setBeginTimestamp, setConcreteBlockId, setConcreteBlockType, setDocumentId, setEndTimestamp, setHours, setLunchDeleted, setOvertimePref, setPrincipalId, setTimestamp
getHrCalendarBlockId, setHrCalendarBlockId
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
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAmount, getBeginTimestamp, getConcreteBlockId, getConcreteBlockType, getDocumentId, getEndTimestamp, getHours, getHrCalendarBlockId, getLunchDeleted, getOvertimePref, getPrincipalId, getTimestamp, setAmount, setBeginTimestamp, setConcreteBlockId, setConcreteBlockType, setDocumentId, setEndTimestamp, setHours, setHrCalendarBlockId, setLunchDeleted, setOvertimePref, setPrincipalId, setTimestamp
public static final String CACHE_NAME
protected BigDecimal leaveAmount
protected String lmLeaveBlockId
public LeaveBlock()
public String getAccrualCategoryRuleId()
LeaveBlockContract
It gets AccrualCategoryRule based on the AccrualCategory and PrincipalHRAttributes.
getAccrualCategoryRuleId
in interface LeaveBlockContract
public String getAccrualCategory()
LeaveBlockContract
It gets AccrualCategory based on the principal id and leave local date.
getAccrualCategory
in interface LeaveBlockContract
public void setAccrualCategory(String accrualCategory)
public Boolean getAccrualGenerated()
LeaveBlockContract
accrualGenerated of a LeaveBlock
getAccrualGenerated
in interface LeaveBlockContract
public void setAccrualGenerated(Boolean accrualGenerated)
public boolean isSubmit()
LeaveBlockContract
submit of a LeaveBlock
isSubmit
in interface LeaveBlockContract
public void setSubmit(boolean submit)
public Long getBlockId()
LeaveBlockContract
blockId of a LeaveBlock
getBlockId
in interface LeaveBlockContract
public void setBlockId(Long blockId)
public String getDescription()
LeaveBlockContract
description of a LeaveBlock
getDescription
in interface LeaveBlockContract
public void setDescription(String description)
public Date getLeaveDate()
LeaveBlockContract
leaveDate of a LeaveBlock
getLeaveDate
in interface LeaveBlockContract
public void setLeaveDate(Date leaveDate)
public org.joda.time.LocalDate getLeaveLocalDate()
LeaveBlockContract
leaveDate of a LeaveBlock
getLeaveLocalDate
in interface LeaveBlockContract
public void setLeaveLocalDate(org.joda.time.LocalDate leaveLocalDate)
public String getScheduleTimeOffId()
LeaveBlockContract
scheduleTimeOffId of a LeaveBlock
getScheduleTimeOffId
in interface LeaveBlockContract
public void setScheduleTimeOffId(String scheduleTimeOffId)
public String getRequestStatus()
LeaveBlockContract
requestStatus of a LeaveBlock
getRequestStatus
in interface LeaveBlockContract
public void setRequestStatus(String requestStatus)
public String getRequestStatusString()
LeaveBlockContract
value of requestStatus of a LeaveBlock
getRequestStatusString
in interface LeaveBlockContract
public List<LeaveBlockHistory> getLeaveBlockHistories()
LeaveBlockContract
leaveBlockHistories of a LeaveBlock
getLeaveBlockHistories
in interface LeaveBlockContract
public void setLeaveBlockHistories(List<LeaveBlockHistory> leaveBlockHistories)
public String getReason()
LeaveBlockContract
reason of a LeaveBlock
getReason
in interface LeaveBlockContract
public List<Assignment> getAssignments()
getAssignments
in interface Assignable
public String getAssignmentTitle()
LeaveBlockContract
If the work area associated with the LeaveBlock is not null, it gets its description and its task. If the task is not null and not the default task, it gets the task description.
getAssignmentTitle
in interface LeaveBlockContract
public void setAssignmentTitle(String assignmentTitle)
public String getCalendarId()
LeaveBlockContract
calendarId of a LeaveBlock
getCalendarId
in interface LeaveBlockContract
public void setCalendarId(String calendarId)
public String getEarnCodeDescription()
LeaveBlockContract
earnCodeObj.getDescription() of a LeaveBlock
getEarnCodeDescription
in interface LeaveBlockContract
public String getLeaveBlockType()
LeaveBlockContract
leaveBlockType of a LeaveBlock
getLeaveBlockType
in interface LeaveBlockContract
public void setLeaveBlockType(String leaveBlockType)
public LeaveCalendarDocumentHeader getLeaveCalendarDocumentHeader()
public void setLeaveCalendarDocumentHeader(LeaveCalendarDocumentHeader leaveCalendarDocumentHeader)
public boolean isEditable()
LeaveBlockContract
isEditable
in interface LeaveBlockContract
public boolean isDeletable()
LeaveBlockContract
isDeletable
in interface LeaveBlockContract
public String getAssignmentKey()
LeaveBlockContract
The key is consisted of job number, work area number, and task number
getAssignmentKey
in interface LeaveBlockContract
public void setAssignmentKey(String assignmentDescription)
public String getDocumentStatus()
LeaveBlockContract
documentStatus of a LeaveBlock
getDocumentStatus
in interface LeaveBlockContract
public void setDocumentStatus(String documentStatus)
public String getLeaveRequestDocumentId()
LeaveBlockContract
leaveRequestDocumentId of a LeaveBlock
getLeaveRequestDocumentId
in interface LeaveBlockContract
public void setLeaveRequestDocumentId(String leaveRequestDocumentId)
public String getPlanningDescription()
LeaveBlockContract
planningDescription of a LeaveBlock
getPlanningDescription
in interface LeaveBlockContract
public void setPlanningDescription(String planningDescription)
public void setTransactionDocId(String documentHeaderId)
public String getTransactionalDocId()
LeaveBlockContract
transactionalDocId of a LeaveBlock
getTransactionalDocId
in interface LeaveBlockContract
public org.joda.time.DateTime getBeginDateTime()
LeaveBlockContract
beginTimestamp of a LeaveBlock
getBeginDateTime
in interface LeaveBlockContract
public void setBeginDateTime(org.joda.time.DateTime beginDateTime)
public Date getBeginDate()
public Timestamp getBeginTimestampVal()
public Timestamp getEndTimestampVal()
public void setBeginDate(Date beginDate)
public org.joda.time.DateTime getEndDateTime()
LeaveBlockContract
endTimestamp of a LeaveBlock
getEndDateTime
in interface LeaveBlockContract
public void setEndDateTime(org.joda.time.DateTime endDateTime)
public String getLmLeaveBlockId()
LeaveBlockContract
lmLeaveBlockId of a LeaveBlock
getLmLeaveBlockId
in interface LeaveBlockContract
public void setLmLeaveBlockId(String lmLeaveBlockId)
public String getPrincipalIdModified()
public void setPrincipalIdModified(String principalIdModified)
public BigDecimal getLeaveAmount()
LeaveBlockContract
leaveAmount of a LeaveBlock
getLeaveAmount
in interface LeaveBlockContract
public void setLeaveAmount(BigDecimal leaveAmount)
public Long getWorkArea()
LeaveBlockContract
workArea of a LeaveBlock
getWorkArea
in interface CalendarBlockContract
getWorkArea
in interface LeaveBlockContract
getWorkArea
in class CalendarBlock
public void setWorkArea(Long workArea)
setWorkArea
in interface CalendarBlockContract
setWorkArea
in class CalendarBlock
public Long getJobNumber()
LeaveBlockContract
jobNumber of a LeaveBlock
getJobNumber
in interface CalendarBlockContract
getJobNumber
in interface LeaveBlockContract
getJobNumber
in class CalendarBlock
public void setJobNumber(Long jobNumber)
setJobNumber
in interface CalendarBlockContract
setJobNumber
in class CalendarBlock
public Long getTask()
LeaveBlockContract
task of a LeaveBlock
getTask
in interface CalendarBlockContract
getTask
in interface LeaveBlockContract
getTask
in class CalendarBlock
public void setTask(Long task)
setTask
in interface CalendarBlockContract
setTask
in class CalendarBlock
public String getEarnCode()
LeaveBlockContract
earnCode of a LeaveBlock
getEarnCode
in interface CalendarBlockContract
getEarnCode
in interface LeaveBlockContract
getEarnCode
in class CalendarBlock
public void setEarnCode(String earnCode)
setEarnCode
in interface CalendarBlockContract
setEarnCode
in class CalendarBlock
public AccrualCategoryRule getAccrualCategoryRule()
public AccrualCategory getAccrualCategoryObj()
public PrincipalHRAttributes getPrincipalHRAttributes()
public void setPrincipalHRAttributes(PrincipalHRAttributes principalHRAttributes)
public String getUserPrincipalId()
public void setUserPrincipalId(String userPrincipalId)
setUserPrincipalId
in class CalendarBlock
public String getAffectPay()
public void setAffectPay(String affectPay)
Copyright © 2004–2014 The Kuali Foundation. All rights reserved.