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()
LeaveBlockRendererContract
leaveBlock of a LeaveBlockRenderer
getLeaveBlock
in interface LeaveBlockRendererContract
public BigDecimal getHours()
LeaveBlockRendererContract
leaveBlock.getLeaveAmount() of a LeaveBlockRenderer
getHours
in interface LeaveBlockRendererContract
public String getEarnCode()
LeaveBlockRendererContract
leaveBlock.getEarnCode() of a LeaveBlockRenderer
getEarnCode
in interface LeaveBlockRendererContract
public String getLeaveBlockId()
LeaveBlockRendererContract
leaveBlock.getLmLeaveBlockId() of a LeaveBlockRenderer
getLeaveBlockId
in interface LeaveBlockRendererContract
public String getDocumentId()
LeaveBlockRendererContract
leaveBlock.getDocumentId() of a LeaveBlockRenderer
getDocumentId
in interface LeaveBlockRendererContract
public String getAssignmentTitle()
LeaveBlockRendererContract
leaveBlock.getAssignmentTitle() of a LeaveBlockRenderer
getAssignmentTitle
in interface LeaveBlockRendererContract
public boolean isEditable()
LeaveBlockRendererContract
leaveBlock.isEditable() of a LeaveBlockRenderer
isEditable
in interface LeaveBlockRendererContract
public boolean isDeletable()
LeaveBlockRendererContract
leaveBlock.isDeletable() of a LeaveBlockRenderer
isDeletable
in interface LeaveBlockRendererContract
public String getAssignmentClass()
LeaveBlockRendererContract
assignmentClass of a LeaveBlockRenderer
getAssignmentClass
in interface LeaveBlockRendererContract
public void setAssignmentClass(String assignmentClass)
public String getRequestStatusClass()
LeaveBlockRendererContract
leaveBlock.getRequestStatusString().toLowerCase() of an LeaveBlockRenderer
getRequestStatusClass
in interface LeaveBlockRendererContract
public String getLeaveBlockDetails()
LeaveBlockRendererContract
If 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 LeaveBlockRendererContract
public String getDescription()
LeaveBlockRendererContract
leaveBlock.getDescription() of a LeaveBlockRenderer
getDescription
in interface LeaveBlockRendererContract
public String getTimeRange()
LeaveBlockRendererContract
If 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 LeaveBlockRendererContract
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.