public class LeaveBlockRenderer extends Object implements LeaveBlockRendererContract
| Constructor and Description |
|---|
LeaveBlockRenderer(LeaveBlock leaveBlock) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAssignmentClass()
The assignment class associated with the LeaveBlockRenderer
|
String |
getAssignmentTitle()
The assignment title of the LeaveBlock object associated with the LeaveBlockRenderer
|
String |
getDescription()
The description of the LeaveBlock object associated with the LeaveBlockRenderer
|
String |
getDocumentId()
The document id of the LeaveBlock object associated with the LeaveBlockRenderer
|
String |
getEarnCode()
The EarnCode name of the LeaveBlock object associated with the LeaveBlockRenderer
|
BigDecimal |
getHours()
The leave amount of the LeaveBlock object associated with the LeaveBlockRenderer
|
LeaveBlock |
getLeaveBlock()
The LeaveBlock object associated with the LeaveBlockRenderer
|
String |
getLeaveBlockDetails()
The details of the LeaveBlock object associated with the LeaveBlockRenderer
|
String |
getLeaveBlockId()
The leave block id of the LeaveBlock object associated with the LeaveBlockRenderer
|
String |
getRequestStatusClass()
The request status string of the LeaveBlock object associated with the LeaveBlockRenderer
|
String |
getTimeRange()
The time range of the LeaveBlock object associated with the LeaveBlockRenderer
|
boolean |
isDeletable()
The deletable flag of the LeaveBlock object associated with the LeaveBlockRenderer
|
boolean |
isEditable()
The editable flag of the LeaveBlock object associated with the LeaveBlockRenderer
|
void |
setAssignmentClass(String assignmentClass) |
public LeaveBlockRenderer(LeaveBlock leaveBlock)
public LeaveBlock getLeaveBlock()
LeaveBlockRendererContractleaveBlock of a LeaveBlockRenderer
getLeaveBlock in interface LeaveBlockRendererContractpublic BigDecimal getHours()
LeaveBlockRendererContractleaveBlock.getLeaveAmount() of a LeaveBlockRenderer
getHours in interface LeaveBlockRendererContractpublic String getEarnCode()
LeaveBlockRendererContractleaveBlock.getEarnCode() of a LeaveBlockRenderer
getEarnCode in interface LeaveBlockRendererContractpublic String getLeaveBlockId()
LeaveBlockRendererContractleaveBlock.getLmLeaveBlockId() of a LeaveBlockRenderer
getLeaveBlockId in interface LeaveBlockRendererContractpublic String getDocumentId()
LeaveBlockRendererContractleaveBlock.getDocumentId() of a LeaveBlockRenderer
getDocumentId in interface LeaveBlockRendererContractpublic String getAssignmentTitle()
LeaveBlockRendererContractleaveBlock.getAssignmentTitle() of a LeaveBlockRenderer
getAssignmentTitle in interface LeaveBlockRendererContractpublic boolean isEditable()
LeaveBlockRendererContractleaveBlock.isEditable() of a LeaveBlockRenderer
isEditable in interface LeaveBlockRendererContractpublic boolean isDeletable()
LeaveBlockRendererContractleaveBlock.isDeletable() of a LeaveBlockRenderer
isDeletable in interface LeaveBlockRendererContractpublic String getAssignmentClass()
LeaveBlockRendererContractassignmentClass of a LeaveBlockRenderer
getAssignmentClass in interface LeaveBlockRendererContractpublic void setAssignmentClass(String assignmentClass)
public String getRequestStatusClass()
LeaveBlockRendererContractleaveBlock.getRequestStatusString().toLowerCase() of an LeaveBlockRenderer
getRequestStatusClass in interface LeaveBlockRendererContractpublic String getLeaveBlockDetails()
LeaveBlockRendererContractIf the leave block type is Accrual Service if the ScheduleTimeOffId of the leave block is not null, return the description of the ScheduleTimeOff, else "accrual" If the leave block type is Carry Over Adjustment if the description of the leave block is Max carry over adjustment, return "carryover adjustment", else "adjustment" If the leave block type is Balance Transfer if the description of the leave block contains Forfeited, return "transfer forfeiture" else if it contains Amount transferred, return "amount transferred" else if it contains Transferred amount, return "transferred amount" else "balance transfer" If the leave block type is Leave Payout if the description of the leave block contains Forfeited, return "payout forfeiture" else if it contains Amount paid out, return "amount paid out" else if it contains Payout amount, return "payout amount" else "leave payout" Else if the leave block type is not Leave Calendar nor Time Calendar, return corresponding string in LEAVE_BLOCK_TYPE_MAP for the leave block type else return leaveBlock.getRequestStatusString()
getLeaveBlockDetails in interface LeaveBlockRendererContractpublic String getDescription()
LeaveBlockRendererContractleaveBlock.getDescription() of a LeaveBlockRenderer
getDescription in interface LeaveBlockRendererContractpublic String getTimeRange()
LeaveBlockRendererContractIf the begin timestamp and end timestamp of the LeaveBlock are not null, and If the earn code type of the LeaveBlock is "T", it constructs and returns a string that contains begin timestamp and end timestamp.
getTimeRange in interface LeaveBlockRendererContractCopyright © 2004–2014 The Kuali Foundation. All rights reserved.