View Javadoc

1   /**
2    * Copyright 2004-2012 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.hr.time.earngroup;
17  
18  import org.kuali.hr.time.HrBusinessObject;
19  
20  import java.util.ArrayList;
21  import java.util.LinkedHashMap;
22  import java.util.List;
23  
24  public class EarnGroup extends HrBusinessObject {
25  
26  	/**
27  	 * 
28  	 */
29  	private static final long serialVersionUID = -3034933572755800531L;
30  
31  	private String hrEarnGroupId;
32  
33  	private String earnGroup;
34  
35  	private String descr;
36  
37  	private Boolean history;
38  	
39  	private Boolean showSummary;
40  
41  	private List<EarnGroupDefinition> earnGroups = new ArrayList<EarnGroupDefinition>();
42  	
43  	private String warningText;
44  
45  	public String getEarnGroup() {
46  		return earnGroup;
47  	}
48  
49  	public void setEarnGroup(String earnGroup) {
50  		this.earnGroup = earnGroup;
51  	}
52  
53  
54  	public Boolean getHistory() {
55  		return history;
56  	}
57  
58  	public void setHistory(Boolean history) {
59  		this.history = history;
60  	}
61  
62  
63  	public void setEarnGroups(List<EarnGroupDefinition> earnGroups) {
64  		this.earnGroups = earnGroups;
65  	}
66  
67  	public List<EarnGroupDefinition> getEarnGroups() {
68  		return earnGroups;
69  	}
70  
71  	public void setDescr(String descr) {
72  		this.descr = descr;
73  	}
74  
75  	public String getDescr() {
76  		return descr;
77  	}
78  
79  	public String getHrEarnGroupId() {
80  		return hrEarnGroupId;
81  	}
82  
83  	public void setHrEarnGroupId(String hrEarnGroupId) {
84  		this.hrEarnGroupId = hrEarnGroupId;
85  	}
86  	
87  	public Boolean getShowSummary() {
88  		return showSummary;
89  	}
90  
91  	public void setShowSummary(Boolean showSummary) {
92  		this.showSummary = showSummary;
93  	}
94  
95  	@Override
96  	public String getUniqueKey() {
97  		return earnGroup;
98  	}
99  
100 	@Override
101 	public String getId() {
102 		return getHrEarnGroupId();
103 	}
104 
105 	@Override
106 	public void setId(String id) {
107 		setHrEarnGroupId(id);
108 	}
109 
110 	public String getWarningText() {
111 		return warningText;
112 	}
113 
114 	public void setWarningText(String warningText) {
115 		this.warningText = warningText;
116 	}
117 
118 }