001 /** 002 * Copyright 2004-2012 The Kuali Foundation 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016 package org.kuali.hr.time.earngroup; 017 018 import org.kuali.hr.time.HrBusinessObject; 019 020 import java.util.ArrayList; 021 import java.util.LinkedHashMap; 022 import java.util.List; 023 024 public class EarnGroup extends HrBusinessObject { 025 026 /** 027 * 028 */ 029 private static final long serialVersionUID = -3034933572755800531L; 030 031 private String hrEarnGroupId; 032 033 private String earnGroup; 034 035 private String descr; 036 037 private Boolean history; 038 039 private Boolean showSummary; 040 041 private List<EarnGroupDefinition> earnGroups = new ArrayList<EarnGroupDefinition>(); 042 043 private String warningText; 044 045 public String getEarnGroup() { 046 return earnGroup; 047 } 048 049 public void setEarnGroup(String earnGroup) { 050 this.earnGroup = earnGroup; 051 } 052 053 054 public Boolean getHistory() { 055 return history; 056 } 057 058 public void setHistory(Boolean history) { 059 this.history = history; 060 } 061 062 063 public void setEarnGroups(List<EarnGroupDefinition> earnGroups) { 064 this.earnGroups = earnGroups; 065 } 066 067 public List<EarnGroupDefinition> getEarnGroups() { 068 return earnGroups; 069 } 070 071 public void setDescr(String descr) { 072 this.descr = descr; 073 } 074 075 public String getDescr() { 076 return descr; 077 } 078 079 public String getHrEarnGroupId() { 080 return hrEarnGroupId; 081 } 082 083 public void setHrEarnGroupId(String hrEarnGroupId) { 084 this.hrEarnGroupId = hrEarnGroupId; 085 } 086 087 public Boolean getShowSummary() { 088 return showSummary; 089 } 090 091 public void setShowSummary(Boolean showSummary) { 092 this.showSummary = showSummary; 093 } 094 095 @Override 096 public String getUniqueKey() { 097 return earnGroup; 098 } 099 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 }