public static Attributes attrs(String objectclass, String attrID, String attrVal) { Attributes attrs = new BasicAttributes(true); // case-ignore attrs.put("objectclass", objectclass); storeNotNullOrDef(attrs, attrID, attrVal, null); return attrs; }
public static Attributes attrs(String objectclass, String attrID, String attrVal) { Attributes attrs = new BasicAttributes(true); // case-ignore attrs.put("objectclass", objectclass); storeNotNullOrDef(attrs, attrID, attrVal, 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, 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; }
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 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, AuditRecordRepository arr, String deviceDN, Attributes attrs) { attrs.put(new BasicAttribute("objectclass", "dcmAuditRecordRepository")); LdapUtils.storeConnRefs(ldapObj, attrs, arr.getConnections(), deviceDN); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dicomInstalled", arr.getInstalled(), null); 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 storeTo(ConfigurationChanges.ModifiedObject ldapObj, AuditRecordRepository arr, String deviceDN, Attributes attrs) { attrs.put(new BasicAttribute("objectclass", "dcmAuditRecordRepository")); LdapUtils.storeConnRefs(ldapObj, attrs, arr.getConnections(), deviceDN); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dicomInstalled", arr.getInstalled(), null); return attrs; }
private Attributes storeTo(ConfigurationChanges.ModifiedObject ldapObj, AuditLogger logger, String deviceDN, Attributes attrs) { attrs.put(new BasicAttribute("objectclass", "dcmAuditLogger")); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "cn", logger.getCommonName(), null); LdapUtils.storeNotDef(ldapObj, attrs, "dcmAuditFacility", logger.getFacility().ordinal(), 10); LdapUtils.storeNotDef(ldapObj, attrs, "dcmAuditMajorFailureSeverity", logger.getMajorFailureSeverity().ordinal(), 2); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dcmAuditSourceID", logger.getAuditSourceID(), null); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dcmAuditEnterpriseSiteID", logger.getAuditEnterpriseSiteID(), null); LdapUtils.storeNotEmpty(ldapObj, attrs, "dcmAuditSourceTypeCode", logger.getAuditSourceTypeCodes()); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dcmAuditApplicationName", logger.getApplicationName(), null); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dcmAuditMessageID", logger.getMessageID(), AuditLogger.MESSAGE_ID); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dcmAuditMessageEncoding", logger.getEncoding(), "UTF-8"); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dcmAuditMessageSchemaURI", logger.getSchemaURI(), AuditMessages.SCHEMA_URI); LdapUtils.storeNotDef(ldapObj, attrs, "dcmAuditMessageBOM", logger.isTimestampInUTC(), false); LdapUtils.storeConnRefs(ldapObj, attrs, logger.getConnections(), deviceDN); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "dcmAuditRecordRepositoryDeviceReference", config.deviceRef(logger.getAuditRecordRepositoryDeviceNameNotNull()), null); LdapUtils.storeNotDef(ldapObj, attrs, "dcmAuditIncludeInstanceUID", logger.isIncludeInstanceUID(), false);
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 Attributes storeTo(ConfigurationChanges.ModifiedObject ldapObj, TransferCapability tc, Attributes attrs) { BasicAttribute objectclass = new BasicAttribute("objectclass", "dicomTransferCapability"); attrs.put(objectclass); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "cn", tc.getCommonName(), null); 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)
private Attributes storeTo(ConfigurationChanges.ModifiedObject ldapObj, TransferCapability tc, Attributes attrs) { BasicAttribute objectclass = new BasicAttribute("objectclass", "dicomTransferCapability"); attrs.put(objectclass); LdapUtils.storeNotNullOrDef(ldapObj, attrs, "cn", tc.getCommonName(), null); 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)
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 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 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; }