| 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.KimEntity; |
| 22 |
|
import org.kuali.rice.kim.bo.entity.KimEntityAffiliation; |
| 23 |
|
import org.kuali.rice.kim.bo.entity.KimEntityCitizenship; |
| 24 |
|
import org.kuali.rice.kim.bo.entity.KimEntityEmploymentInformation; |
| 25 |
|
import org.kuali.rice.kim.bo.entity.KimEntityEntityType; |
| 26 |
|
import org.kuali.rice.kim.bo.entity.KimEntityEthnicity; |
| 27 |
|
import org.kuali.rice.kim.bo.entity.KimEntityExternalIdentifier; |
| 28 |
|
import org.kuali.rice.kim.bo.entity.KimEntityName; |
| 29 |
|
import org.kuali.rice.kim.bo.entity.KimEntityResidency; |
| 30 |
|
import org.kuali.rice.kim.bo.entity.KimEntityVisa; |
| 31 |
|
import org.kuali.rice.kim.bo.entity.KimPrincipal; |
| 32 |
|
|
| 33 |
|
|
| 34 |
|
|
| 35 |
|
|
| 36 |
|
|
| 37 |
|
@author |
| 38 |
|
|
|
|
|
| 0% |
Uncovered Elements: 200 (200) |
Complexity: 71 |
Complexity Density: 0.7 |
|
| 39 |
|
public class KimEntityInfo extends KimInactivatableInfo implements KimEntity { |
| 40 |
|
|
| 41 |
|
private static final long serialVersionUID = 1L; |
| 42 |
|
|
| 43 |
|
private List<KimEntityAffiliationInfo> affiliations; |
| 44 |
|
private KimEntityBioDemographicsInfo bioDemographics; |
| 45 |
|
private List<KimEntityCitizenshipInfo> citizenships; |
| 46 |
|
private List<KimEntityEmploymentInformationInfo> employmentInformation; |
| 47 |
|
private String entityId; |
| 48 |
|
private List<KimEntityEntityTypeInfo> entityTypes; |
| 49 |
|
private List<KimEntityExternalIdentifierInfo> externalIdentifiers; |
| 50 |
|
private List<KimEntityNameInfo> names; |
| 51 |
|
private List<KimPrincipalInfo> principals; |
| 52 |
|
private KimEntityPrivacyPreferencesInfo privacyPreferences; |
| 53 |
|
private List<KimEntityEthnicityInfo> ethnicities; |
| 54 |
|
private List<KimEntityResidencyInfo> residencies; |
| 55 |
|
private List<KimEntityVisaInfo> visas; |
| 56 |
|
|
| 57 |
|
|
| 58 |
|
|
| 59 |
|
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
| 60 |
0
|
public KimEntityInfo() {... |
| 61 |
0
|
super(); |
| 62 |
0
|
active = true; |
| 63 |
|
} |
| 64 |
|
|
| 65 |
|
|
| 66 |
|
@link |
| 67 |
|
|
| 68 |
|
@param@link |
| 69 |
|
|
| 70 |
|
|
|
|
|
| 0% |
Uncovered Elements: 24 (24) |
Complexity: 4 |
Complexity Density: 0.22 |
|
| 71 |
0
|
public KimEntityInfo(KimEntity entity) {... |
| 72 |
0
|
this(); |
| 73 |
|
|
| 74 |
0
|
if (entity != null) { |
| 75 |
|
|
| 76 |
0
|
entityId = entity.getEntityId(); |
| 77 |
0
|
active = entity.isActive(); |
| 78 |
|
|
| 79 |
|
|
| 80 |
|
|
| 81 |
|
|
| 82 |
0
|
principals = deriveCollection(entity.getPrincipals(), new XForm<KimPrincipal, KimPrincipalInfo>() { |
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 83 |
0
|
public KimPrincipalInfo xform(KimPrincipal source) {... |
| 84 |
0
|
return new KimPrincipalInfo(source); |
| 85 |
|
} |
| 86 |
|
}); |
| 87 |
|
|
| 88 |
0
|
if (entity.getBioDemographics() != null) { |
| 89 |
0
|
bioDemographics = new KimEntityBioDemographicsInfo(entity.getBioDemographics()); |
| 90 |
|
} |
| 91 |
|
|
| 92 |
0
|
if (entity.getPrivacyPreferences() != null) { |
| 93 |
0
|
privacyPreferences = new KimEntityPrivacyPreferencesInfo(entity.getPrivacyPreferences()); |
| 94 |
|
} |
| 95 |
|
|
| 96 |
0
|
names = deriveCollection(entity.getNames(), new XForm<KimEntityName, KimEntityNameInfo>() { |
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 97 |
0
|
public KimEntityNameInfo xform(KimEntityName source) {... |
| 98 |
0
|
return new KimEntityNameInfo(source); |
| 99 |
|
} |
| 100 |
|
}); |
| 101 |
|
|
| 102 |
0
|
entityTypes = deriveCollection(entity.getEntityTypes(), new XForm<KimEntityEntityType, KimEntityEntityTypeInfo>() { |
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 103 |
0
|
public KimEntityEntityTypeInfo xform(KimEntityEntityType source) {... |
| 104 |
0
|
return new KimEntityEntityTypeInfo(source); |
| 105 |
|
} |
| 106 |
|
}); |
| 107 |
|
|
| 108 |
0
|
affiliations = deriveCollection(entity.getAffiliations(), new XForm<KimEntityAffiliation, KimEntityAffiliationInfo>() { |
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 109 |
0
|
public KimEntityAffiliationInfo xform(KimEntityAffiliation source) {... |
| 110 |
0
|
return new KimEntityAffiliationInfo(source); |
| 111 |
|
} |
| 112 |
|
}); |
| 113 |
|
|
| 114 |
0
|
employmentInformation = deriveCollection(entity.getEmploymentInformation(), |
| 115 |
|
new XForm<KimEntityEmploymentInformation, KimEntityEmploymentInformationInfo>() { |
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 116 |
0
|
public KimEntityEmploymentInformationInfo xform(KimEntityEmploymentInformation source) {... |
| 117 |
0
|
return new KimEntityEmploymentInformationInfo(source); |
| 118 |
|
} |
| 119 |
|
}); |
| 120 |
|
|
| 121 |
0
|
externalIdentifiers = deriveCollection(entity.getExternalIdentifiers(), |
| 122 |
|
new XForm<KimEntityExternalIdentifier, KimEntityExternalIdentifierInfo>() { |
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 123 |
0
|
public KimEntityExternalIdentifierInfo xform(KimEntityExternalIdentifier source) {... |
| 124 |
0
|
return new KimEntityExternalIdentifierInfo(source); |
| 125 |
|
} |
| 126 |
|
}); |
| 127 |
|
|
| 128 |
0
|
citizenships = deriveCollection(entity.getCitizenships(), new XForm<KimEntityCitizenship, KimEntityCitizenshipInfo>() { |
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 129 |
0
|
public KimEntityCitizenshipInfo xform(KimEntityCitizenship source) {... |
| 130 |
0
|
return new KimEntityCitizenshipInfo(source); |
| 131 |
|
} |
| 132 |
|
}); |
| 133 |
|
|
| 134 |
0
|
ethnicities = deriveCollection(entity.getEthnicities(), new XForm<KimEntityEthnicity, KimEntityEthnicityInfo>() { |
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 135 |
0
|
public KimEntityEthnicityInfo xform(KimEntityEthnicity source) {... |
| 136 |
0
|
return new KimEntityEthnicityInfo(source); |
| 137 |
|
} |
| 138 |
|
}); |
| 139 |
|
|
| 140 |
0
|
residencies = deriveCollection(entity.getResidencies(), new XForm<KimEntityResidency, KimEntityResidencyInfo>() { |
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 141 |
0
|
public KimEntityResidencyInfo xform(KimEntityResidency source) {... |
| 142 |
0
|
return new KimEntityResidencyInfo(source); |
| 143 |
|
} |
| 144 |
|
}); |
| 145 |
|
|
| 146 |
0
|
visas = deriveCollection(entity.getVisas(), new XForm<KimEntityVisa, KimEntityVisaInfo>() { |
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 147 |
0
|
public KimEntityVisaInfo xform(KimEntityVisa source) {... |
| 148 |
0
|
return new KimEntityVisaInfo(source); |
| 149 |
|
} |
| 150 |
|
}); |
| 151 |
|
} |
| 152 |
|
} |
| 153 |
|
|
| 154 |
|
|
| 155 |
|
@inheritDoc |
| 156 |
|
@see |
| 157 |
|
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 2 |
Complexity Density: 2 |
|
| 158 |
0
|
public List<KimEntityAffiliationInfo> getAffiliations() {... |
| 159 |
|
|
| 160 |
0
|
return (affiliations != null) ? affiliations : (affiliations = new ArrayList<KimEntityAffiliationInfo>()); |
| 161 |
|
|
| 162 |
|
} |
| 163 |
|
|
| 164 |
|
|
| 165 |
|
@link@link |
| 166 |
|
|
| 167 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 168 |
0
|
public void setAffiliations(List<KimEntityAffiliationInfo> affiliations) {... |
| 169 |
0
|
this.affiliations = affiliations; |
| 170 |
|
} |
| 171 |
|
|
| 172 |
|
|
| 173 |
|
@inheritDoc |
| 174 |
|
@see |
| 175 |
|
|
|
|
|
| 0% |
Uncovered Elements: 15 (15) |
Complexity: 4 |
Complexity Density: 0.44 |
|
| 176 |
0
|
public KimEntityAffiliationInfo getDefaultAffiliation() {... |
| 177 |
0
|
KimEntityAffiliationInfo result = null; |
| 178 |
0
|
if (affiliations != null) |
| 179 |
0
|
for (KimEntityAffiliationInfo affiliation : affiliations) { |
| 180 |
0
|
if (result == null) { |
| 181 |
0
|
result = affiliation; |
| 182 |
|
} |
| 183 |
0
|
if (affiliation.isDefaultValue()) { |
| 184 |
0
|
result = affiliation; |
| 185 |
0
|
break; |
| 186 |
|
} |
| 187 |
|
} |
| 188 |
0
|
return result; |
| 189 |
|
} |
| 190 |
|
|
| 191 |
|
|
| 192 |
|
@inheritDoc |
| 193 |
|
@see |
| 194 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 195 |
0
|
public KimEntityBioDemographicsInfo getBioDemographics() {... |
| 196 |
0
|
return bioDemographics; |
| 197 |
|
} |
| 198 |
|
|
| 199 |
|
|
| 200 |
|
@link |
| 201 |
|
@link |
| 202 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 203 |
0
|
public void setBioDemographics(KimEntityBioDemographicsInfo bioDemographics) {... |
| 204 |
0
|
this.bioDemographics = bioDemographics; |
| 205 |
|
} |
| 206 |
|
|
| 207 |
|
|
| 208 |
|
@inheritDoc |
| 209 |
|
@see |
| 210 |
|
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 2 |
Complexity Density: 2 |
|
| 211 |
0
|
public List<KimEntityCitizenshipInfo> getCitizenships() {... |
| 212 |
|
|
| 213 |
0
|
return (citizenships != null) ? citizenships : (citizenships = new ArrayList<KimEntityCitizenshipInfo>()); |
| 214 |
|
|
| 215 |
|
} |
| 216 |
|
|
| 217 |
|
|
| 218 |
|
@link |
| 219 |
|
@link |
| 220 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 221 |
0
|
public void setCitizenships(List<KimEntityCitizenshipInfo> citizenships) {... |
| 222 |
0
|
this.citizenships = citizenships; |
| 223 |
|
} |
| 224 |
|
|
| 225 |
|
|
| 226 |
|
@inheritDoc |
| 227 |
|
@see |
| 228 |
|
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 2 |
Complexity Density: 2 |
|
| 229 |
0
|
public List<KimEntityEmploymentInformationInfo> getEmploymentInformation() {... |
| 230 |
|
|
| 231 |
0
|
return (employmentInformation != null) ? employmentInformation |
| 232 |
|
: (employmentInformation = new ArrayList<KimEntityEmploymentInformationInfo>()); |
| 233 |
|
} |
| 234 |
|
|
| 235 |
|
|
| 236 |
|
@link |
| 237 |
|
@link |
| 238 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 239 |
0
|
public void setEmploymentInformation(List<KimEntityEmploymentInformationInfo> employmentInformation) {... |
| 240 |
0
|
this.employmentInformation = employmentInformation; |
| 241 |
|
} |
| 242 |
|
|
| 243 |
|
|
| 244 |
|
@inheritDoc |
| 245 |
|
@see |
| 246 |
|
|
|
|
|
| 0% |
Uncovered Elements: 10 (10) |
Complexity: 3 |
Complexity Density: 0.5 |
|
| 247 |
0
|
public KimEntityEmploymentInformationInfo getPrimaryEmployment() {... |
| 248 |
0
|
KimEntityEmploymentInformationInfo result = null; |
| 249 |
0
|
if (employmentInformation != null) |
| 250 |
0
|
for (KimEntityEmploymentInformationInfo employment : employmentInformation) { |
| 251 |
0
|
if (employment.isPrimary()) { |
| 252 |
0
|
result = employment; |
| 253 |
|
} |
| 254 |
|
} |
| 255 |
0
|
return result; |
| 256 |
|
} |
| 257 |
|
|
| 258 |
|
|
| 259 |
|
@inheritDoc |
| 260 |
|
@see |
| 261 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 262 |
0
|
public String getEntityId() {... |
| 263 |
0
|
return entityId; |
| 264 |
|
} |
| 265 |
|
|
| 266 |
|
|
| 267 |
|
@link |
| 268 |
|
@link |
| 269 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 270 |
0
|
public void setEntityId(String entityId) {... |
| 271 |
0
|
this.entityId = entityId; |
| 272 |
|
} |
| 273 |
|
|
| 274 |
|
|
| 275 |
|
@inheritDoc |
| 276 |
|
@see |
| 277 |
|
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 2 |
Complexity Density: 2 |
|
| 278 |
0
|
public List<KimEntityEntityTypeInfo> getEntityTypes() {... |
| 279 |
|
|
| 280 |
0
|
return (entityTypes != null) ? entityTypes : (entityTypes = new ArrayList<KimEntityEntityTypeInfo>()); |
| 281 |
|
} |
| 282 |
|
|
| 283 |
|
|
| 284 |
|
@link |
| 285 |
|
@link |
| 286 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 287 |
0
|
public void setEntityTypes(List<KimEntityEntityTypeInfo> entityTypes) {... |
| 288 |
0
|
this.entityTypes = entityTypes; |
| 289 |
|
} |
| 290 |
|
|
| 291 |
|
|
| 292 |
|
@inheritDoc |
| 293 |
|
@see |
| 294 |
|
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 2 |
Complexity Density: 2 |
|
| 295 |
0
|
public List<KimEntityExternalIdentifierInfo> getExternalIdentifiers() {... |
| 296 |
|
|
| 297 |
0
|
return (externalIdentifiers != null) ? externalIdentifiers |
| 298 |
|
: (externalIdentifiers = new ArrayList<KimEntityExternalIdentifierInfo>()); |
| 299 |
|
} |
| 300 |
|
|
| 301 |
|
|
| 302 |
|
@link |
| 303 |
|
@link |
| 304 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 305 |
0
|
public void setExternalIdentifiers(List<KimEntityExternalIdentifierInfo> externalIdentifiers) {... |
| 306 |
0
|
this.externalIdentifiers = externalIdentifiers; |
| 307 |
|
} |
| 308 |
|
|
| 309 |
|
|
| 310 |
|
@inheritDoc |
| 311 |
|
@see |
| 312 |
|
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 2 |
Complexity Density: 2 |
|
| 313 |
0
|
public List<KimEntityNameInfo> getNames() {... |
| 314 |
|
|
| 315 |
0
|
return (names != null) ? names : (names = new ArrayList<KimEntityNameInfo>()); |
| 316 |
|
} |
| 317 |
|
|
| 318 |
|
|
| 319 |
|
@link |
| 320 |
|
@link |
| 321 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 322 |
0
|
public void setNames(List<KimEntityNameInfo> names) {... |
| 323 |
0
|
this.names = names; |
| 324 |
|
} |
| 325 |
|
|
| 326 |
|
|
| 327 |
|
@inheritDoc |
| 328 |
|
@see |
| 329 |
|
|
|
|
|
| 0% |
Uncovered Elements: 12 (12) |
Complexity: 3 |
Complexity Density: 0.38 |
|
| 330 |
0
|
public KimEntityNameInfo getDefaultName() {... |
| 331 |
0
|
KimEntityNameInfo result = null; |
| 332 |
0
|
for (KimEntityNameInfo name : this.getNames()) { |
| 333 |
0
|
if (result == null) { |
| 334 |
0
|
result = name; |
| 335 |
|
} |
| 336 |
0
|
if (name.isDefaultValue()) { |
| 337 |
0
|
result = name; |
| 338 |
0
|
break; |
| 339 |
|
} |
| 340 |
|
} |
| 341 |
0
|
return result; |
| 342 |
|
} |
| 343 |
|
|
| 344 |
|
|
| 345 |
|
@inheritDoc |
| 346 |
|
@see |
| 347 |
|
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 2 |
Complexity Density: 2 |
|
| 348 |
0
|
public List<KimPrincipalInfo> getPrincipals() {... |
| 349 |
|
|
| 350 |
0
|
return (principals != null) ? principals : (principals = new ArrayList<KimPrincipalInfo>()); |
| 351 |
|
} |
| 352 |
|
|
| 353 |
|
|
| 354 |
|
@link |
| 355 |
|
@link |
| 356 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 357 |
0
|
public void setPrincipals(List<KimPrincipalInfo> principals) {... |
| 358 |
0
|
this.principals = principals; |
| 359 |
|
} |
| 360 |
|
|
| 361 |
|
|
| 362 |
|
@inheritDoc |
| 363 |
|
@see |
| 364 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 365 |
0
|
public KimEntityPrivacyPreferencesInfo getPrivacyPreferences() {... |
| 366 |
0
|
return privacyPreferences; |
| 367 |
|
} |
| 368 |
|
|
| 369 |
|
|
| 370 |
|
@link |
| 371 |
|
@link |
| 372 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 373 |
0
|
public void setPrivacyPreferences(KimEntityPrivacyPreferencesInfo privacyPreferences) {... |
| 374 |
0
|
this.privacyPreferences = privacyPreferences; |
| 375 |
|
} |
| 376 |
|
|
| 377 |
|
|
| 378 |
|
@inheritDoc |
| 379 |
|
@see |
| 380 |
|
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 2 |
Complexity Density: 2 |
|
| 381 |
0
|
public List<KimEntityEthnicityInfo> getEthnicities() {... |
| 382 |
|
|
| 383 |
0
|
return (ethnicities != null) ? ethnicities : (ethnicities = new ArrayList<KimEntityEthnicityInfo>()); |
| 384 |
|
} |
| 385 |
|
|
| 386 |
|
|
| 387 |
|
@link |
| 388 |
|
@link |
| 389 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 390 |
0
|
public void setEthnicities(List<KimEntityEthnicityInfo> ethnicities) {... |
| 391 |
0
|
this.ethnicities = ethnicities; |
| 392 |
|
} |
| 393 |
|
|
| 394 |
|
|
| 395 |
|
@inheritDoc |
| 396 |
|
@see |
| 397 |
|
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 2 |
Complexity Density: 2 |
|
| 398 |
0
|
public List<KimEntityResidencyInfo> getResidencies() {... |
| 399 |
|
|
| 400 |
0
|
return (residencies != null) ? residencies : (residencies = new ArrayList<KimEntityResidencyInfo>()); |
| 401 |
|
} |
| 402 |
|
|
| 403 |
|
|
| 404 |
|
@link |
| 405 |
|
@link |
| 406 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 407 |
0
|
public void setResidencies(List<KimEntityResidencyInfo> residencies) {... |
| 408 |
0
|
this.residencies = residencies; |
| 409 |
|
} |
| 410 |
|
|
| 411 |
|
|
| 412 |
|
@inheritDoc |
| 413 |
|
@see |
| 414 |
|
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 2 |
Complexity Density: 2 |
|
| 415 |
0
|
public List<KimEntityVisaInfo> getVisas() {... |
| 416 |
|
|
| 417 |
0
|
return (visas != null) ? visas : (visas = new ArrayList<KimEntityVisaInfo>()); |
| 418 |
|
} |
| 419 |
|
|
| 420 |
|
|
| 421 |
|
@link |
| 422 |
|
@link |
| 423 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 424 |
0
|
public void setVisas(List<KimEntityVisaInfo> visas) {... |
| 425 |
0
|
this.visas = visas; |
| 426 |
|
} |
| 427 |
|
|
| 428 |
|
|
| 429 |
|
@inheritDoc |
| 430 |
|
@see |
| 431 |
|
|
|
|
|
| 0% |
Uncovered Elements: 11 (11) |
Complexity: 3 |
Complexity Density: 0.43 |
|
| 432 |
0
|
public KimEntityExternalIdentifier getEntityExternalIdentifier(String externalIdentifierTypeCode) {... |
| 433 |
0
|
KimEntityExternalIdentifier result = null; |
| 434 |
|
|
| 435 |
0
|
List<KimEntityExternalIdentifierInfo> externalIdentifiers = getExternalIdentifiers(); |
| 436 |
0
|
if (externalIdentifiers != null) |
| 437 |
0
|
for (KimEntityExternalIdentifier eid : externalIdentifiers) { |
| 438 |
0
|
if (eid.getExternalIdentifierTypeCode().equals(externalIdentifierTypeCode)) { |
| 439 |
0
|
result = eid; |
| 440 |
|
} |
| 441 |
|
} |
| 442 |
0
|
return result; |
| 443 |
|
} |
| 444 |
|
|
| 445 |
|
|
| 446 |
|
@inheritDoc |
| 447 |
|
@see |
| 448 |
|
|
|
|
|
| 0% |
Uncovered Elements: 10 (10) |
Complexity: 3 |
Complexity Density: 0.5 |
|
| 449 |
0
|
public KimEntityEntityType getEntityType(String entityTypeCode) {... |
| 450 |
0
|
KimEntityEntityType result = null; |
| 451 |
|
|
| 452 |
0
|
if (entityTypes != null) |
| 453 |
0
|
for (KimEntityEntityType eType : entityTypes) { |
| 454 |
0
|
if (eType.getEntityTypeCode().equals(entityTypeCode)) { |
| 455 |
0
|
result = eType; |
| 456 |
|
} |
| 457 |
|
} |
| 458 |
0
|
return result; |
| 459 |
|
} |
| 460 |
|
|
| 461 |
|
|
| 462 |
|
|
| 463 |
|
|
| 464 |
|
|
| 465 |
|
|
| 466 |
|
|
| 467 |
|
|
| 468 |
|
|
| 469 |
|
|
| 470 |
|
|
| 471 |
|
|
| 472 |
|
|
| 473 |
|
|
| 474 |
|
|
| 475 |
|
|
| 476 |
|
|
| 477 |
|
|
| 478 |
|
|
| 479 |
|
|
| 480 |
|
|
| 481 |
|
|
| 482 |
|
|
| 483 |
|
|
|
|
|
| 0% |
Uncovered Elements: 16 (16) |
Complexity: 4 |
Complexity Density: 0.4 |
|
| 484 |
0
|
private static <A,B,C> List<B> deriveCollection(List<A> source, XForm<C,B> transformer) {... |
| 485 |
0
|
List<B> result = null; |
| 486 |
0
|
if (source != null) { |
| 487 |
0
|
result = new ArrayList<B>(source.size()); |
| 488 |
|
|
| 489 |
0
|
for (A element : source) if (element != null) { |
| 490 |
0
|
B mutant = transformer.xform((C)element); |
| 491 |
0
|
if (mutant != null) { |
| 492 |
0
|
result.add(mutant); |
| 493 |
|
} |
| 494 |
|
} |
| 495 |
|
} else { |
| 496 |
0
|
result = new ArrayList(); |
| 497 |
|
} |
| 498 |
0
|
return result; |
| 499 |
|
} |
| 500 |
|
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 0 |
Complexity Density: - |
|
| 501 |
|
private static interface XForm<A,B> { |
| 502 |
|
public B xform(A source); |
| 503 |
|
} |
| 504 |
|
|
| 505 |
|
} |