private void loadFrom(ApplicationEntity ae, Attributes attrs) throws NamingException { ae.setDescription(LdapUtils.stringValue(attrs.get("dicomDescription"), null)); ae.setVendorData(byteArrays(attrs.get("dicomVendorData"))); ae.setApplicationClusters(LdapUtils.stringArray(attrs.get("dicomApplicationCluster"))); ae.setPreferredCallingAETitles(LdapUtils.stringArray(attrs.get("dicomPreferredCallingAETitle"))); ae.setPreferredCalledAETitles(LdapUtils.stringArray(attrs.get("dicomPreferredCalledAETitle"))); ae.setAssociationInitiator(LdapUtils.booleanValue(attrs.get("dicomAssociationInitiator"), false)); ae.setAssociationAcceptor(LdapUtils.booleanValue(attrs.get("dicomAssociationAcceptor"), false)); ae.setSupportedCharacterSets(LdapUtils.stringArray(attrs.get("dicomSupportedCharacterSet"))); ae.setInstalled(LdapUtils.booleanValue(attrs.get("dicomInstalled"), null)); if (!LdapUtils.hasObjectClass(attrs, "dcmNetworkAE")) return; ae.setAcceptedCallingAETitles(LdapUtils.stringArray(attrs.get("dcmAcceptedCallingAETitle"))); ae.setPreferredTransferSyntaxes(LdapUtils.removeOrdinalPrefix( LdapUtils.stringArray(attrs.get("dcmPreferredTransferSyntax")))); ae.setOtherAETitles(LdapUtils.stringArray(attrs.get("dcmOtherAETitle"))); ae.setMasqueradeCallingAETitles(LdapUtils.stringArray(attrs.get("dcmMasqueradeCallingAETitle"))); ae.setHl7ApplicationName(LdapUtils.stringValue(attrs.get("hl7ApplicationName"), null)); for (LdapDicomConfigurationExtension ext : extensions) ext.loadFrom(ae, attrs); }
private void loadFrom(ApplicationEntity ae, Attributes attrs) throws NamingException { ae.setDescription(LdapUtils.stringValue(attrs.get("dicomDescription"), null)); ae.setVendorData(byteArrays(attrs.get("dicomVendorData"))); ae.setApplicationClusters(LdapUtils.stringArray(attrs.get("dicomApplicationCluster"))); ae.setPreferredCallingAETitles(LdapUtils.stringArray(attrs.get("dicomPreferredCallingAETitle"))); ae.setPreferredCalledAETitles(LdapUtils.stringArray(attrs.get("dicomPreferredCalledAETitle"))); ae.setAssociationInitiator(LdapUtils.booleanValue(attrs.get("dicomAssociationInitiator"), false)); ae.setAssociationAcceptor(LdapUtils.booleanValue(attrs.get("dicomAssociationAcceptor"), false)); ae.setSupportedCharacterSets(LdapUtils.stringArray(attrs.get("dicomSupportedCharacterSet"))); ae.setInstalled(LdapUtils.booleanValue(attrs.get("dicomInstalled"), null)); if (!LdapUtils.hasObjectClass(attrs, "dcmNetworkAE")) return; ae.setAcceptedCallingAETitles(LdapUtils.stringArray(attrs.get("dcmAcceptedCallingAETitle"))); ae.setPreferredTransferSyntaxes(LdapUtils.removeOrdinalPrefix( LdapUtils.stringArray(attrs.get("dcmPreferredTransferSyntax")))); ae.setOtherAETitles(LdapUtils.stringArray(attrs.get("dcmOtherAETitle"))); ae.setMasqueradeCallingAETitles(LdapUtils.stringArray(attrs.get("dcmMasqueradeCallingAETitle"))); ae.setHl7ApplicationName(LdapUtils.stringValue(attrs.get("hl7ApplicationName"), null)); for (LdapDicomConfigurationExtension ext : extensions) ext.loadFrom(ae, attrs); }
break; case "dicomAssociationInitiator": ae.setAssociationInitiator(reader.booleanValue()); break; case "dicomAssociationAcceptor":
break; case "dicomAssociationInitiator": ae.setAssociationInitiator(reader.booleanValue()); break; case "dicomAssociationAcceptor":
ae.setAssociationInitiator(true); ae.setAETitle(weasisAet);