private Attributes storeTo(ConfigurationChanges.ModifiedObject ldapObj, AuditSuppressCriteria criteria, BasicAttributes attrs) { attrs.put(new BasicAttribute("objectclass", "dcmAuditSuppressCriteria")); attrs.put(new BasicAttribute("cn", criteria.getCommonName())); LdapUtils.storeNotEmpty(ldapObj, attrs, "dcmAuditEventID", criteria.getEventIDsAsStringArray()); LdapUtils.storeNotEmpty(ldapObj, attrs, "dcmAuditEventTypeCode", criteria.getEventTypeCodesAsStringArray()); LdapUtils.storeNotEmpty(ldapObj, attrs, "dcmAuditEventActionCode", criteria.getEventActionCodes()); LdapUtils.storeNotEmpty(ldapObj, attrs, "dcmAuditEventOutcomeIndicator", criteria.getEventOutcomeIndicators()); LdapUtils.storeNotEmpty(ldapObj, attrs, "dcmAuditUserID", criteria.getUserIDs()); LdapUtils.storeNotEmpty(ldapObj, attrs, "dcmAuditAlternativeUserID", criteria.getAlternativeUserIDs()); LdapUtils.storeNotEmpty(ldapObj, attrs, "dcmAuditUserRoleIDCode", criteria.getUserRoleIDCodesAsStringArray()); LdapUtils.storeNotEmpty(ldapObj, attrs, "dcmAuditNetworkAccessPointID", criteria.getNetworkAccessPointIDs()); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dcmAuditUserIsRequestor", criteria.getUserIsRequestor(), null); return attrs; }
private static Attributes storeTo(CompressionRule rule, BasicAttributes attrs) { attrs.put("objectclass", "dcmCompressionRule"); attrs.put("cn", rule.getCommonName()); LdapUtils.storeNotEmpty(attrs, "dcmPhotometricInterpretation", rule.getPhotometricInterpretations()); LdapUtils.storeNotEmpty(attrs, "dcmBitsStored", rule.getBitsStored()); LdapUtils.storeNotDef(attrs, "dcmPixelRepresentation", rule.getPixelRepresentation(), -1); LdapUtils.storeNotEmpty(attrs, "dcmAETitle", rule.getAETitles()); LdapUtils.storeNotEmpty(attrs, "dcmSOPClass", rule.getSOPClasses()); LdapUtils.storeNotEmpty(attrs, "dcmBodyPartExamined", rule.getBodyPartExamined()); attrs.put("dicomTransferSyntax", rule.getTransferSyntax()); LdapUtils.storeNotEmpty(attrs, "dcmImageWriteParam", rule.getImageWriteParams()); return attrs; }
private Attributes storeTo(ConfigurationChanges.ModifiedObject ldapObj, AuditSuppressCriteria criteria, BasicAttributes attrs) { attrs.put(new BasicAttribute("objectclass", "dcmAuditSuppressCriteria")); attrs.put(new BasicAttribute("cn", criteria.getCommonName())); LdapUtils.storeNotEmpty(ldapObj, attrs, "dcmAuditEventID", criteria.getEventIDsAsStringArray()); LdapUtils.storeNotEmpty(ldapObj, attrs, "dcmAuditEventTypeCode", criteria.getEventTypeCodesAsStringArray()); LdapUtils.storeNotEmpty(ldapObj, attrs, "dcmAuditEventActionCode", criteria.getEventActionCodes()); LdapUtils.storeNotEmpty(ldapObj, attrs, "dcmAuditEventOutcomeIndicator", criteria.getEventOutcomeIndicators()); LdapUtils.storeNotEmpty(ldapObj, attrs, "dcmAuditUserID", criteria.getUserIDs()); LdapUtils.storeNotEmpty(ldapObj, attrs, "dcmAuditAlternativeUserID", criteria.getAlternativeUserIDs()); LdapUtils.storeNotEmpty(ldapObj, attrs, "dcmAuditUserRoleIDCode", criteria.getUserRoleIDCodesAsStringArray()); LdapUtils.storeNotEmpty(ldapObj, attrs, "dcmAuditNetworkAccessPointID", criteria.getNetworkAccessPointIDs()); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dcmAuditUserIsRequestor", criteria.getUserIsRequestor(), null); return attrs; }
private static Attributes storeTo(ConfigurationChanges.ModifiedObject ldapObj, BasicBulkDataDescriptor descriptor, BasicAttributes attrs) { attrs.put("objectclass", "dcmBulkDataDescriptor"); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dcmBulkDataDescriptorID", descriptor.getBulkDataDescriptorID(), null); LdapUtils.storeNotDef(ldapObj, attrs, "dcmBulkDataExcludeDefaults", descriptor.isExcludeDefaults(), false); LdapUtils.storeNotEmpty(ldapObj, attrs, "dcmAttributeSelector", descriptor.getAttributeSelectors()); LdapUtils.storeNotEmpty(ldapObj, attrs, "dcmBulkDataVRLengthThreshold", descriptor.getLengthsThresholdsAsStrings()); return attrs; }
private static Attributes storeTo(ConfigurationChanges.ModifiedObject ldapObj, BasicBulkDataDescriptor descriptor, BasicAttributes attrs) { attrs.put("objectclass", "dcmBulkDataDescriptor"); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dcmBulkDataDescriptorID", descriptor.getBulkDataDescriptorID(), null); LdapUtils.storeNotDef(ldapObj, attrs, "dcmBulkDataExcludeDefaults", descriptor.isExcludeDefaults(), false); LdapUtils.storeNotEmpty(ldapObj, attrs, "dcmAttributeSelector", descriptor.getAttributeSelectors()); LdapUtils.storeNotEmpty(ldapObj, attrs, "dcmBulkDataVRLengthThreshold", descriptor.getLengthsThresholdsAsStrings()); return attrs; }
private static Attributes storeTo(AttributeCoercion ac, BasicAttributes attrs) { attrs.put("objectclass", "dcmAttributeCoercion"); attrs.put("cn", ac.getCommonName()); LdapUtils.storeNotNullOrDef(attrs, "dcmDIMSE", ac.getDIMSE(), null); LdapUtils.storeNotNullOrDef(attrs, "dicomTransferRole", ac.getRole(), null); LdapUtils.storeNotEmpty(attrs, "dcmAETitle", ac.getAETitles()); LdapUtils.storeNotEmpty(attrs, "dcmSOPClass", ac.getSOPClasses()); LdapUtils.storeNotNullOrDef(attrs, "dcmURI", ac.getURI(), null); 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; }
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 static Attributes storeTo(AttributeCoercion ac, BasicAttributes attrs) { attrs.put("objectclass", "dcmAttributeCoercion"); attrs.put("cn", ac.getCommonName()); LdapUtils.storeNotNullOrDef(attrs, "dcmDIMSE", ac.getDIMSE(), null); LdapUtils.storeNotNullOrDef(attrs, "dicomTransferRole", ac.getRole(), null); LdapUtils.storeNotEmpty(attrs, "dcmAETitle", ac.getAETitles()); LdapUtils.storeNotEmpty(attrs, "dcmSOPClass", ac.getSOPClasses()); LdapUtils.storeNotNullOrDef(attrs, "dcmURI", ac.getURI(), null); return attrs; }
private Attributes storeTo(ConfigurationChanges.ModifiedObject ldapObj, String tsuid, ImageReaderParam param, Attributes attrs) { attrs.put("objectclass", "dcmImageReader"); attrs.put("dicomTransferSyntax", tsuid); attrs.put("dcmIIOFormatName", param.formatName); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dcmJavaClassName", param.className, null); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dcmPatchJPEGLS", param.patchJPEGLS, null); LdapUtils.storeNotEmpty(ldapObj, attrs, "dcmImageReadParam", param.getImageReadParams()); return attrs; }
private Attributes storeTo(ConfigurationChanges.ModifiedObject ldapObj, String tsuid, ImageWriterParam param, Attributes attrs) { attrs.put("objectclass", "dcmImageWriter"); attrs.put("dicomTransferSyntax", tsuid); attrs.put("dcmIIOFormatName", param.formatName); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dcmJavaClassName", param.className, null); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dcmPatchJPEGLS", param.patchJPEGLS, null); LdapUtils.storeNotEmpty(ldapObj, attrs, "dcmImageWriteParam", param.getImageWriteParams()); return attrs; }
private Attributes storeTo(ConfigurationChanges.ModifiedObject ldapObj, HL7Application hl7App, String deviceDN, Attributes attrs) { attrs.put(new BasicAttribute("objectclass", "hl7Application")); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "hl7ApplicationName", hl7App.getApplicationName(), null); LdapUtils.storeNotEmpty(ldapObj, attrs, "hl7AcceptedSendingApplication", hl7App.getAcceptedSendingApplications()); LdapUtils.storeNotEmpty(ldapObj, attrs, "dcmOtherApplicationNames", hl7App.getOtherApplicationNames()); LdapUtils.storeNotEmpty(ldapObj, attrs, "hl7AcceptedMessageType", hl7App.getAcceptedMessageTypes()); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "hl7DefaultCharacterSet", hl7App.getHL7DefaultCharacterSet(), "ASCII"); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "hl7SendingCharacterSet", hl7App.getHL7SendingCharacterSet(), "ASCII"); LdapUtils.storeConnRefs(ldapObj, attrs, hl7App.getConnections(), deviceDN); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dicomDescription", hl7App.getDescription(), null); LdapUtils.storeNotEmpty(ldapObj, attrs, "dicomApplicationCluster", hl7App.getApplicationClusters()); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dicomInstalled", hl7App.getInstalled(), null); for (LdapHL7ConfigurationExtension ext : extensions) ext.storeTo(ldapObj, hl7App, deviceDN, attrs); return attrs; }
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; }
private Attributes storeTo(ConfigurationChanges.ModifiedObject ldapObj, WebApplication webapp, String deviceDN, Attributes attrs) { BasicAttribute objectclass = new BasicAttribute("objectclass", "dcmWebApp"); attrs.put(objectclass); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dcmWebAppName", webapp.getApplicationName(), null); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dicomDescription", webapp.getDescription(), null); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dcmWebServicePath", webapp.getServicePath(), null); LdapUtils.storeNotEmpty(ldapObj, attrs, "dcmWebServiceClass", webapp.getServiceClasses()); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dicomAETitle", webapp.getAETitle(), null); LdapUtils.storeNotEmpty(ldapObj, attrs, "dicomApplicationCluster", webapp.getApplicationClusters()); LdapUtils.storeConnRefs(ldapObj, attrs, webapp.getConnections(), deviceDN); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dicomInstalled", webapp.getInstalled(), null); return attrs; }
private Attributes storeTo(ConfigurationChanges.ModifiedObject ldapObj, WebApplication webapp, String deviceDN, Attributes attrs) { BasicAttribute objectclass = new BasicAttribute("objectclass", "dcmWebApp"); attrs.put(objectclass); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dcmWebAppName", webapp.getApplicationName(), null); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dicomDescription", webapp.getDescription(), null); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dcmWebServicePath", webapp.getServicePath(), null); LdapUtils.storeNotEmpty(ldapObj, attrs, "dcmWebServiceClass", webapp.getServiceClasses()); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dicomAETitle", webapp.getAETitle(), null); LdapUtils.storeNotEmpty(ldapObj, attrs, "dicomApplicationCluster", webapp.getApplicationClusters()); LdapUtils.storeConnRefs(ldapObj, attrs, webapp.getConnections(), deviceDN); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dicomInstalled", webapp.getInstalled(), null); return attrs; }
LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dicomSOPClass", tc.getSopClass(), null); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dicomTransferRole", tc.getRole(), null); LdapUtils.storeNotEmpty(ldapObj, attrs, "dicomTransferSyntax", tc.getTransferSyntaxes()); if (!extended) return attrs; LdapUtils.storeNotEmpty(ldapObj, attrs, "dcmPreferredTransferSyntax", LdapUtils.addOrdinalPrefix(tc.getPreferredTransferSyntaxes())); EnumSet<QueryOption> queryOpts = tc.getQueryOptions();
LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dicomSOPClass", tc.getSopClass(), null); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dicomTransferRole", tc.getRole(), null); LdapUtils.storeNotEmpty(ldapObj, attrs, "dicomTransferSyntax", tc.getTransferSyntaxes()); if (!extended) return attrs; LdapUtils.storeNotEmpty(ldapObj, attrs, "dcmPreferredTransferSyntax", LdapUtils.addOrdinalPrefix(tc.getPreferredTransferSyntaxes())); EnumSet<QueryOption> queryOpts = tc.getQueryOptions();
LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dicomHostname", conn.getHostname(), null); LdapUtils.storeNotDef(ldapObj, attrs, "dicomPort", conn.getPort(), Connection.NOT_LISTENING); LdapUtils.storeNotEmpty(ldapObj, attrs, "dicomTLSCipherSuite", conn.getTlsCipherSuites()); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dicomInstalled", conn.getInstalled(), null); if (!extended) LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dcmProtocol", conn.getProtocol(), Protocol.DICOM); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dcmHTTPProxy", conn.getHttpProxy(), null); LdapUtils.storeNotEmpty(ldapObj, attrs, "dcmBlacklistedHostname", conn.getBlacklist()); LdapUtils.storeNotDef(ldapObj, attrs, "dcmTCPBacklog", conn.getBacklog(), Connection.DEF_BACKLOG); conn.getMaxOpsInvoked(), Connection.SYNCHRONOUS_MODE); LdapUtils.storeNotDef(ldapObj, attrs, "dcmPackPDV", conn.isPackPDV(), true); LdapUtils.storeNotEmpty(ldapObj, attrs, "dcmTLSProtocol", conn.getTlsProtocols(), Connection.DEFAULT_TLS_PROTOCOLS); LdapUtils.storeNotDef(ldapObj, attrs, "dcmTLSNeedClientAuth", conn.isTlsNeedClientAuth(), true); return attrs;
LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dcmAuditEnterpriseSiteID", logger.getAuditEnterpriseSiteID(), null); LdapUtils.storeNotEmpty(ldapObj, attrs, "dcmAuditSourceTypeCode", logger.getAuditSourceTypeCodes()); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dcmAuditApplicationName",
LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dcmAuditEnterpriseSiteID", logger.getAuditEnterpriseSiteID(), null); LdapUtils.storeNotEmpty(ldapObj, attrs, "dcmAuditSourceTypeCode", logger.getAuditSourceTypeCodes()); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dcmAuditApplicationName",