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.KimEntityResidency;
19  
20  /**
21   * @author Kuali Rice Team (kuali-rice@googlegroups.com)
22   */
23  public class KimEntityResidencyInfo extends KimInfoBase implements KimEntityResidency {
24  
25  	private static final long serialVersionUID = -3939718576000597749L;
26  
27  	private String id;
28  	private String entityId;
29  	private String determinationMethod;
30  	private String inStateFlag;
31  
32  	public KimEntityResidencyInfo() {
33  		super();
34  	}
35  
36  	public KimEntityResidencyInfo(KimEntityResidency kimEntityResidency) {
37  		this();
38  		if ( kimEntityResidency != null ) {
39  			id = kimEntityResidency.getId();
40  			entityId = kimEntityResidency.getEntityId();
41  			determinationMethod = kimEntityResidency.getDeterminationMethod();
42  			inStateFlag = kimEntityResidency.getInState();
43  		}
44  	}
45  
46  	/**
47  	 * @param inStateFlag the inStateFlag to set
48  	 */
49  	public void setInStateFlag(String inStateFlag) {
50  		this.inStateFlag = inStateFlag;
51  	}
52  
53  	/**
54  	 * @param id the id to set
55  	 */
56  	public void setId(String id) {
57  		this.id = id;
58  	}
59  
60  	/**
61  	 * @param entityId the entityId to set
62  	 */
63  	public void setEntityId(String entityId) {
64  		this.entityId = entityId;
65  	}
66  
67  	/**
68  	 * @param determinationMethod the determinationMethod to set
69  	 */
70  	public void setDeterminationMethod(String determinationMethod) {
71  		this.determinationMethod = determinationMethod;
72  	}
73  
74  	/**
75  	 * {@inheritDoc} 
76  	 * @see org.kuali.rice.kim.bo.entity.KimEntityResidency#getDeterminationMethod()
77  	 */
78  	public String getDeterminationMethod() {
79  		return determinationMethod;
80  	}
81  
82  	/**
83  	 * {@inheritDoc}
84  	 * @see org.kuali.rice.kim.bo.entity.KimEntityResidency#getEntityId()
85  	 */
86  	public String getEntityId() {
87  		return entityId;
88  	}
89  
90  	/**
91  	 * {@inheritDoc}
92  	 * @see org.kuali.rice.kim.bo.entity.KimEntityResidency#getId()
93  	 */
94  	public String getId() {
95  		return id;
96  	}
97  
98  	/**
99  	 * {@inheritDoc}
100 	 * @see org.kuali.rice.kim.bo.entity.KimEntityResidency#getInState()
101 	 */
102 	public String getInState() {
103 		return inStateFlag;
104 	}
105 }