private void storeForwardOptions(HashMap<String, ForwardOption> fwdOptions, String parentDN) throws NamingException { for (Entry<String, ForwardOption> forwardOptionEntry : fwdOptions.entrySet()) config.createSubcontext(dnOfForwardOption(forwardOptionEntry.getKey(), parentDN), storeToForwardOption(forwardOptionEntry, new BasicAttributes(true))); }
private void store(ConfigurationChanges diffs, String deviceDN, ImageWriterFactory factory) throws NamingException { String imageWritersDN = CN_IMAGE_WRITER_FACTORY + deviceDN; ConfigurationChanges.ModifiedObject ldapObj = ConfigurationChanges.addModifiedObject(diffs, imageWritersDN, ConfigurationChanges.ChangeType.C); config.createSubcontext(imageWritersDN, LdapUtils.attrs("dcmImageWriterFactory", "cn", "Image Writer Factory")); for (Entry<String, ImageWriterParam> entry : factory.getEntries()) { String tsuid = entry.getKey(); ConfigurationChanges.ModifiedObject ldapObj1 = ConfigurationChanges.addModifiedObjectIfVerbose(diffs, imageWritersDN, ConfigurationChanges.ChangeType.C); config.createSubcontext(dnOf(tsuid, imageWritersDN), storeTo(ldapObj1, tsuid, entry.getValue(), new BasicAttributes(true))); } }
private void storeForwardRules(List<ForwardRule> forwardRules, String parentDN) throws NamingException { for (ForwardRule rule : forwardRules) config.createSubcontext(dnOfForwardRule(rule, parentDN), storeToForwardRule(rule, new BasicAttributes(true))); }
public void store(ConfigurationChanges diffs, Map<String, BasicBulkDataDescriptor> descriptors, String parentDN) throws NamingException { for (BasicBulkDataDescriptor descriptor : descriptors.values()) { String dn = LdapUtils.dnOf("dcmBulkDataDescriptorID", descriptor.getBulkDataDescriptorID(), parentDN); ConfigurationChanges.ModifiedObject ldapObj = ConfigurationChanges.addModifiedObject(diffs, dn, ConfigurationChanges.ChangeType.C); createSubcontext(dn, storeTo(ldapObj, descriptor, new BasicAttributes(true))); } }
public void store(CompressionRules rules, String parentDN) throws NamingException { for (CompressionRule rule : rules) config.createSubcontext( LdapUtils.dnOf("cn", rule.getCommonName(), parentDN), storeTo(rule, new BasicAttributes(true))); }
public void store(ConfigurationChanges diffs, Map<String, BasicBulkDataDescriptor> descriptors, String parentDN) throws NamingException { for (BasicBulkDataDescriptor descriptor : descriptors.values()) { String dn = LdapUtils.dnOf("dcmBulkDataDescriptorID", descriptor.getBulkDataDescriptorID(), parentDN); ConfigurationChanges.ModifiedObject ldapObj = ConfigurationChanges.addModifiedObject(diffs, dn, ConfigurationChanges.ChangeType.C); createSubcontext(dn, storeTo(ldapObj, descriptor, new BasicAttributes(true))); } }
public void store(AttributeCoercions coercions, String parentDN) throws NamingException { for (AttributeCoercion ac : coercions) createSubcontext( LdapUtils.dnOf("cn", ac.getCommonName(), parentDN), storeTo(ac, new BasicAttributes(true))); }
private String registerAET(String aet) throws ConfigurationException { try { String dn = aetDN(aet, aetsRegistryDN); createSubcontext(dn, LdapUtils.attrs("dicomUniqueAETitle", "dicomAETitle", aet)); return dn; } catch (NameAlreadyBoundException e) { throw new AETitleAlreadyExistsException("AE Title '" + aet + "' already exists"); } catch (NamingException e) { throw new ConfigurationException(e); } }
private void store(ConfigurationChanges diffs, String deviceDN, AuditRecordRepository arr) throws NamingException { String dn = CN_AUDIT_RECORD_REPOSITORY + deviceDN; ConfigurationChanges.ModifiedObject ldapObj = ConfigurationChanges.addModifiedObject(diffs, dn, ConfigurationChanges.ChangeType.C); config.createSubcontext(dn, storeTo(ConfigurationChanges.nullifyIfNotVerbose(diffs, ldapObj), arr, deviceDN, new BasicAttributes(true))); }
public void store(AttributeCoercions coercions, String parentDN) throws NamingException { for (AttributeCoercion ac : coercions) createSubcontext( LdapUtils.dnOf("cn", ac.getCommonName(), parentDN), storeTo(ac, new BasicAttributes(true))); }
private String registerAET(String aet) throws ConfigurationException { try { String dn = aetDN(aet, aetsRegistryDN); createSubcontext(dn, LdapUtils.attrs("dicomUniqueAETitle", "dicomAETitle", aet)); return dn; } catch (NameAlreadyBoundException e) { throw new AETitleAlreadyExistsException("AE Title '" + aet + "' already exists"); } catch (NamingException e) { throw new ConfigurationException(e); } }
private void store(ConfigurationChanges diffs, String deviceDN, AuditRecordRepository arr) throws NamingException { String dn = CN_AUDIT_RECORD_REPOSITORY + deviceDN; ConfigurationChanges.ModifiedObject ldapObj = ConfigurationChanges.addModifiedObject(diffs, dn, ConfigurationChanges.ChangeType.C); config.createSubcontext(dn, storeTo(ConfigurationChanges.nullifyIfNotVerbose(diffs, ldapObj), arr, deviceDN, new BasicAttributes(true))); }
private String registerHL7App(String name) throws ConfigurationException { ensureAppNamesRegistryExists(); try { String dn = hl7appDN(name, appNamesRegistryDN); config.createSubcontext(dn, LdapUtils.attrs("hl7UniqueApplicationName", "hl7ApplicationName", name)); return dn; } catch (NameAlreadyBoundException e) { throw new HL7ApplicationAlreadyExistsException("HL7 Application '" + name + "' already exists"); } catch (NamingException e) { throw new ConfigurationException(e); } }
private void storeChilds(ConfigurationChanges diffs, String aeDN, ApplicationEntity ae) throws NamingException { for (TransferCapability tc : ae.getTransferCapabilities()) { ConfigurationChanges.ModifiedObject ldapObj = ConfigurationChanges.addModifiedObject(diffs, aeDN, ConfigurationChanges.ChangeType.C); createSubcontext(dnOf(tc, aeDN), storeTo(ldapObj, tc, new BasicAttributes(true))); } if (extended) for (LdapDicomConfigurationExtension ext : extensions) ext.storeChilds(diffs, aeDN, ae); }
private void storeChilds(ConfigurationChanges diffs, String aeDN, ApplicationEntity ae) throws NamingException { for (TransferCapability tc : ae.getTransferCapabilities()) { ConfigurationChanges.ModifiedObject ldapObj = ConfigurationChanges.addModifiedObject(diffs, aeDN, ConfigurationChanges.ChangeType.C); createSubcontext(dnOf(tc, aeDN), storeTo(ldapObj, tc, new BasicAttributes(true))); } if (extended) for (LdapDicomConfigurationExtension ext : extensions) ext.storeChilds(diffs, aeDN, ae); }
private void store(ConfigurationChanges diffs, WebApplication webapp, String deviceDN) throws NamingException { String webappDN = webappDN(webapp.getApplicationName(), deviceDN); ConfigurationChanges.ModifiedObject ldapObj = ConfigurationChanges.addModifiedObject(diffs, webappDN, ConfigurationChanges.ChangeType.C); createSubcontext(webappDN, storeTo(ConfigurationChanges.nullifyIfNotVerbose(diffs, ldapObj), webapp, deviceDN, new BasicAttributes(true))); }
private void store(ConfigurationChanges diffs, WebApplication webapp, String deviceDN) throws NamingException { String webappDN = webappDN(webapp.getApplicationName(), deviceDN); ConfigurationChanges.ModifiedObject ldapObj = ConfigurationChanges.addModifiedObject(diffs, webappDN, ConfigurationChanges.ChangeType.C); createSubcontext(webappDN, storeTo(ConfigurationChanges.nullifyIfNotVerbose(diffs, ldapObj), webapp, deviceDN, new BasicAttributes(true))); }
private void store(ConfigurationChanges diffs, HL7Application hl7App, String deviceDN) throws NamingException { String appDN = hl7appDN(hl7App.getApplicationName(), deviceDN); ConfigurationChanges.ModifiedObject ldapObj = ConfigurationChanges.addModifiedObject(diffs, appDN, ConfigurationChanges.ChangeType.C); config.createSubcontext(appDN, storeTo(ConfigurationChanges.nullifyIfNotVerbose(diffs, ldapObj), hl7App, deviceDN, new BasicAttributes(true))); for (LdapHL7ConfigurationExtension ext : extensions) ext.storeChilds(ConfigurationChanges.nullifyIfNotVerbose(diffs, diffs), appDN, hl7App); }
private void store(ConfigurationChanges diffs, ApplicationEntity ae, String deviceDN) throws NamingException { String aeDN = aetDN(ae.getAETitle(), deviceDN); ConfigurationChanges.ModifiedObject ldapObj = ConfigurationChanges.addModifiedObject(diffs, aeDN, ConfigurationChanges.ChangeType.C); createSubcontext(aeDN, storeTo(ConfigurationChanges.nullifyIfNotVerbose(diffs, ldapObj), ae, deviceDN, new BasicAttributes(true))); storeChilds(ConfigurationChanges.nullifyIfNotVerbose(diffs, diffs), aeDN, ae); }
private void store(ConfigurationChanges diffs, ApplicationEntity ae, String deviceDN) throws NamingException { String aeDN = aetDN(ae.getAETitle(), deviceDN); ConfigurationChanges.ModifiedObject ldapObj = ConfigurationChanges.addModifiedObject(diffs, aeDN, ConfigurationChanges.ChangeType.C); createSubcontext(aeDN, storeTo(ConfigurationChanges.nullifyIfNotVerbose(diffs, ldapObj), ae, deviceDN, new BasicAttributes(true))); storeChilds(ConfigurationChanges.nullifyIfNotVerbose(diffs, diffs), aeDN, ae); }