Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
KimEntityAffiliationInfo |
|
| 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.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 | 0 | super(); |
37 | 0 | active = true; |
38 | 0 | } |
39 | ||
40 | /** | |
41 | * constructs a {@link KimEntityAffiliationInfo} derived from the given {@link KimEntityAffiliation} | |
42 | */ | |
43 | public KimEntityAffiliationInfo( KimEntityAffiliation aff ) { | |
44 | 0 | this(); |
45 | 0 | if ( aff != null ) { |
46 | 0 | entityAffiliationId = aff.getEntityAffiliationId(); |
47 | 0 | affiliationTypeCode = aff.getAffiliationTypeCode(); |
48 | 0 | campusCode = aff.getCampusCode(); |
49 | 0 | defaultValue = aff.isDefaultValue(); |
50 | 0 | active = aff.isActive(); |
51 | } | |
52 | 0 | } |
53 | ||
54 | /** | |
55 | * {@inheritDoc} | |
56 | * @see org.kuali.rice.kim.bo.entity.KimEntityAffiliation#getAffiliationTypeCode() | |
57 | */ | |
58 | public String getAffiliationTypeCode() { | |
59 | 0 | return affiliationTypeCode; |
60 | } | |
61 | ||
62 | /** | |
63 | * {@inheritDoc} | |
64 | * @see org.kuali.rice.kim.bo.entity.KimEntityAffiliation#getCampusCode() | |
65 | */ | |
66 | public String getCampusCode() { | |
67 | 0 | return campusCode; |
68 | } | |
69 | ||
70 | /** | |
71 | * {@inheritDoc} | |
72 | * @see org.kuali.rice.kim.bo.entity.KimEntityAffiliation#getEntityAffiliationId() | |
73 | */ | |
74 | public String getEntityAffiliationId() { | |
75 | 0 | return entityAffiliationId; |
76 | } | |
77 | ||
78 | public void setAffiliationTypeCode(String affiliationTypeCode) { | |
79 | 0 | this.affiliationTypeCode = affiliationTypeCode; |
80 | 0 | } |
81 | ||
82 | public void setCampusCode(String campusCode) { | |
83 | 0 | this.campusCode = campusCode; |
84 | 0 | } |
85 | ||
86 | public void setEntityAffiliationId(String entityAffiliationId) { | |
87 | 0 | this.entityAffiliationId = entityAffiliationId; |
88 | 0 | } |
89 | ||
90 | } |