1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.hr.time.collection.rule;
17
18 import org.kuali.hr.core.KPMEConstants;
19 import org.kuali.hr.time.HrBusinessObject;
20 import org.kuali.hr.time.authorization.DepartmentalRule;
21 import org.kuali.hr.time.department.Department;
22 import org.kuali.hr.time.paytype.PayType;
23 import org.kuali.hr.time.workarea.WorkArea;
24
25 public class TimeCollectionRule extends HrBusinessObject implements DepartmentalRule {
26
27 private static final long serialVersionUID = 7892616560736184294L;
28
29 public static final String CACHE_NAME = KPMEConstants.APPLICATION_NAMESPACE_CODE + "/" + "TimeCollectionRule";
30
31 private String tkTimeCollectionRuleId;
32 private String dept;
33 private Long workArea;
34 private boolean clockUserFl;
35 private boolean hrsDistributionF;
36 private String userPrincipalId;
37
38 private String tkWorkAreaId;
39 private String hrDeptId;
40
41 private Department departmentObj;
42 private WorkArea workAreaObj;
43
44 private Boolean history;
45
46
47 private String payType;
48 private String hrPayTypeId;
49 private PayType payTypeObj;
50
51
52
53 public Department getDepartmentObj() {
54 return departmentObj;
55 }
56
57 public String getPayType() {
58 return payType;
59 }
60
61 public void setPayType(String payType) {
62 this.payType = payType;
63 }
64
65 public String getHrPayTypeId() {
66 return hrPayTypeId;
67 }
68
69 public void setHrPayTypeId(String hrPayTypeId) {
70 this.hrPayTypeId = hrPayTypeId;
71 }
72
73 public PayType getPayTypeObj() {
74 return payTypeObj;
75 }
76
77 public void setPayTypeObj(PayType payTypeObj) {
78 this.payTypeObj = payTypeObj;
79 }
80
81 public void setDepartmentObj(Department departmentObj) {
82 this.departmentObj = departmentObj;
83 }
84
85 public WorkArea getWorkAreaObj() {
86 return workAreaObj;
87 }
88
89 public void setWorkAreaObj(WorkArea workAreaObj) {
90 this.workAreaObj = workAreaObj;
91 }
92
93 public Long getWorkArea() {
94 return workArea;
95 }
96
97 public void setWorkArea(Long workArea) {
98 this.workArea = workArea;
99 }
100
101 public boolean isClockUserFl() {
102 return clockUserFl;
103 }
104
105 public void setClockUserFl(boolean clockUserFl) {
106 this.clockUserFl = clockUserFl;
107 }
108
109 public boolean isHrsDistributionF() {
110 return hrsDistributionF;
111 }
112
113 public void setHrsDistributionF(boolean hrsDistributionF) {
114 this.hrsDistributionF = hrsDistributionF;
115 }
116
117 public String getUserPrincipalId() {
118 return userPrincipalId;
119 }
120
121 public void setUserPrincipalId(String userPrincipalId) {
122 this.userPrincipalId = userPrincipalId;
123 }
124
125 public String getTkTimeCollectionRuleId() {
126 return tkTimeCollectionRuleId;
127 }
128
129 public void setTkTimeCollectionRuleId(String tkTimeCollectionRuleId) {
130 this.tkTimeCollectionRuleId = tkTimeCollectionRuleId;
131 }
132
133 public String getDept() {
134 return dept;
135 }
136
137 public void setDept(String dept) {
138 this.dept = dept;
139 }
140
141 public String getTkWorkAreaId() {
142 return tkWorkAreaId;
143 }
144
145 public void setTkWorkAreaId(String tkWorkAreaId) {
146 this.tkWorkAreaId = tkWorkAreaId;
147 }
148
149 public String getHrDeptId() {
150 return hrDeptId;
151 }
152
153 public void setHrDeptId(String hrDeptId) {
154 this.hrDeptId = hrDeptId;
155 }
156
157 @Override
158 public String getUniqueKey() {
159 String timeCollKey = getDept()+"_"+isClockUserFl()+"_"+isHrsDistributionF()+"_"+
160 (getWorkArea() !=null ? getWorkArea().toString() : "");
161
162 return timeCollKey;
163 }
164
165 @Override
166 public String getId() {
167 return getTkTimeCollectionRuleId();
168 }
169
170 @Override
171 public void setId(String id) {
172 setTkTimeCollectionRuleId(id);
173 }
174
175 public Boolean getHistory() {
176 return history;
177 }
178
179 public void setHistory(Boolean history) {
180 this.history = history;
181 }
182
183
184 }