public static void storeNotDef(ConfigurationChanges.ModifiedObject ldapObj, Attributes attrs, String attrID, boolean val, boolean defVal) { if (val != defVal) { LdapUtils.storeBoolean(attrs, attrID, val); if (ldapObj != null) { ConfigurationChanges.ModifiedAttribute attribute = new ConfigurationChanges.ModifiedAttribute(attrID); attribute.addValue(val); ldapObj.add(attribute); } } }
public static void storeNotDef(ConfigurationChanges.ModifiedObject ldapObj, Attributes attrs, String attrID, boolean val, boolean defVal) { if (val != defVal) { LdapUtils.storeBoolean(attrs, attrID, val); if (ldapObj != null) { ConfigurationChanges.ModifiedAttribute attribute = new ConfigurationChanges.ModifiedAttribute(attrID); attribute.addValue(val); ldapObj.add(attribute); } } }
private Attributes storeToForwardRule(ForwardRule rule, BasicAttributes attrs) { attrs.put("objectclass", "dcmForwardRule"); storeForwardRuleDimse(attrs, rule.getDimse()); LdapUtils.storeNotEmpty(attrs, "dcmSOPClass", rule.getSopClasses().toArray(new String[rule.getSopClasses().size()])); LdapUtils.storeNotEmpty(attrs, "dcmAETitle", rule.getCallingAETs().toArray(new String[rule.getCallingAETs().size()])); LdapUtils.storeNotEmpty(attrs, "labeledURI", rule.getDestinationURI().toArray(new String[rule.getDestinationURI().size()])); LdapUtils.storeNotNull(attrs, "dcmUseCallingAETitle", rule.getUseCallingAET()); LdapUtils.storeBoolean(attrs, "dcmExclusiveUseDefinedTC", rule.isExclusiveUseDefinedTC()); LdapUtils.storeNotNull(attrs, "cn", rule.getCommonName()); LdapUtils.storeNotNull(attrs, "dcmScheduleDays", rule.getReceiveSchedule().getDays()); LdapUtils.storeNotNull(attrs, "dcmScheduleHours", rule.getReceiveSchedule().getHours()); LdapUtils.storeNotNull(attrs, "dcmMpps2DoseSrTemplateURI", rule.getMpps2DoseSrTemplateURI()); LdapUtils.storeNotNull(attrs, "doseSrIODTemplateURI", rule.getDoseSrIODTemplateURI()); LdapUtils.storeBoolean(attrs, "dcmPIXQuery", rule.isRunPIXQuery()); LdapUtils.storeNotNull(attrs, "dicomDescription", rule.getDescription()); return attrs; }
@Override protected void storeTo(ApplicationEntity ae, Attributes attrs) { ProxyAEExtension proxyAEE = ae.getAEExtension(ProxyAEExtension.class); if (proxyAEE == null) return; attrs.get("objectClass").add("dcmProxyNetworkAE"); LdapUtils.storeNotNull(attrs, "dcmSpoolDirectory", proxyAEE.getSpoolDirectory()); LdapUtils.storeNotNull(attrs, "dcmAcceptDataOnFailedAssociation", proxyAEE.isAcceptDataOnFailedAssociation()); LdapUtils.storeNotNull(attrs, "dcmEnableAuditLog", proxyAEE.isEnableAuditLog()); LdapUtils.storeNotNull(attrs, "hl7ProxyPIXConsumerApplication", proxyAEE.getProxyPIXConsumerApplication()); LdapUtils.storeNotNull(attrs, "hl7RemotePIXManagerApplication", proxyAEE.getRemotePIXManagerApplication()); LdapUtils.storeNotNull(attrs, "dcmDeleteFailedDataWithoutRetryConfiguration", proxyAEE.isDeleteFailedDataWithoutRetryConfiguration()); LdapUtils.storeNotNull(attrs, "dcmDestinationAETitle", proxyAEE.getFallbackDestinationAET()); LdapUtils.storeBoolean(attrs, "dcmMergeStgCmtMessagesUsingANDLogic", proxyAEE.isMergeStgCmtMessagesUsingANDLogic()); }
private Attributes storeTo(ConfigurationChanges.ModifiedObject ldapObj, ApplicationEntity ae, String deviceDN, Attributes attrs) { BasicAttribute objectclass = new BasicAttribute("objectclass", "dicomNetworkAE"); attrs.put(objectclass); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dicomAETitle", ae.getAETitle(), null); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dicomDescription", ae.getDescription(), null); storeNotEmpty(ldapObj, attrs, "dicomVendorData", ae.getVendorData()); LdapUtils.storeNotEmpty(ldapObj, attrs, "dicomApplicationCluster", ae.getApplicationClusters()); LdapUtils.storeNotEmpty(ldapObj, attrs, "dicomPreferredCallingAETitle", ae.getPreferredCallingAETitles()); LdapUtils.storeNotEmpty(ldapObj, attrs, "dicomPreferredCalledAETitle", ae.getPreferredCalledAETitles()); LdapUtils.storeBoolean(ldapObj, attrs, "dicomAssociationInitiator", ae.isAssociationInitiator()); LdapUtils.storeBoolean(ldapObj, attrs, "dicomAssociationAcceptor", ae.isAssociationAcceptor()); LdapUtils.storeConnRefs(ldapObj, attrs, ae.getConnections(), deviceDN); LdapUtils.storeNotEmpty(ldapObj, attrs, "dicomSupportedCharacterSet", ae.getSupportedCharacterSets()); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dicomInstalled", ae.getInstalled(), null); if (!extended) return attrs; objectclass.add("dcmNetworkAE"); LdapUtils.storeNotEmpty(ldapObj, attrs, "dcmPreferredTransferSyntax", LdapUtils.addOrdinalPrefix(ae.getPreferredTransferSyntaxes())); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "hl7ApplicationName", ae.getHl7ApplicationName(), null); LdapUtils.storeNotEmpty(ldapObj, attrs, "dcmAcceptedCallingAETitle", ae.getAcceptedCallingAETitles()); LdapUtils.storeNotEmpty(ldapObj, attrs, "dcmOtherAETitle", ae.getOtherAETitles()); LdapUtils.storeNotEmpty(ldapObj, attrs, "dcmMasqueradeCallingAETitle", ae.getMasqueradeCallingAETitles()); for (LdapDicomConfigurationExtension ext : extensions) ext.storeTo(ldapObj, ae, attrs); return attrs; }
private Attributes storeTo(ConfigurationChanges.ModifiedObject ldapObj, ApplicationEntity ae, String deviceDN, Attributes attrs) { BasicAttribute objectclass = new BasicAttribute("objectclass", "dicomNetworkAE"); attrs.put(objectclass); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dicomAETitle", ae.getAETitle(), null); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dicomDescription", ae.getDescription(), null); storeNotEmpty(ldapObj, attrs, "dicomVendorData", ae.getVendorData()); LdapUtils.storeNotEmpty(ldapObj, attrs, "dicomApplicationCluster", ae.getApplicationClusters()); LdapUtils.storeNotEmpty(ldapObj, attrs, "dicomPreferredCallingAETitle", ae.getPreferredCallingAETitles()); LdapUtils.storeNotEmpty(ldapObj, attrs, "dicomPreferredCalledAETitle", ae.getPreferredCalledAETitles()); LdapUtils.storeBoolean(ldapObj, attrs, "dicomAssociationInitiator", ae.isAssociationInitiator()); LdapUtils.storeBoolean(ldapObj, attrs, "dicomAssociationAcceptor", ae.isAssociationAcceptor()); LdapUtils.storeConnRefs(ldapObj, attrs, ae.getConnections(), deviceDN); LdapUtils.storeNotEmpty(ldapObj, attrs, "dicomSupportedCharacterSet", ae.getSupportedCharacterSets()); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dicomInstalled", ae.getInstalled(), null); if (!extended) return attrs; objectclass.add("dcmNetworkAE"); LdapUtils.storeNotEmpty(ldapObj, attrs, "dcmPreferredTransferSyntax", LdapUtils.addOrdinalPrefix(ae.getPreferredTransferSyntaxes())); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "hl7ApplicationName", ae.getHl7ApplicationName(), null); LdapUtils.storeNotEmpty(ldapObj, attrs, "dcmAcceptedCallingAETitle", ae.getAcceptedCallingAETitles()); LdapUtils.storeNotEmpty(ldapObj, attrs, "dcmOtherAETitle", ae.getOtherAETitles()); LdapUtils.storeNotEmpty(ldapObj, attrs, "dcmMasqueradeCallingAETitle", ae.getMasqueradeCallingAETitles()); for (LdapDicomConfigurationExtension ext : extensions) ext.storeTo(ldapObj, ae, attrs); return attrs; }
device.getThisNodeCertificateRefs()); storeNotEmpty(ldapObj, attrs, "dicomVendorData", device.getVendorData()); LdapUtils.storeBoolean(ldapObj, attrs, "dicomInstalled", device.isInstalled()); if (!extended) return attrs;
device.getThisNodeCertificateRefs()); storeNotEmpty(ldapObj, attrs, "dicomVendorData", device.getVendorData()); LdapUtils.storeBoolean(ldapObj, attrs, "dicomInstalled", device.isInstalled()); if (!extended) return attrs;