| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| KimEntityExternalIdentifierInfo |
|
| 1.125;1.125 |
| 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 | 0 | super(); |
| 36 | 0 | } |
| 37 | ||
| 38 | /** | |
| 39 | * | |
| 40 | */ | |
| 41 | public KimEntityExternalIdentifierInfo( KimEntityExternalIdentifier eid ) { | |
| 42 | 0 | this(); |
| 43 | 0 | if ( eid != null ) { |
| 44 | 0 | entityExternalIdentifierId = eid.getEntityExternalIdentifierId(); |
| 45 | 0 | externalIdentifierTypeCode = eid.getExternalIdentifierTypeCode(); |
| 46 | 0 | externalId = eid.getExternalId(); |
| 47 | } | |
| 48 | 0 | } |
| 49 | ||
| 50 | /** | |
| 51 | * {@inheritDoc} | |
| 52 | * @see org.kuali.rice.kim.bo.entity.KimEntityExternalIdentifier#getEntityExternalIdentifierId() | |
| 53 | */ | |
| 54 | public String getEntityExternalIdentifierId() { | |
| 55 | 0 | return entityExternalIdentifierId; |
| 56 | } | |
| 57 | ||
| 58 | /** | |
| 59 | * {@inheritDoc} | |
| 60 | * @see org.kuali.rice.kim.bo.entity.KimEntityExternalIdentifier#getExternalId() | |
| 61 | */ | |
| 62 | public String getExternalId() { | |
| 63 | 0 | return externalId; |
| 64 | } | |
| 65 | ||
| 66 | /** | |
| 67 | * {@inheritDoc} | |
| 68 | * @see org.kuali.rice.kim.bo.entity.KimEntityExternalIdentifier#getExternalIdentifierTypeCode() | |
| 69 | */ | |
| 70 | public String getExternalIdentifierTypeCode() { | |
| 71 | 0 | return externalIdentifierTypeCode; |
| 72 | } | |
| 73 | ||
| 74 | public void setExternalId(String externalId) { | |
| 75 | 0 | this.externalId = externalId; |
| 76 | 0 | } |
| 77 | ||
| 78 | public void setExternalIdentifierTypeCode(String externalIdentifierTypeCode) { | |
| 79 | 0 | this.externalIdentifierTypeCode = externalIdentifierTypeCode; |
| 80 | 0 | } |
| 81 | ||
| 82 | public void setEntityExternalIdentifierId(String entityExternalIdentifierId) { | |
| 83 | 0 | this.entityExternalIdentifierId = entityExternalIdentifierId; |
| 84 | 0 | } |
| 85 | ||
| 86 | } |