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.KimEntityAffiliation;
19  
20  /**
21   * @author Kuali Rice Team (rice.collab@kuali.org)
22   */
23  public class KimEntityAffiliationInfo extends KimDefaultableInfo implements KimEntityAffiliation {
24  
25  	private static final long serialVersionUID = 1L;
26  
27  	protected String entityAffiliationId;
28  	protected String affiliationTypeCode;
29  	protected String campusCode;
30  
31  	
32  	/**
33  	 * constructs an empty {@link KimEntityAffiliationInfo}
34  	 */
35  	public KimEntityAffiliationInfo() {
36  		super();
37  		active = true;
38  	}
39  	
40  	/**
41  	 * constructs a {@link KimEntityAffiliationInfo} derived from the given {@link KimEntityAffiliation} 
42  	 */
43  	public KimEntityAffiliationInfo( KimEntityAffiliation aff ) {
44  		this();
45  		if ( aff != null ) {
46  			entityAffiliationId = aff.getEntityAffiliationId();
47  			affiliationTypeCode = aff.getAffiliationTypeCode();
48  			campusCode = aff.getCampusCode();
49  			dflt = aff.isDefault();
50  			active = aff.isActive();
51  		}
52  	}
53  	
54  	/**
55  	 * {@inheritDoc} 
56  	 * @see org.kuali.rice.kim.bo.entity.KimEntityAffiliation#getAffiliationTypeCode()
57  	 */
58  	public String getAffiliationTypeCode() {
59  		return affiliationTypeCode;
60  	}
61  
62  	/**
63  	 * {@inheritDoc} 
64  	 * @see org.kuali.rice.kim.bo.entity.KimEntityAffiliation#getCampusCode()
65  	 */
66  	public String getCampusCode() {
67  		return campusCode;
68  	}
69  
70  	/**
71  	 * {@inheritDoc} 
72  	 * @see org.kuali.rice.kim.bo.entity.KimEntityAffiliation#getEntityAffiliationId()
73  	 */
74  	public String getEntityAffiliationId() {
75  		return entityAffiliationId;
76  	}
77  
78  	public void setAffiliationTypeCode(String affiliationTypeCode) {
79  		this.affiliationTypeCode = affiliationTypeCode;
80  	}
81  
82  	public void setCampusCode(String campusCode) {
83  		this.campusCode = campusCode;
84  	}
85  
86  	public void setEntityAffiliationId(String entityAffiliationId) {
87  		this.entityAffiliationId = entityAffiliationId;
88  	}
89  
90  }