in services/idp-core/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa/IdpDAOJPAImpl.java [307:363]
public static Idp entity2domain(IdpEntity entity, List<String> expandList) {
Idp idp = new Idp();
idp.setId(entity.getId());
idp.setCertificate(entity.getCertificate());
idp.setCertificatePassword(entity.getCertificatePassword());
idp.setRealm(entity.getRealm());
idp.setServiceDescription(entity.getServiceDescription());
idp.setServiceDisplayName(entity.getServiceDisplayName());
idp.setHrds(entity.getHrds());
idp.setIdpUrl(entity.getIdpUrl());
idp.setProvideIdpList(entity.isProvideIdpList());
idp.setStsUrl(entity.getStsUrl());
idp.setUri(entity.getUri());
idp.setUseCurrentIdp(entity.isUseCurrentIdp());
idp.setRpSingleSignOutConfirmation(entity.isRpSingleSignOutConfirmation());
idp.setRpSingleSignOutCleanupConfirmation(entity.isRpSingleSignOutCleanupConfirmation());
idp.setAutomaticRedirectToRpAfterLogout(entity.isAutomaticRedirectToRpAfterLogout());
idp.setDisableLogoutAddressValidation(entity.isDisableLogoutAddressValidation());
if (entity.getMaxParameterSize() > 0) {
idp.setMaxParameterSize(entity.getMaxParameterSize());
}
if (expandList != null && (expandList.contains("all") || expandList.contains("applications"))) {
for (ApplicationEntity item : entity.getApplications()) {
Application application = ApplicationDAOJPAImpl.entity2domain(item, expandList);
idp.getApplications().add(application);
}
}
if (expandList != null && (expandList.contains("all") || expandList.contains("trusted-idps"))) {
for (TrustedIdpEntity item : entity.getTrustedIdps()) {
TrustedIdp trustedIdp = TrustedIdpDAOJPAImpl.entity2domain(item);
idp.getTrustedIdps().add(trustedIdp);
}
}
for (Map.Entry<String, String> item : entity.getAuthenticationURIs().entrySet()) {
idp.getAuthenticationURIs().put(item.getKey(), item.getValue());
}
for (String item : entity.getTokenTypesOffered()) {
idp.getTokenTypesOffered().add(item);
}
for (String item : entity.getSupportedProtocols()) {
idp.getSupportedProtocols().add(item);
}
if (expandList != null && (expandList.contains("all") || expandList.contains("claims"))) {
for (ClaimEntity item : entity.getClaimTypesOffered()) {
idp.getClaimTypesOffered().add(ClaimDAOJPAImpl.entity2domain(item));
}
}
return idp;
}