View Javadoc

1   /**
2    * Copyright 2004-2013 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.core.earncode.group;
17  
18  import java.util.ArrayList;
19  import java.util.List;
20  
21  import org.kuali.kpme.core.api.earncode.group.EarnCodeGroupContract;
22  import org.kuali.kpme.core.bo.HrBusinessObject;
23  
24  import com.google.common.collect.ImmutableList;
25  
26  public class EarnCodeGroup extends HrBusinessObject implements EarnCodeGroupContract {
27  
28  	//KPME-2273/1965 Primary Business Keys List.
29  	public static final ImmutableList<String> EQUAL_TO_FIELDS = new ImmutableList.Builder<String>()
30              .add("earnCodeGroup")
31              .build();
32  
33  	private static final long serialVersionUID = -3034933572755800531L;
34  
35  	private String hrEarnCodeGroupId;
36  
37  	private String earnCodeGroup;
38  
39  	private String descr;
40  
41  	private Boolean history;
42  	
43  	private Boolean showSummary;
44  
45  	private List<EarnCodeGroupDefinition> earnCodeGroups = new ArrayList<EarnCodeGroupDefinition>();
46  	
47  	private String warningText;
48  
49  	
50  
51  	public Boolean getHistory() {
52  		return history;
53  	}
54  
55  	public void setHistory(Boolean history) {
56  		this.history = history;
57  	}
58  
59  	public List<EarnCodeGroupDefinition> getEarnCodeGroups() {
60  		return earnCodeGroups;
61  	}
62  
63  	public void setEarnCodeGroups(List<EarnCodeGroupDefinition> earnCodeGroups) {
64  		this.earnCodeGroups = earnCodeGroups;
65  	}
66  
67  	public void setDescr(String descr) {
68  		this.descr = descr;
69  	}
70  
71  	public String getDescr() {
72  		return descr;
73  	}
74  
75  	
76  	public Boolean getShowSummary() {
77  		return showSummary;
78  	}
79  
80  	public void setShowSummary(Boolean showSummary) {
81  		this.showSummary = showSummary;
82  	}
83  
84  	@Override
85  	public String getUniqueKey() {
86  		return earnCodeGroup;
87  	}
88  
89  	@Override
90  	public String getId() {
91  		return getHrEarnCodeGroupId();
92  	}
93  
94  	@Override
95  	public void setId(String id) {
96  		setHrEarnCodeGroupId(id);
97  	}
98  
99  	public String getWarningText() {
100 		return warningText;
101 	}
102 
103 	public void setWarningText(String warningText) {
104 		this.warningText = warningText;
105 	}
106 
107 	public String getHrEarnCodeGroupId() {
108 		return hrEarnCodeGroupId;
109 	}
110 
111 	public void setHrEarnCodeGroupId(String hrEarnCodeGroupId) {
112 		this.hrEarnCodeGroupId = hrEarnCodeGroupId;
113 	}
114 
115 	public String getEarnCodeGroup() {
116 		return earnCodeGroup;
117 	}
118 
119 	public void setEarnCodeGroup(String earnCodeGroup) {
120 		this.earnCodeGroup = earnCodeGroup;
121 	}
122 
123 }