View Javadoc

1   /**
2    * Copyright 2004-2014 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.kpme.tklm.leave.accrual;
17  
18  import java.math.BigDecimal;
19  import java.util.ArrayList;
20  import java.util.List;
21  
22  import org.joda.time.Interval;
23  import org.kuali.kpme.core.accrualcategory.AccrualCategory;
24  import org.kuali.kpme.core.accrualcategory.rule.AccrualCategoryRule;
25  import org.kuali.kpme.core.job.Job;
26  import org.kuali.kpme.core.leaveplan.LeavePlan;
27  import org.kuali.kpme.core.principal.PrincipalHRAttributes;
28  import org.kuali.kpme.tklm.api.leave.accrual.RateRangeContract;
29  import org.kuali.kpme.tklm.leave.timeoff.SystemScheduledTimeOff;
30  
31  public class RateRange implements RateRangeContract {
32  	private Interval range;
33  	private List<Job> jobs = new ArrayList<Job>();
34  	private BigDecimal accrualRatePercentageModifier = new BigDecimal("1.0");
35  	private BigDecimal standardHours;
36  	private PrincipalHRAttributes principalHRAttributes;
37  	private PrincipalHRAttributes endPrincipalHRAttributes;
38  	private LeavePlan leavePlan;
39  	private List<AccrualCategory> acList = new ArrayList<AccrualCategory>();
40  	private List<AccrualCategoryRule> acRuleList = new ArrayList<AccrualCategoryRule>();
41  	private SystemScheduledTimeOff sysScheTimeOff;
42  	private String leaveCalendarDocumentId;
43  	private String primaryLeaveAssignmentId;
44  	
45  	private boolean statusChanged;
46  	
47  	public Interval getRange() {
48  		return range;
49  	}
50  	public void setRange(Interval range) {
51  		this.range = range;
52  	}
53  	public List<Job> getJobs() {
54  		return jobs;
55  	}
56  	public void setJobs(List<Job> jobs) {
57  		this.jobs = jobs;
58  	}
59  	public BigDecimal getAccrualRatePercentageModifier() {
60  		return accrualRatePercentageModifier;
61  	}
62  	public void setAccrualRatePercentageModifier(
63  			BigDecimal accrualRatePercentageModifier) {
64  		this.accrualRatePercentageModifier = accrualRatePercentageModifier;
65  	}
66  	public boolean isStatusChanged() {
67  		return statusChanged;
68  	}
69  	public void setStatusChanged(boolean statusChanged) {
70  		this.statusChanged = statusChanged;
71  	}
72  	public BigDecimal getStandardHours() {
73  		return standardHours;
74  	}
75  	public void setStandardHours(BigDecimal standardHours) {
76  		this.standardHours = standardHours;
77  	}
78  	public PrincipalHRAttributes getPrincipalHRAttributes() {
79  		return principalHRAttributes;
80  	}
81  	public void setPrincipalHRAttributes(PrincipalHRAttributes principalHRAttributes) {
82  		this.principalHRAttributes = principalHRAttributes;
83  	}
84  	public PrincipalHRAttributes getEndPrincipalHRAttributes() {
85  		return endPrincipalHRAttributes;
86  	}
87  	public void setEndPrincipalHRAttributes(
88  			PrincipalHRAttributes endPrincipalHRAttributes) {
89  		this.endPrincipalHRAttributes = endPrincipalHRAttributes;
90  	}
91  	public LeavePlan getLeavePlan() {
92  		return leavePlan;
93  	}
94  	public void setLeavePlan(LeavePlan leavePlan) {
95  		this.leavePlan = leavePlan;
96  	}
97  	public List<AccrualCategory> getAcList() {
98  		return acList;
99  	}
100 	public void setAcList(List<AccrualCategory> acList) {
101 		this.acList = acList;
102 	}
103 	public List<AccrualCategoryRule> getAcRuleList() {
104 		return acRuleList;
105 	}
106 	public void setAcRuleList(List<AccrualCategoryRule> acRuleList) {
107 		this.acRuleList = acRuleList;
108 	}
109 	
110 	public SystemScheduledTimeOff getSysScheTimeOff() {
111 		return sysScheTimeOff;
112 	}
113 	public void setSysScheTimeOff(SystemScheduledTimeOff sysScheTimeOff) {
114 		this.sysScheTimeOff = sysScheTimeOff;
115 	}
116 	public String getLeaveCalendarDocumentId() {
117 		return leaveCalendarDocumentId;
118 	}
119 	public void setLeaveCalendarDocumentId(String leaveCalendarDocumentId) {
120 		this.leaveCalendarDocumentId = leaveCalendarDocumentId;
121 	}
122 	public String getPrimaryLeaveAssignmentId() {
123 		return primaryLeaveAssignmentId;
124 	}
125 	public void setPrimaryLeaveAssignmentId(String primaryLeaveAssignmentId) {
126 		this.primaryLeaveAssignmentId = primaryLeaveAssignmentId;
127 	}
128 }