View Javadoc

1   /*
2    * Copyright 2007-2009 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.rice.kim.bo.entity.dto;
17  
18  import org.kuali.rice.kim.bo.entity.KimEntityEthnicity;
19  
20  /**
21   * @author Kuali Rice Team (kuali-rice@googlegroups.com)
22   */
23  public class KimEntityEthnicityInfo extends KimInfoBase implements KimEntityEthnicity {
24  
25  	private static final long serialVersionUID = -5660229079458643653L;
26  
27  	protected String id;
28  	protected String entityId;
29  	protected String ethnicityCode;
30  	protected String ethnicityCodeUnmasked;
31  	protected String subEthnicityCode;
32  	protected String subEthnicityCodeUnmasked;
33  	
34  	protected boolean suppressPersonal;
35  
36  	public KimEntityEthnicityInfo() {
37  		super();
38  	}
39  
40  	public KimEntityEthnicityInfo(KimEntityEthnicity kimEntityEthnicity) {
41  		this();
42  		if ( kimEntityEthnicity != null ) {
43  			id = kimEntityEthnicity.getId();
44  			entityId = kimEntityEthnicity.getEntityId();
45  			ethnicityCode = kimEntityEthnicity.getEthnicityCode();
46  			ethnicityCodeUnmasked = kimEntityEthnicity.getEthnicityCodeUnmasked();
47  			subEthnicityCode = kimEntityEthnicity.getSubEthnicityCode();
48  			subEthnicityCodeUnmasked = kimEntityEthnicity.getSubEthnicityCodeUnmasked();
49  			suppressPersonal = kimEntityEthnicity.isSuppressPersonal();
50  		}
51  	}
52  
53  	/**
54  	 * {@inheritDoc} 
55  	 * @see org.kuali.rice.kim.bo.entity.KimEntityEthnicity#getId()
56  	 */
57  	public String getId() {
58  		return id;
59  	}
60  
61  	/**
62  	 * @param id the id to set
63  	 */
64  	public void setId(String id) {
65  		this.id = id;
66  	}
67  
68  	/**
69  	 * {@inheritDoc} 
70  	 * @see org.kuali.rice.kim.bo.entity.KimEntityEthnicity#getEntityId()
71  	 */
72  	public String getEntityId() {
73  		return entityId;
74  	}
75  
76  	/**
77  	 * @param entityId the entityId to set
78  	 */
79  	public void setEntityId(String entityId) {
80  		this.entityId = entityId;
81  	}
82  
83  	/**
84  	 * {@inheritDoc} 
85  	 * @see org.kuali.rice.kim.bo.entity.KimEntityEthnicity#getEthnicityCode()
86  	 */
87  	public String getEthnicityCode() {
88  		return ethnicityCode;
89  	}
90  
91  	/**
92  	 * @param ethnicityCode the ethnicityCode to set
93  	 */
94  	public void setEthnicityCode(String ethnicityCode) {
95  		this.ethnicityCode = ethnicityCode;
96  	}
97  
98  	/**
99  	 * {@inheritDoc} 
100 	 * @see org.kuali.rice.kim.bo.entity.KimEntityEthnicity#getEthnicityCodeUnmasked()
101 	 */
102 	public String getEthnicityCodeUnmasked() {
103 		return ethnicityCodeUnmasked;
104 	}
105 
106 	/**
107 	 * @param ethnicityCodeUnmasked the ethnicityCodeUnmasked to set
108 	 */
109 	public void setEthnicityCodeUnmasked(String ethnicityCodeUnmasked) {
110 		this.ethnicityCodeUnmasked = ethnicityCodeUnmasked;
111 	}
112 
113 	/**
114 	 * {@inheritDoc} 
115 	 * @see org.kuali.rice.kim.bo.entity.KimEntityEthnicity#getSubEthnicityCode()
116 	 */
117 	public String getSubEthnicityCode() {
118 		return subEthnicityCode;
119 	}
120 
121 	/**
122 	 * @param subEthnicityCode the subEthnicityCode to set
123 	 */
124 	public void setSubEthnicityCode(String subEthnicityCode) {
125 		this.subEthnicityCode = subEthnicityCode;
126 	}
127 
128 	/**
129 	 * {@inheritDoc} 
130 	 * @see org.kuali.rice.kim.bo.entity.KimEntityEthnicity#getSubEthnicityCodeUnmasked()
131 	 */
132 	public String getSubEthnicityCodeUnmasked() {
133 		return subEthnicityCodeUnmasked;
134 	}
135 
136 	/**
137 	 * @param subEthnicityCodeUnmasked the subEthnicityCodeUnmasked to set
138 	 */
139 	public void setSubEthnicityCodeUnmasked(String subEthnicityCodeUnmasked) {
140 		this.subEthnicityCodeUnmasked = subEthnicityCodeUnmasked;
141 	}
142 
143 	/**
144 	 * @return the suppressPersonal
145 	 */
146 	public boolean isSuppressPersonal() {
147 		return this.suppressPersonal;
148 	}
149 
150 	/**
151 	 * @param suppressPersonal the suppressPersonal to set
152 	 */
153 	public void setSuppressPersonal(boolean suppressPersonal) {
154 		this.suppressPersonal = suppressPersonal;
155 	}
156 
157 }