public class LeaveBlockBo extends CalendarBlock implements Assignable, LeaveBlockContract
Modifier and Type | Class and Description |
---|---|
static class |
LeaveBlockBo.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 |
groupKey, groupKeyCode
amount, beginTimestamp, concreteBlockId, concreteBlockType, documentId, endTimestamp, hours, hrCalendarBlockId, lunchDeleted, overtimePref, principalId, timestamp
extension, newCollectionRecord, objectId, versionNumber
_persistence_cacheKey, _persistence_fetchGroup, _persistence_href, _persistence_listener, _persistence_primaryKey, _persistence_relationshipInfo, _persistence_session, _persistence_shouldRefreshFetchGroup
ASSIGNABLE_TERM_NAME
Constructor and Description |
---|
LeaveBlockBo() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static LeaveBlockBo |
from(LeaveBlock im) |
String |
getAccrualCategory()
The AccrualCategory name associated with the LeaveBlock
|
AccrualCategory |
getAccrualCategoryObj() |
AccrualCategoryRule |
getAccrualCategoryRule()
The AccrualCategoryRule associated with the LeaveBlock
|
String |
getAccrualCategoryRuleId()
The AccrualCategoryRuleId associated with the LeaveBlock
|
Boolean |
getAccrualGenerated() |
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
|
org.joda.time.DateTime |
getCreateTime() |
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() |
HrGroupKey |
getGroupKey() |
Long |
getJobNumber()
The job number associated with the LeaveBlock
|
BigDecimal |
getLeaveAmount()
The leave amount associated with the LeaveBlock
|
List<LeaveBlockHistory> |
getLeaveBlockHistories() |
String |
getLeaveBlockType()
The type of leave block associated with the LeaveBlock
|
LeaveCalendarDocumentHeader |
getLeaveCalendarDocumentHeader() |
Date |
getLeaveDate() |
org.joda.time.DateTime |
getLeaveDateTime()
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()
The userPrincipalId of when this HrBusinessObject was last created/updated
|
Long |
getWorkArea()
The workArea number associated with the LeaveBlock
|
int |
hashCode() |
Boolean |
isAccrualGenerated()
The accrualGenerated flag to indicate if the accrual is generated or not
|
boolean |
isDeletable() |
boolean |
isEditable() |
boolean |
isSubmit()
TODO: Put a better comment
The submit flag of the LeaveBlock
|
void |
setAccrualCategory(String accrualCategory) |
void |
setAccrualCategoryObj(AccrualCategory accrualCategoryObj) |
void |
setAccrualCategoryRule(AccrualCategoryRule accrualCategoryRule) |
void |
setAccrualGenerated(Boolean accrualGenerated) |
void |
setAffectPay(String affectPay) |
void |
setAssignmentKey(String assignmentDescription) |
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) |
static LeaveBlock |
to(LeaveBlockBo bo) |
getAmount, getBeginTimestamp, getConcreteBlockId, getConcreteBlockType, getDocumentId, getEndTimestamp, getGroupKeyCode, getHours, getOvertimePref, getPrincipalId, getTimestamp, isLunchDeleted, setAmount, setBeginTimestamp, setConcreteBlockId, setConcreteBlockType, setDocumentId, setEndTimestamp, setGroupKey, setGroupKeyCode, setHours, setLunchDeleted, setOvertimePref, setPrincipalId, setTimestamp
getHrCalendarBlockId, setHrCalendarBlockId
_persistence_get_objectId, _persistence_get_versionNumber, _persistence_get, _persistence_new, _persistence_post_clone, _persistence_set_objectId, _persistence_set_versionNumber, _persistence_set, afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, buildListOfDeletionAwareLists, getExtension, getLegacyDataAdapter, getObjectId, getVersionNumber, isNewCollectionRecord, linkEditableUserFields, postLoad, postPersist, postRemove, postUpdate, prePersist, preRemove, preUpdate, refresh, refreshNonUpdateableReferences, refreshReferenceObject, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber
_persistence_checkFetched, _persistence_checkFetchedForSet, _persistence_getCacheKey, _persistence_getFetchGroup, _persistence_getHref, _persistence_getId, _persistence_getPropertyChangeListener, _persistence_getRelationships, _persistence_getSession, _persistence_isAttributeFetched, _persistence_propertyChange, _persistence_resetFetchGroup, _persistence_setCacheKey, _persistence_setFetchGroup, _persistence_setHref, _persistence_setId, _persistence_setPropertyChangeListener, _persistence_setRelationships, _persistence_setSession, _persistence_setShouldRefreshFetchGroup, _persistence_shallow_clone, _persistence_shouldRefreshFetchGroup, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAmount, getConcreteBlockId, getConcreteBlockType, getDocumentId, getHours, getHrCalendarBlockId, getOvertimePref, getPrincipalId, isLunchDeleted
getGroupKeyCode
public static final String CACHE_NAME
protected BigDecimal leaveAmount
protected String lmLeaveBlockId
public LeaveBlockBo()
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 isAccrualGenerated()
LeaveBlockContract
accrualGenerated of a LeaveBlock
isAccrualGenerated
in interface LeaveBlockContract
public Boolean getAccrualGenerated()
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()
public org.joda.time.DateTime getLeaveDateTime()
LeaveBlockContract
leaveDate of a LeaveBlock
getLeaveDateTime
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()
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 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()
public boolean isDeletable()
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 CalendarBlockContract
getBeginDateTime
in interface LeaveBlockContract
getBeginDateTime
in class CalendarBlock
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 CalendarBlockContract
getEndDateTime
in interface LeaveBlockContract
getEndDateTime
in class CalendarBlock
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 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 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 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 class CalendarBlock
public AccrualCategoryRule getAccrualCategoryRule()
LeaveBlockContract
accrualCategroyRule of a LeaveBlock
getAccrualCategoryRule
in interface LeaveBlockContract
public AccrualCategory getAccrualCategoryObj()
getAccrualCategoryObj
in interface LeaveBlockContract
public org.joda.time.DateTime getCreateTime()
getCreateTime
in interface LeaveBlockContract
public PrincipalHRAttributes getPrincipalHRAttributes()
public void setPrincipalHRAttributes(PrincipalHRAttributes principalHRAttributes)
public String getUserPrincipalId()
UserModified
userPrincipalId of HrBusinessObject
getUserPrincipalId
in interface UserModified
public void setUserPrincipalId(String userPrincipalId)
setUserPrincipalId
in class CalendarBlock
public String getAffectPay()
getAffectPay
in interface LeaveBlockContract
public void setAffectPay(String affectPay)
public void setAccrualCategoryRule(AccrualCategoryRule accrualCategoryRule)
public void setAccrualCategoryObj(AccrualCategory accrualCategoryObj)
public HrGroupKey getGroupKey()
getGroupKey
in interface KeyedData
getGroupKey
in class CalendarBlock
public static LeaveBlockBo from(LeaveBlock im)
public static LeaveBlock to(LeaveBlockBo bo)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.