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, timestampextension, versionNumberASSIGNABLE_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, setTimestampgetHrCalendarBlockId, setHrCalendarBlockIdafterDelete, 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, setVersionNumberclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAmount, getBeginTimestamp, getConcreteBlockId, getConcreteBlockType, getDocumentId, getEndTimestamp, getHours, getHrCalendarBlockId, getLunchDeleted, getOvertimePref, getPrincipalId, getTimestamp, setAmount, setBeginTimestamp, setConcreteBlockId, setConcreteBlockType, setDocumentId, setEndTimestamp, setHours, setHrCalendarBlockId, setLunchDeleted, setOvertimePref, setPrincipalId, setTimestamppublic static final String CACHE_NAME
protected BigDecimal leaveAmount
protected String lmLeaveBlockId
public LeaveBlock()
public String getAccrualCategoryRuleId()
LeaveBlockContractIt gets AccrualCategoryRule based on the AccrualCategory and PrincipalHRAttributes.
getAccrualCategoryRuleId in interface LeaveBlockContractpublic String getAccrualCategory()
LeaveBlockContractIt gets AccrualCategory based on the principal id and leave local date.
getAccrualCategory in interface LeaveBlockContractpublic void setAccrualCategory(String accrualCategory)
public Boolean getAccrualGenerated()
LeaveBlockContractaccrualGenerated of a LeaveBlock
getAccrualGenerated in interface LeaveBlockContractpublic void setAccrualGenerated(Boolean accrualGenerated)
public boolean isSubmit()
LeaveBlockContractsubmit of a LeaveBlock
isSubmit in interface LeaveBlockContractpublic void setSubmit(boolean submit)
public Long getBlockId()
LeaveBlockContractblockId of a LeaveBlock
getBlockId in interface LeaveBlockContractpublic void setBlockId(Long blockId)
public String getDescription()
LeaveBlockContractdescription of a LeaveBlock
getDescription in interface LeaveBlockContractpublic void setDescription(String description)
public Date getLeaveDate()
LeaveBlockContractleaveDate of a LeaveBlock
getLeaveDate in interface LeaveBlockContractpublic void setLeaveDate(Date leaveDate)
public org.joda.time.LocalDate getLeaveLocalDate()
LeaveBlockContractleaveDate of a LeaveBlock
getLeaveLocalDate in interface LeaveBlockContractpublic void setLeaveLocalDate(org.joda.time.LocalDate leaveLocalDate)
public String getScheduleTimeOffId()
LeaveBlockContractscheduleTimeOffId of a LeaveBlock
getScheduleTimeOffId in interface LeaveBlockContractpublic void setScheduleTimeOffId(String scheduleTimeOffId)
public String getRequestStatus()
LeaveBlockContractrequestStatus of a LeaveBlock
getRequestStatus in interface LeaveBlockContractpublic void setRequestStatus(String requestStatus)
public String getRequestStatusString()
LeaveBlockContractvalue of requestStatus of a LeaveBlock
getRequestStatusString in interface LeaveBlockContractpublic List<LeaveBlockHistory> getLeaveBlockHistories()
LeaveBlockContractleaveBlockHistories of a LeaveBlock
getLeaveBlockHistories in interface LeaveBlockContractpublic void setLeaveBlockHistories(List<LeaveBlockHistory> leaveBlockHistories)
public String getReason()
LeaveBlockContractreason of a LeaveBlock
getReason in interface LeaveBlockContractpublic List<Assignment> getAssignments()
getAssignments in interface Assignablepublic String getAssignmentTitle()
LeaveBlockContractIf 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 LeaveBlockContractpublic void setAssignmentTitle(String assignmentTitle)
public String getCalendarId()
LeaveBlockContractcalendarId of a LeaveBlock
getCalendarId in interface LeaveBlockContractpublic void setCalendarId(String calendarId)
public String getEarnCodeDescription()
LeaveBlockContractearnCodeObj.getDescription() of a LeaveBlock
getEarnCodeDescription in interface LeaveBlockContractpublic String getLeaveBlockType()
LeaveBlockContractleaveBlockType of a LeaveBlock
getLeaveBlockType in interface LeaveBlockContractpublic void setLeaveBlockType(String leaveBlockType)
public LeaveCalendarDocumentHeader getLeaveCalendarDocumentHeader()
public void setLeaveCalendarDocumentHeader(LeaveCalendarDocumentHeader leaveCalendarDocumentHeader)
public boolean isEditable()
LeaveBlockContract
isEditable in interface LeaveBlockContractpublic boolean isDeletable()
LeaveBlockContract
isDeletable in interface LeaveBlockContractpublic String getAssignmentKey()
LeaveBlockContractThe key is consisted of job number, work area number, and task number
getAssignmentKey in interface LeaveBlockContractpublic void setAssignmentKey(String assignmentDescription)
public String getDocumentStatus()
LeaveBlockContractdocumentStatus of a LeaveBlock
getDocumentStatus in interface LeaveBlockContractpublic void setDocumentStatus(String documentStatus)
public String getLeaveRequestDocumentId()
LeaveBlockContractleaveRequestDocumentId of a LeaveBlock
getLeaveRequestDocumentId in interface LeaveBlockContractpublic void setLeaveRequestDocumentId(String leaveRequestDocumentId)
public String getPlanningDescription()
LeaveBlockContractplanningDescription of a LeaveBlock
getPlanningDescription in interface LeaveBlockContractpublic void setPlanningDescription(String planningDescription)
public void setTransactionDocId(String documentHeaderId)
public String getTransactionalDocId()
LeaveBlockContracttransactionalDocId of a LeaveBlock
getTransactionalDocId in interface LeaveBlockContractpublic org.joda.time.DateTime getBeginDateTime()
LeaveBlockContractbeginTimestamp of a LeaveBlock
getBeginDateTime in interface LeaveBlockContractpublic 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()
LeaveBlockContractendTimestamp of a LeaveBlock
getEndDateTime in interface LeaveBlockContractpublic void setEndDateTime(org.joda.time.DateTime endDateTime)
public String getLmLeaveBlockId()
LeaveBlockContractlmLeaveBlockId of a LeaveBlock
getLmLeaveBlockId in interface LeaveBlockContractpublic void setLmLeaveBlockId(String lmLeaveBlockId)
public String getPrincipalIdModified()
public void setPrincipalIdModified(String principalIdModified)
public BigDecimal getLeaveAmount()
LeaveBlockContractleaveAmount of a LeaveBlock
getLeaveAmount in interface LeaveBlockContractpublic void setLeaveAmount(BigDecimal leaveAmount)
public Long getWorkArea()
LeaveBlockContractworkArea of a LeaveBlock
getWorkArea in interface CalendarBlockContractgetWorkArea in interface LeaveBlockContractgetWorkArea in class CalendarBlockpublic void setWorkArea(Long workArea)
setWorkArea in interface CalendarBlockContractsetWorkArea in class CalendarBlockpublic Long getJobNumber()
LeaveBlockContractjobNumber of a LeaveBlock
getJobNumber in interface CalendarBlockContractgetJobNumber in interface LeaveBlockContractgetJobNumber in class CalendarBlockpublic void setJobNumber(Long jobNumber)
setJobNumber in interface CalendarBlockContractsetJobNumber in class CalendarBlockpublic Long getTask()
LeaveBlockContracttask of a LeaveBlock
getTask in interface CalendarBlockContractgetTask in interface LeaveBlockContractgetTask in class CalendarBlockpublic void setTask(Long task)
setTask in interface CalendarBlockContractsetTask in class CalendarBlockpublic String getEarnCode()
LeaveBlockContractearnCode of a LeaveBlock
getEarnCode in interface CalendarBlockContractgetEarnCode in interface LeaveBlockContractgetEarnCode in class CalendarBlockpublic void setEarnCode(String earnCode)
setEarnCode in interface CalendarBlockContractsetEarnCode in class CalendarBlockpublic AccrualCategoryRule getAccrualCategoryRule()
public AccrualCategory getAccrualCategoryObj()
public PrincipalHRAttributes getPrincipalHRAttributes()
public void setPrincipalHRAttributes(PrincipalHRAttributes principalHRAttributes)
public String getUserPrincipalId()
public void setUserPrincipalId(String userPrincipalId)
setUserPrincipalId in class CalendarBlockpublic String getAffectPay()
public void setAffectPay(String affectPay)
Copyright © 2004–2014 The Kuali Foundation. All rights reserved.