| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
package org.kuali.rice.kim.bo.entity.dto; |
| 17 |
|
|
| 18 |
|
import java.util.ArrayList; |
| 19 |
|
import java.util.List; |
| 20 |
|
|
| 21 |
|
import org.kuali.rice.kim.bo.entity.KimEntityAffiliation; |
| 22 |
|
import org.kuali.rice.kim.bo.entity.KimEntityEmploymentInformation; |
| 23 |
|
import org.kuali.rice.kim.bo.entity.KimEntityName; |
| 24 |
|
|
| 25 |
|
|
| 26 |
|
|
| 27 |
|
|
| 28 |
|
@author |
| 29 |
|
|
| 30 |
|
|
|
|
|
| 0% |
Uncovered Elements: 80 (80) |
Complexity: 33 |
Complexity Density: 0.92 |
|
| 31 |
|
public class KimEntityDefaultInfo extends KimInactivatableInfo { |
| 32 |
|
|
| 33 |
|
private static final long serialVersionUID = 7930630152792502380L; |
| 34 |
|
protected String entityId; |
| 35 |
|
protected KimEntityNameInfo defaultName; |
| 36 |
|
protected List<KimPrincipalInfo> principals; |
| 37 |
|
protected List<KimEntityEntityTypeDefaultInfo> entityTypes; |
| 38 |
|
protected List<KimEntityAffiliationInfo> affiliations; |
| 39 |
|
protected KimEntityAffiliationInfo defaultAffiliation; |
| 40 |
|
protected KimEntityEmploymentInformationInfo primaryEmployment; |
| 41 |
|
protected List<KimEntityExternalIdentifierInfo> externalIdentifiers; |
| 42 |
|
protected KimEntityPrivacyPreferencesInfo privacyPreferences; |
| 43 |
|
|
| 44 |
|
|
| 45 |
|
@link |
| 46 |
|
@return@link |
| 47 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 48 |
0
|
public String getEntityId() {... |
| 49 |
0
|
return this.entityId; |
| 50 |
|
} |
| 51 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 52 |
0
|
public void setEntityId(String entityId) {... |
| 53 |
0
|
this.entityId = entityId; |
| 54 |
|
} |
| 55 |
|
|
| 56 |
|
|
| 57 |
|
@link |
| 58 |
|
@return@link |
| 59 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 60 |
0
|
public KimEntityNameInfo getDefaultName() {... |
| 61 |
0
|
return defaultName; |
| 62 |
|
} |
| 63 |
|
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
| 64 |
0
|
public void setDefaultName(KimEntityName defaultName) {... |
| 65 |
0
|
if (defaultName instanceof KimEntityNameInfo) { |
| 66 |
0
|
this.defaultName = (KimEntityNameInfo) defaultName; |
| 67 |
|
} |
| 68 |
|
else { |
| 69 |
0
|
this.defaultName = new KimEntityNameInfo(defaultName); |
| 70 |
|
} |
| 71 |
|
} |
| 72 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 73 |
0
|
public void setDefaultName(KimEntityNameInfo defaultName) {... |
| 74 |
0
|
this.defaultName = defaultName; |
| 75 |
|
} |
| 76 |
|
|
| 77 |
|
|
| 78 |
|
@link@link |
| 79 |
|
@return@link@link |
| 80 |
|
|
| 81 |
|
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 2 |
Complexity Density: 2 |
|
| 82 |
0
|
public List<KimEntityEntityTypeDefaultInfo> getEntityTypes() {... |
| 83 |
|
|
| 84 |
0
|
return (entityTypes != null) ? entityTypes : (entityTypes = new ArrayList<KimEntityEntityTypeDefaultInfo>()); |
| 85 |
|
} |
| 86 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 87 |
0
|
public void setEntityTypes(List<KimEntityEntityTypeDefaultInfo> entityTypes) {... |
| 88 |
0
|
this.entityTypes = entityTypes; |
| 89 |
|
} |
| 90 |
|
|
| 91 |
|
|
| 92 |
|
@link@link |
| 93 |
|
@return@link@link |
| 94 |
|
|
| 95 |
|
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 2 |
Complexity Density: 2 |
|
| 96 |
0
|
public List<KimEntityAffiliationInfo> getAffiliations() {... |
| 97 |
|
|
| 98 |
0
|
return (affiliations != null) ? affiliations : (affiliations = new ArrayList<KimEntityAffiliationInfo>()); |
| 99 |
|
} |
| 100 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 101 |
0
|
public void setAffiliations(List<KimEntityAffiliationInfo> affiliations) {... |
| 102 |
0
|
this.affiliations = affiliations; |
| 103 |
|
} |
| 104 |
|
|
| 105 |
|
|
| 106 |
|
@link |
| 107 |
|
@return@link |
| 108 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 109 |
0
|
public KimEntityAffiliationInfo getDefaultAffiliation() {... |
| 110 |
0
|
return defaultAffiliation; |
| 111 |
|
} |
| 112 |
|
|
|
|
|
| 0% |
Uncovered Elements: 8 (8) |
Complexity: 3 |
Complexity Density: 0.75 |
|
| 113 |
0
|
public void setDefaultAffiliation(KimEntityAffiliation defaultAffiliation) {... |
| 114 |
0
|
if (defaultAffiliation != null) { |
| 115 |
0
|
if (defaultAffiliation instanceof KimEntityAffiliationInfo) { |
| 116 |
0
|
this.defaultAffiliation = (KimEntityAffiliationInfo) defaultAffiliation; |
| 117 |
|
} |
| 118 |
|
else { |
| 119 |
0
|
this.defaultAffiliation = new KimEntityAffiliationInfo(defaultAffiliation); |
| 120 |
|
} |
| 121 |
|
} |
| 122 |
|
} |
| 123 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 124 |
0
|
public void setDefaultAffiliation(KimEntityAffiliationInfo defaultAffiliation) {... |
| 125 |
0
|
this.defaultAffiliation = defaultAffiliation; |
| 126 |
|
} |
| 127 |
|
|
| 128 |
|
|
| 129 |
|
@link |
| 130 |
|
@return@link |
| 131 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 132 |
0
|
public KimEntityEmploymentInformationInfo getPrimaryEmployment() {... |
| 133 |
0
|
return primaryEmployment; |
| 134 |
|
} |
| 135 |
|
|
|
|
|
| 0% |
Uncovered Elements: 8 (8) |
Complexity: 3 |
Complexity Density: 0.75 |
|
| 136 |
0
|
public void setPrimaryEmployment(KimEntityEmploymentInformation primaryEmployment) {... |
| 137 |
0
|
if (primaryEmployment != null) { |
| 138 |
0
|
if (primaryEmployment instanceof KimEntityEmploymentInformationInfo) { |
| 139 |
0
|
this.primaryEmployment = (KimEntityEmploymentInformationInfo) primaryEmployment; |
| 140 |
|
} |
| 141 |
|
else { |
| 142 |
0
|
this.primaryEmployment = new KimEntityEmploymentInformationInfo(primaryEmployment); |
| 143 |
|
} |
| 144 |
|
} |
| 145 |
|
} |
| 146 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 147 |
0
|
public void setPrimaryEmployment(KimEntityEmploymentInformationInfo primaryEmployment) {... |
| 148 |
0
|
this.primaryEmployment = primaryEmployment; |
| 149 |
|
} |
| 150 |
|
|
| 151 |
|
|
| 152 |
|
@link@link |
| 153 |
|
@return@link@link |
| 154 |
|
|
| 155 |
|
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 2 |
Complexity Density: 2 |
|
| 156 |
0
|
public List<KimEntityExternalIdentifierInfo> getExternalIdentifiers() {... |
| 157 |
|
|
| 158 |
0
|
return (externalIdentifiers != null) ? |
| 159 |
|
externalIdentifiers : (externalIdentifiers = new ArrayList<KimEntityExternalIdentifierInfo>()); |
| 160 |
|
} |
| 161 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 162 |
0
|
public void setExternalIdentifiers(... |
| 163 |
|
List<KimEntityExternalIdentifierInfo> externalIdentifiers) { |
| 164 |
0
|
this.externalIdentifiers = externalIdentifiers; |
| 165 |
|
} |
| 166 |
|
|
| 167 |
|
|
| 168 |
|
@link@link |
| 169 |
|
@return@link@link |
| 170 |
|
|
| 171 |
|
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 2 |
Complexity Density: 2 |
|
| 172 |
0
|
public List<KimPrincipalInfo> getPrincipals() {... |
| 173 |
|
|
| 174 |
0
|
return (principals != null) ? principals : (principals = new ArrayList<KimPrincipalInfo>()); |
| 175 |
|
} |
| 176 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 177 |
0
|
public void setPrincipals(List<KimPrincipalInfo> principals) {... |
| 178 |
0
|
this.principals = principals; |
| 179 |
|
} |
| 180 |
|
|
| 181 |
|
|
| 182 |
|
@link@link |
| 183 |
|
@return@link@link |
| 184 |
|
|
| 185 |
|
|
|
|
|
| 0% |
Uncovered Elements: 11 (11) |
Complexity: 3 |
Complexity Density: 0.43 |
|
| 186 |
0
|
public KimEntityEntityTypeDefaultInfo getEntityType(String entityTypeCode) {... |
| 187 |
0
|
KimEntityEntityTypeDefaultInfo result = null; |
| 188 |
0
|
if (entityTypes == null) { |
| 189 |
0
|
entityTypes = new ArrayList<KimEntityEntityTypeDefaultInfo>(); |
| 190 |
|
} |
| 191 |
0
|
for (KimEntityEntityTypeDefaultInfo entType : entityTypes) { |
| 192 |
0
|
if (entType.getEntityTypeCode().equals(entityTypeCode)) { |
| 193 |
0
|
result = entType; |
| 194 |
|
} |
| 195 |
|
} |
| 196 |
0
|
return result; |
| 197 |
|
} |
| 198 |
|
|
| 199 |
|
|
| 200 |
|
@link |
| 201 |
|
@return@link |
| 202 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 203 |
0
|
public KimEntityPrivacyPreferencesInfo getPrivacyPreferences() {... |
| 204 |
0
|
return privacyPreferences; |
| 205 |
|
} |
| 206 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 207 |
0
|
public void setPrivacyPreferences(KimEntityPrivacyPreferencesInfo privacyPreferences) {... |
| 208 |
0
|
this.privacyPreferences = privacyPreferences; |
| 209 |
|
} |
| 210 |
|
|
| 211 |
|
} |