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.KimEntityExternalIdentifier;
19  
20  /**
21   * @author Kuali Rice Team (rice.collab@kuali.org)
22   */
23  public class KimEntityExternalIdentifierInfo extends KimInfoBase implements KimEntityExternalIdentifier {
24  
25  	private static final long serialVersionUID = 1L;
26  
27  	protected String entityExternalIdentifierId;
28  	protected String externalIdentifierTypeCode;
29  	protected String externalId;
30  	
31  	/**
32  	 * 
33  	 */
34  	public KimEntityExternalIdentifierInfo() {
35  		super();
36  	}
37  	
38  	/**
39  	 * 
40  	 */
41  	public KimEntityExternalIdentifierInfo( KimEntityExternalIdentifier eid ) {
42  		this();
43  		if ( eid != null ) {
44  			entityExternalIdentifierId = eid.getEntityExternalIdentifierId();
45  			externalIdentifierTypeCode = eid.getExternalIdentifierTypeCode();
46  			externalId = eid.getExternalId();
47  		}
48  	}
49  
50  	/**
51  	 * {@inheritDoc} 
52  	 * @see org.kuali.rice.kim.bo.entity.KimEntityExternalIdentifier#getEntityExternalIdentifierId()
53  	 */
54  	public String getEntityExternalIdentifierId() {
55  		return entityExternalIdentifierId;
56  	}
57  
58  	/**
59  	 * {@inheritDoc} 
60  	 * @see org.kuali.rice.kim.bo.entity.KimEntityExternalIdentifier#getExternalId()
61  	 */
62  	public String getExternalId() {
63  		return externalId;
64  	}
65  
66  	/**
67  	 * {@inheritDoc} 
68  	 * @see org.kuali.rice.kim.bo.entity.KimEntityExternalIdentifier#getExternalIdentifierTypeCode()
69  	 */
70  	public String getExternalIdentifierTypeCode() {
71  		return externalIdentifierTypeCode;
72  	}
73  
74  	public void setExternalId(String externalId) {
75  		this.externalId = externalId;
76  	}
77  
78  	public void setExternalIdentifierTypeCode(String externalIdentifierTypeCode) {
79  		this.externalIdentifierTypeCode = externalIdentifierTypeCode;
80  	}
81  
82  	public void setEntityExternalIdentifierId(String entityExternalIdentifierId) {
83  		this.entityExternalIdentifierId = entityExternalIdentifierId;
84  	}
85  
86  }