1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.kpme.tklm.common;
17
18 import java.util.ArrayList;
19 import java.util.HashMap;
20 import java.util.LinkedHashMap;
21 import java.util.List;
22 import java.util.Map;
23
24 import org.kuali.kpme.core.util.HrConstants;
25
26
27 public class LMConstants {
28
29 public static final class LEAVE_BLOCK_TYPE {
30 public static final String LEAVE_CALENDAR = "LC";
31 public static final String TIME_CALENDAR = "TC";
32 public static final String ACCRUAL_SERVICE = "AS";
33 public static final String BALANCE_TRANSFER = "BT";
34 public static final String LEAVE_PAYOUT = "LP";
35 public static final String DONATION_MAINT = "DM";
36 public static final String LEAVE_ADJUSTMENT_MAINT = "LAM";
37 public static final String CARRY_OVER = "CO";
38 public static final String CARRY_OVER_ADJUSTMENT = "COA";
39 }
40
41 public static final Map<String, String> LEAVE_BLOCK_TYPE_MAP = new LinkedHashMap<String, String>(8);
42 static {
43 LEAVE_BLOCK_TYPE_MAP.put(LEAVE_BLOCK_TYPE.LEAVE_CALENDAR, "Leave Calendar");
44 LEAVE_BLOCK_TYPE_MAP.put(LEAVE_BLOCK_TYPE.TIME_CALENDAR, "Time Calendar");
45 LEAVE_BLOCK_TYPE_MAP.put(LEAVE_BLOCK_TYPE.ACCRUAL_SERVICE, "Accrual Service");
46 LEAVE_BLOCK_TYPE_MAP.put(LEAVE_BLOCK_TYPE.BALANCE_TRANSFER, "Balance Transfer");
47 LEAVE_BLOCK_TYPE_MAP.put(LEAVE_BLOCK_TYPE.CARRY_OVER, "Carry Over");
48 LEAVE_BLOCK_TYPE_MAP.put(LEAVE_BLOCK_TYPE.CARRY_OVER_ADJUSTMENT, "Carry Over Adjustment");
49 LEAVE_BLOCK_TYPE_MAP.put(LEAVE_BLOCK_TYPE.DONATION_MAINT, "Donation");
50 LEAVE_BLOCK_TYPE_MAP.put(LEAVE_BLOCK_TYPE.LEAVE_ADJUSTMENT_MAINT, "Leave Adjustment");
51 LEAVE_BLOCK_TYPE_MAP.put(LEAVE_BLOCK_TYPE.LEAVE_PAYOUT, "Leave Payout");
52
53
54 }
55
56 public static final String STATUS_CHANGE_EARN_CODE = "Accrual Note";
57
58
59 public static final String PAYOUT_FORFEIT_LB_DESCRIPTION = "Forfeited payout amount";
60 public static final String TRANSFER_FORFEIT_LB_DESCRIPTION = "Forfeited balance transfer amount";
61
62 public static final String RUN_ACCRUAL_FROM_CALENDAR = "run.accrual.from.calendar";
63 public static final String ALLOW_CLOCKINGEMPLOYYE_FROM_INVALIDLOCATION = "kpme.allow.clockingEmployee.from.invalidLocation";
64 public static final String DISPLAY_YTD_FMLA_LEAVESUMMARY ="kpme.display.ytdfmla.on.leavesummary";
65
66 public static final String INITIATE_LEAVE_REQUEST_ACTION = "kpme.lm.leaveCalendar.initiate.leaveRequest.action";
67
68 public static final class INITIATE_LEAVE_REQUEST_ACTION_OPTIONS {
69 public static final String DELETE = "DELETE";
70 public static final String APPROVE = "APPROVE";
71 }
72
73 public static final class TIME_APPROVAL_TYPE {
74 public static final String TIME = "time";
75 public static final String LEAVE = "leave";
76 public static final String ALL = "all";
77 }
78
79 public static final int DELINQUENT_LEAVE_CALENDARS_LIMIT = 2;
80
81 public static final class BALANCE_TRANSFER_TYPE {
82 public static final String ACCRUAL_TRIGGERED = "AT";
83 public static final String SSTO = "TO";
84 public static final String MAINTENANCE = "MT";
85 public static final String CARRY_OVER = "CO";
86 }
87
88 public static final class UNUSED_TIME{
89 public static final String NO_UNUSED = "NUTA";
90 public static final String TRANSFER = "T";
91 public static final String BANK = "B";
92 }
93
94 public static final Map<String, String> UNUSED_TIME_MAP = new HashMap<String, String>(7);
95 static {
96 UNUSED_TIME_MAP.put(UNUSED_TIME.NO_UNUSED, "No Unused Time Allowed");
97 UNUSED_TIME_MAP.put(UNUSED_TIME.TRANSFER, "Transfer");
98 UNUSED_TIME_MAP.put(UNUSED_TIME.BANK, "Bank");
99 }
100
101 public static final String MAX_CARRY_OVER_ADJUSTMENT = "Max carry over adjustment";
102
103 public static final List<String> YTD_EARNED_LEAVE_BLOCK_TYPES = new ArrayList<String>();
104 static {
105 YTD_EARNED_LEAVE_BLOCK_TYPES.add(LMConstants.LEAVE_BLOCK_TYPE.ACCRUAL_SERVICE);
106 YTD_EARNED_LEAVE_BLOCK_TYPES.add(LMConstants.LEAVE_BLOCK_TYPE.BALANCE_TRANSFER);
107 YTD_EARNED_LEAVE_BLOCK_TYPES.add(LMConstants.LEAVE_BLOCK_TYPE.LEAVE_PAYOUT);
108 YTD_EARNED_LEAVE_BLOCK_TYPES.add(LMConstants.LEAVE_BLOCK_TYPE.DONATION_MAINT);
109 YTD_EARNED_LEAVE_BLOCK_TYPES.add(LMConstants.LEAVE_BLOCK_TYPE.CARRY_OVER_ADJUSTMENT);
110 }
111
112 public static final List<String> ADJUSTMENT_YTD_EARNED_LEAVE_BLOCK_TYPES = new ArrayList<String>();
113 static {
114 ADJUSTMENT_YTD_EARNED_LEAVE_BLOCK_TYPES.add(LMConstants.LEAVE_BLOCK_TYPE.TIME_CALENDAR);
115 ADJUSTMENT_YTD_EARNED_LEAVE_BLOCK_TYPES.add(LMConstants.LEAVE_BLOCK_TYPE.LEAVE_CALENDAR);
116 ADJUSTMENT_YTD_EARNED_LEAVE_BLOCK_TYPES.add(LMConstants.LEAVE_BLOCK_TYPE.LEAVE_ADJUSTMENT_MAINT);
117 }
118
119
120 public static final List<String> USAGE_LEAVE_BLOCK_TYPES = new ArrayList<String>();
121 static {
122 USAGE_LEAVE_BLOCK_TYPES.add(LMConstants.LEAVE_BLOCK_TYPE.TIME_CALENDAR);
123 USAGE_LEAVE_BLOCK_TYPES.add(LMConstants.LEAVE_BLOCK_TYPE.LEAVE_CALENDAR);
124 USAGE_LEAVE_BLOCK_TYPES.add(LMConstants.LEAVE_BLOCK_TYPE.LEAVE_ADJUSTMENT_MAINT);
125 }
126
127 public static final List<String> PENDING_LEAVE_BLOCK_STATUS = new ArrayList<String>();
128 static {
129 PENDING_LEAVE_BLOCK_STATUS.add(HrConstants.REQUEST_STATUS.PLANNED);
130 PENDING_LEAVE_BLOCK_STATUS.add(HrConstants.REQUEST_STATUS.REQUESTED);
131 PENDING_LEAVE_BLOCK_STATUS.add(HrConstants.REQUEST_STATUS.APPROVED);
132 }
133 }