1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.kpme.tklm.leave.accrual.bucket;
17
18 import java.math.BigDecimal;
19 import org.kuali.kpme.core.accrualcategory.AccrualCategory;
20 import org.kuali.kpme.core.principal.PrincipalHRAttributes;
21 import org.kuali.kpme.tklm.api.leave.accrual.bucket.KPMEBalanceException;
22 import org.kuali.kpme.tklm.api.leave.accrual.bucket.UsageLimitBalanceContract;
23 import org.kuali.kpme.tklm.leave.block.LeaveBlock;
24
25 public class UsageLimitBalance extends LeaveBalance implements UsageLimitBalanceContract {
26
27 private BigDecimal usageLimit;
28
29 protected UsageLimitBalance(AccrualCategory accrualCategory, PrincipalHRAttributes principalCalendar) {
30 super(accrualCategory, principalCalendar);
31 usageLimit = BigDecimal.ZERO;
32 }
33
34 @Override
35 public void add(LeaveBlock leaveBlock) throws KPMEBalanceException {
36
37 }
38
39 @Override
40 public void remove(LeaveBlock leaveBlock) throws KPMEBalanceException {
41
42 }
43
44 @Override
45 public String getBalanceType() {
46 return getBalanceType();
47 }
48
49 @Override
50 public void adjust(LeaveBlock leaveBlock) throws KPMEBalanceException {
51
52 }
53
54 @Override
55 public void clear() {
56 usageLimit = new BigDecimal(0);
57 }
58
59 }