001    /*
002     * Copyright 2011 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    
017    package org.kuali.kfs.module.bc.businessobject;
018    
019    import java.util.HashMap;
020    import java.util.LinkedHashMap;
021    import java.util.List;
022    import java.util.Map;
023    
024    import org.kuali.kfs.sys.KFSPropertyConstants;
025    import org.kuali.rice.kns.bo.Inactivateable;
026    import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
027    import org.kuali.rice.kns.util.TypedArrayList;
028    
029    public class BudgetConstructionIntendedIncumbent extends PersistableBusinessObjectBase implements PendingBudgetConstructionAppointmentFundingAware, Incumbent, Inactivateable {
030    
031        private String emplid;
032        private String name;
033        private String setidSalary;
034        private String salaryAdministrationPlan;
035        private String grade;
036        private String iuClassificationLevel;
037        private boolean active;
038    
039        private List<BudgetConstructionSalarySocialSecurityNumber> budgetConstructionSalarySocialSecurity;
040        private List<PendingBudgetConstructionAppointmentFunding> pendingBudgetConstructionAppointmentFunding;
041    
042        /**
043         * Default constructor.
044         */
045        public BudgetConstructionIntendedIncumbent() {
046            super();
047    
048            budgetConstructionSalarySocialSecurity = new TypedArrayList(BudgetConstructionSalarySocialSecurityNumber.class);
049            pendingBudgetConstructionAppointmentFunding = new TypedArrayList(PendingBudgetConstructionAppointmentFunding.class);
050        }
051    
052        /**
053         * Gets the emplid attribute.
054         * 
055         * @return Returns the emplid
056         */
057        public String getEmplid() {
058            return emplid;
059        }
060    
061        /**
062         * Sets the emplid attribute.
063         * 
064         * @param emplid The emplid to set.
065         */
066        public void setEmplid(String emplid) {
067            this.emplid = emplid;
068        }
069    
070    
071        /**
072         * Gets the name attribute.
073         * 
074         * @return Returns the name
075         */
076        public String getName() {
077            return name;
078        }
079    
080        /**
081         * Sets the name attribute.
082         * 
083         * @param name The name to set.
084         */
085        public void setName(String name) {
086            this.name = name;
087        }
088    
089    
090        /**
091         * Gets the setidSalary attribute.
092         * 
093         * @return Returns the setidSalary
094         */
095        public String getSetidSalary() {
096            return setidSalary;
097        }
098    
099        /**
100         * Sets the setidSalary attribute.
101         * 
102         * @param setidSalary The setidSalary to set.
103         */
104        public void setSetidSalary(String setidSalary) {
105            this.setidSalary = setidSalary;
106        }
107    
108    
109        /**
110         * Gets the salaryAdministrationPlan attribute.
111         * 
112         * @return Returns the salaryAdministrationPlan
113         */
114        public String getSalaryAdministrationPlan() {
115            return salaryAdministrationPlan;
116        }
117    
118        /**
119         * Sets the salaryAdministrationPlan attribute.
120         * 
121         * @param salaryAdministrationPlan The salaryAdministrationPlan to set.
122         */
123        public void setSalaryAdministrationPlan(String salaryAdministrationPlan) {
124            this.salaryAdministrationPlan = salaryAdministrationPlan;
125        }
126    
127    
128        /**
129         * Gets the grade attribute.
130         * 
131         * @return Returns the grade
132         */
133        public String getGrade() {
134            return grade;
135        }
136    
137        /**
138         * Sets the grade attribute.
139         * 
140         * @param grade The grade to set.
141         */
142        public void setGrade(String grade) {
143            this.grade = grade;
144        }
145    
146    
147        /**
148         * Gets the iuClassificationLevel attribute.
149         * 
150         * @return Returns the iuClassificationLevel
151         */
152        public String getIuClassificationLevel() {
153            return iuClassificationLevel;
154        }
155    
156        /**
157         * Sets the iuClassificationLevel attribute.
158         * 
159         * @param iuClassificationLevel The iuClassificationLevel to set.
160         */
161        public void setIuClassificationLevel(String iuClassificationLevel) {
162            this.iuClassificationLevel = iuClassificationLevel;
163        }
164    
165    
166        /**
167         * Gets the budgetConstructionSalarySocialSecurity attribute.
168         * 
169         * @return Returns the budgetConstructionSalarySocialSecurity.
170         */
171        public List<BudgetConstructionSalarySocialSecurityNumber> getBudgetConstructionSalarySocialSecurity() {
172            return budgetConstructionSalarySocialSecurity;
173        }
174    
175        /**
176         * Sets the budgetConstructionSalarySocialSecurity attribute value.
177         * 
178         * @param budgetConstructionSalarySocialSecurity The budgetConstructionSalarySocialSecurity to set.
179         */
180        @Deprecated
181        public void setBudgetConstructionSalarySocialSecurity(List<BudgetConstructionSalarySocialSecurityNumber> budgetConstructionSalarySocialSecurity) {
182            this.budgetConstructionSalarySocialSecurity = budgetConstructionSalarySocialSecurity;
183        }
184    
185        /**
186         * Gets the pendingBudgetConstructionAppointmentFunding attribute.
187         * 
188         * @return Returns the pendingBudgetConstructionAppointmentFunding.
189         */
190        public List<PendingBudgetConstructionAppointmentFunding> getPendingBudgetConstructionAppointmentFunding() {
191            return pendingBudgetConstructionAppointmentFunding;
192        }
193    
194        /**
195         * Sets the pendingBudgetConstructionAppointmentFunding attribute value.
196         * 
197         * @param pendingBudgetConstructionAppointmentFunding The pendingBudgetConstructionAppointmentFunding to set.
198         */
199        @Deprecated
200        public void setPendingBudgetConstructionAppointmentFunding(List<PendingBudgetConstructionAppointmentFunding> pendingBudgetConstructionAppointmentFunding) {
201            this.pendingBudgetConstructionAppointmentFunding = pendingBudgetConstructionAppointmentFunding;
202        }
203    
204        /**
205         * Gets the active attribute.
206         * 
207         * @return Returns the active.
208         */
209        public boolean isActive() {
210            return active;
211        }
212    
213        /**
214         * Sets the active attribute value.
215         * 
216         * @param active The active to set.
217         */
218        public void setActive(boolean active) {
219            this.active = active;
220        }
221    
222        /**
223         * @see org.kuali.rice.kns.bo.PersistableBusinessObjectBase#buildListOfDeletionAwareLists()
224         */
225        @Override
226        public List buildListOfDeletionAwareLists() {
227    
228            List managedLists = super.buildListOfDeletionAwareLists();
229            managedLists.add(getPendingBudgetConstructionAppointmentFunding());
230            return managedLists;
231        }
232    
233        /**
234         * Returns a map with the primitive field names as the key and the primitive values as the map value.
235         * 
236         * @return Map
237         */
238        public Map<String, Object> getValuesMap() {
239            Map<String, Object> simpleValues = new HashMap<String, Object>();
240            simpleValues.put(KFSPropertyConstants.EMPLID, this.getEmplid());
241    
242            return simpleValues;
243        }
244    
245        /**
246         * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
247         */
248        public LinkedHashMap toStringMapper() {
249            LinkedHashMap<String, Object> mapper = new LinkedHashMap<String, Object>();
250            mapper.put(KFSPropertyConstants.EMPLID, this.getEmplid());
251    
252            return mapper;
253        }
254    }
255