private List<ModificationItem> storeDiffs(ConfigurationChanges.ModifiedObject ldapObj, ImageReaderParam prevParam, ImageReaderParam param, List<ModificationItem> mods) { LdapUtils.storeDiffObject(ldapObj, mods, "dcmIIOFormatName", prevParam.formatName, param.formatName, null); LdapUtils.storeDiffObject(ldapObj, mods, "dcmJavaClassName", prevParam.className, param.className, null); LdapUtils.storeDiffObject(ldapObj, mods, "dcmPatchJPEGLS", prevParam.patchJPEGLS, param.patchJPEGLS, null); LdapUtils.storeDiff(ldapObj, mods, "dcmImageReadParam", prevParam.getImageReadParams(), param.getImageReadParams()); return mods; }
private void storeDiffs(ConfigurationChanges.ModifiedObject ldapObj, EnumSet<QueryOption> prev, EnumSet<QueryOption> val, List<ModificationItem> mods) { if (prev != null ? prev.equals(val) : val == null) return; LdapUtils.storeDiff(ldapObj, mods, "dcmRelationalQueries", prev != null && prev.contains(QueryOption.RELATIONAL), val != null && val.contains(QueryOption.RELATIONAL), false); LdapUtils.storeDiff(ldapObj, mods, "dcmCombinedDateTimeMatching", prev != null && prev.contains(QueryOption.DATETIME), val != null && val.contains(QueryOption.DATETIME), false); LdapUtils.storeDiff(ldapObj, mods, "dcmFuzzySemanticMatching", prev != null && prev.contains(QueryOption.FUZZY), val != null && val.contains(QueryOption.FUZZY), false); LdapUtils.storeDiff(ldapObj, mods, "dcmTimezoneQueryAdjustment", prev != null && prev.contains(QueryOption.TIMEZONE), val != null && val.contains(QueryOption.TIMEZONE), false); }
private List<ModificationItem> storeDiffs(ConfigurationChanges.ModifiedObject ldapObj, TransferCapability a, TransferCapability b, List<ModificationItem> mods) { LdapUtils.storeDiffObject(ldapObj, mods, "dicomSOPClass", a.getSopClass(), b.getSopClass(), null); LdapUtils.storeDiffObject(ldapObj, mods, "dicomTransferRole", a.getRole(), b.getRole(), null); LdapUtils.storeDiff(ldapObj, mods, "dicomTransferSyntax", a.getTransferSyntaxes(), b.getTransferSyntaxes()); if (!extended) return mods; LdapUtils.storeDiffWithOrdinalPrefix(ldapObj, mods, "dcmPreferredTransferSyntax", a.getPreferredTransferSyntaxes(), b.getPreferredTransferSyntaxes()); storeDiffs(ldapObj, a.getQueryOptions(), b.getQueryOptions(), mods); storeDiffs(ldapObj, a.getStorageOptions(), b.getStorageOptions(), mods); return mods; }
private List<ModificationItem> storeDiffs(ConfigurationChanges.ModifiedObject ldapObj, ImageWriterParam prevParam, ImageWriterParam param, List<ModificationItem> mods) { LdapUtils.storeDiffObject(ldapObj, mods, "dcmIIOFormatName", prevParam.formatName, param.formatName, null); LdapUtils.storeDiffObject(ldapObj, mods, "dcmJavaClassName", prevParam.className, param.className, null); LdapUtils.storeDiffObject(ldapObj, mods, "dcmPatchJPEGLS", prevParam.patchJPEGLS, param.patchJPEGLS, null); LdapUtils.storeDiff(ldapObj, mods, "dcmImageWriteParam", prevParam.getImageWriteParams(), param.getImageWriteParams()); return mods; }
private void storeDiffs(ConfigurationChanges.ModifiedObject ldapObj, EnumSet<QueryOption> prev, EnumSet<QueryOption> val, List<ModificationItem> mods) { if (prev != null ? prev.equals(val) : val == null) return; LdapUtils.storeDiff(ldapObj, mods, "dcmRelationalQueries", prev != null && prev.contains(QueryOption.RELATIONAL), val != null && val.contains(QueryOption.RELATIONAL), false); LdapUtils.storeDiff(ldapObj, mods, "dcmCombinedDateTimeMatching", prev != null && prev.contains(QueryOption.DATETIME), val != null && val.contains(QueryOption.DATETIME), false); LdapUtils.storeDiff(ldapObj, mods, "dcmFuzzySemanticMatching", prev != null && prev.contains(QueryOption.FUZZY), val != null && val.contains(QueryOption.FUZZY), false); LdapUtils.storeDiff(ldapObj, mods, "dcmTimezoneQueryAdjustment", prev != null && prev.contains(QueryOption.TIMEZONE), val != null && val.contains(QueryOption.TIMEZONE), false); }
private List<ModificationItem> storeDiffs(ConfigurationChanges.ModifiedObject ldapObj, TransferCapability a, TransferCapability b, List<ModificationItem> mods) { LdapUtils.storeDiffObject(ldapObj, mods, "dicomSOPClass", a.getSopClass(), b.getSopClass(), null); LdapUtils.storeDiffObject(ldapObj, mods, "dicomTransferRole", a.getRole(), b.getRole(), null); LdapUtils.storeDiff(ldapObj, mods, "dicomTransferSyntax", a.getTransferSyntaxes(), b.getTransferSyntaxes()); if (!extended) return mods; LdapUtils.storeDiffWithOrdinalPrefix(ldapObj, mods, "dcmPreferredTransferSyntax", a.getPreferredTransferSyntaxes(), b.getPreferredTransferSyntaxes()); storeDiffs(ldapObj, a.getQueryOptions(), b.getQueryOptions(), mods); storeDiffs(ldapObj, a.getStorageOptions(), b.getStorageOptions(), mods); return mods; }
private List<ModificationItem> storeDiffs(ConfigurationChanges.ModifiedObject ldapObj, AuditRecordRepository a, AuditRecordRepository b, String deviceDN, ArrayList<ModificationItem> mods) { LdapUtils.storeDiff(ldapObj, mods, "dicomNetworkConnectionReference", a.getConnections(), b.getConnections(), deviceDN); LdapUtils.storeDiffObject(ldapObj, mods, "dicomInstalled", a.getInstalled(), b.getInstalled(), null); return mods; }
private List<ModificationItem> storeDiffs(ConfigurationChanges.ModifiedObject ldapObj, BasicBulkDataDescriptor prev, BasicBulkDataDescriptor descriptor, ArrayList<ModificationItem> mods) { LdapUtils.storeDiff(ldapObj, mods, "dcmBulkDataExcludeDefaults", prev.isExcludeDefaults(), descriptor.isExcludeDefaults(), false); LdapUtils.storeDiff(ldapObj, mods, "dcmAttributeSelector", prev.getAttributeSelectors(), descriptor.getAttributeSelectors()); LdapUtils.storeDiff(ldapObj, mods, "dcmBulkDataVRLengthThreshold", prev.getLengthsThresholdsAsStrings(), descriptor.getLengthsThresholdsAsStrings()); return mods; }
private List<ModificationItem> storeDiffs(ConfigurationChanges.ModifiedObject ldapObj, AuditRecordRepository a, AuditRecordRepository b, String deviceDN, ArrayList<ModificationItem> mods) { LdapUtils.storeDiff(ldapObj, mods, "dicomNetworkConnectionReference", a.getConnections(), b.getConnections(), deviceDN); LdapUtils.storeDiffObject(ldapObj, mods, "dicomInstalled", a.getInstalled(), b.getInstalled(), null); return mods; }
private List<ModificationItem> storeRetryDiffs(Retry prev, Retry ac, ArrayList<ModificationItem> mods) { LdapUtils.storeDiff(mods, "dcmRetryDelay", prev.getDelay(), ac.getDelay()); LdapUtils.storeDiff(mods, "dcmRetryNum", prev.getNumberOfRetries(), ac.getNumberOfRetries()); LdapUtils.storeDiff(mods, "dcmDeleteAfterFinalRetry", prev.isDeleteAfterFinalRetry(), ac.isDeleteAfterFinalRetry()); return mods; } }
private List<ModificationItem> storeDiffs(ConfigurationChanges.ModifiedObject ldapObj, AttributeCoercion prev, AttributeCoercion ac, ArrayList<ModificationItem> mods) { LdapUtils.storeDiffObject(ldapObj, mods, "dcmDIMSE", prev.getDIMSE(), ac.getDIMSE(), null); LdapUtils.storeDiffObject(ldapObj, mods, "dicomTransferRole", prev.getRole(), ac.getRole(), null); LdapUtils.storeDiff(ldapObj, mods, "dcmAETitle", prev.getAETitles(), ac.getAETitles()); LdapUtils.storeDiff(ldapObj, mods, "dcmSOPClass", prev.getSOPClasses(), ac.getSOPClasses()); LdapUtils.storeDiffObject(ldapObj, mods, "dcmURI", prev.getURI(), ac.getURI(), null); return mods; }
private List<ModificationItem> storeDiffs(ConfigurationChanges.ModifiedObject ldapObj, BasicBulkDataDescriptor prev, BasicBulkDataDescriptor descriptor, ArrayList<ModificationItem> mods) { LdapUtils.storeDiff(ldapObj, mods, "dcmBulkDataExcludeDefaults", prev.isExcludeDefaults(), descriptor.isExcludeDefaults(), false); LdapUtils.storeDiff(ldapObj, mods, "dcmAttributeSelector", prev.getAttributeSelectors(), descriptor.getAttributeSelectors()); LdapUtils.storeDiff(ldapObj, mods, "dcmBulkDataVRLengthThreshold", prev.getLengthsThresholdsAsStrings(), descriptor.getLengthsThresholdsAsStrings()); return mods; }
private List<ModificationItem> storeDiffs(ConfigurationChanges.ModifiedObject ldapObj, AttributeCoercion prev, AttributeCoercion ac, ArrayList<ModificationItem> mods) { LdapUtils.storeDiffObject(ldapObj, mods, "dcmDIMSE", prev.getDIMSE(), ac.getDIMSE(), null); LdapUtils.storeDiffObject(ldapObj, mods, "dicomTransferRole", prev.getRole(), ac.getRole(), null); LdapUtils.storeDiff(ldapObj, mods, "dcmAETitle", prev.getAETitles(), ac.getAETitles()); LdapUtils.storeDiff(ldapObj, mods, "dcmSOPClass", prev.getSOPClasses(), ac.getSOPClasses()); LdapUtils.storeDiffObject(ldapObj, mods, "dcmURI", prev.getURI(), ac.getURI(), null); return mods; }
@Override protected void storeDiffs(Device a, Device b, List<ModificationItem> mods) { ProxyDeviceExtension pa = a.getDeviceExtension(ProxyDeviceExtension.class); ProxyDeviceExtension pb = b.getDeviceExtension(ProxyDeviceExtension.class); if (pa == null || pb == null) return; LdapUtils.storeDiff(mods, "dcmSchedulerInterval", pa.getSchedulerInterval(), pb.getSchedulerInterval()); LdapUtils.storeDiff(mods, "dcmForwardThreads", pa.getForwardThreads(), pb.getForwardThreads()); LdapUtils.storeDiff(mods, "dcmProxyConfigurationStaleTimeout", pa.getConfigurationStaleTimeout(), pb.getConfigurationStaleTimeout(), 0); }
private List<ModificationItem> storeDiffs(ConfigurationChanges.ModifiedObject ldapObj, WebApplication a, WebApplication b, String deviceDN, List<ModificationItem> mods) { LdapUtils.storeDiffObject(ldapObj, mods, "dicomDescription", a.getDescription(), b.getDescription(), null); LdapUtils.storeDiffObject(ldapObj, mods, "dcmWebServicePath", a.getServicePath(), b.getServicePath(), null); LdapUtils.storeDiff(ldapObj, mods, "dcmWebServiceClass", a.getServiceClasses(), b.getServiceClasses()); LdapUtils.storeDiffObject(ldapObj, mods, "dicomAETitle", a.getAETitle(), b.getAETitle(), null); LdapUtils.storeDiff(ldapObj, mods, "dicomApplicationCluster", a.getApplicationClusters(), b.getApplicationClusters()); LdapUtils.storeDiff(ldapObj, mods, "dicomNetworkConnectionReference", a.getConnections(), b.getConnections(), deviceDN); LdapUtils.storeDiffObject(ldapObj, mods, "dicomInstalled", a.getInstalled(), b.getInstalled(), null); return mods; }
private List<ModificationItem> storeFwdOptionDiff(ForwardOption a, ForwardOption b, ArrayList<ModificationItem> mods) { LdapUtils.storeDiff(mods, "dcmScheduleDays", a.getSchedule().getDays(), b.getSchedule().getDays()); LdapUtils.storeDiff(mods, "dcmScheduleHours", a.getSchedule().getHours(), b.getSchedule().getHours()); LdapUtils.storeDiff(mods, "dicomDescription", a.getDescription(), b.getDescription()); LdapUtils.storeDiff(mods, "dcmConvertEmf2Sf", a.isConvertEmf2Sf(), b.isConvertEmf2Sf()); return mods; }
private List<ModificationItem> storeDiffs(ConfigurationChanges.ModifiedObject ldapObj, CompressionRule prev, CompressionRule rule, List<ModificationItem> mods) { LdapUtils.storeDiff(ldapObj, mods, "dcmPhotometricInterpretation", prev.getPhotometricInterpretations(), rule.getPhotometricInterpretations()); LdapUtils.storeDiffObject(ldapObj, mods, "dcmBitsStored", prev.getBitsStored(), rule.getBitsStored(), null); LdapUtils.storeDiff(ldapObj, mods, "dcmPixelRepresentation", prev.getPixelRepresentation(), rule.getPixelRepresentation(), -1); LdapUtils.storeDiff(ldapObj, mods, "dcmAETitle", prev.getAETitles(), rule.getAETitles()); LdapUtils.storeDiff(ldapObj, mods, "dcmSOPClass", prev.getSOPClasses(), rule.getSOPClasses()); LdapUtils.storeDiff(ldapObj, mods, "dcmBodyPartExamined", prev.getBodyPartExamined(), rule.getBodyPartExamined()); LdapUtils.storeDiffObject(ldapObj, mods, "dicomTransferSyntax", prev.getTransferSyntax(), rule.getTransferSyntax(), null); LdapUtils.storeDiff(ldapObj, mods, "dcmImageWriteParam", prev.getImageWriteParams(), rule.getImageWriteParams()); return mods; }
@Override protected void storeDiffs(ApplicationEntity a, ApplicationEntity b, List<ModificationItem> mods) { ProxyAEExtension pa = a.getAEExtension(ProxyAEExtension.class); ProxyAEExtension pb = b.getAEExtension(ProxyAEExtension.class); if (pa == null || pb == null) return; LdapUtils.storeDiff(mods, "dcmSpoolDirectory", pa.getSpoolDirectory(), pb.getSpoolDirectory()); LdapUtils.storeDiff(mods, "dcmAcceptDataOnFailedAssociation", pa.isAcceptDataOnFailedAssociation(), pb.isAcceptDataOnFailedAssociation()); LdapUtils.storeDiff(mods, "dcmEnableAuditLog", pa.isEnableAuditLog(), pb.isEnableAuditLog()); LdapUtils.storeDiff(mods, "hl7ProxyPIXConsumerApplication", pa.getProxyPIXConsumerApplication(), pb.getProxyPIXConsumerApplication()); LdapUtils.storeDiff(mods, "hl7RemotePIXManagerApplication", pa.getRemotePIXManagerApplication(), pb.getRemotePIXManagerApplication()); LdapUtils.storeDiff(mods, "dcmDeleteFailedDataWithoutRetryConfiguration", pa.isDeleteFailedDataWithoutRetryConfiguration(), pb.isDeleteFailedDataWithoutRetryConfiguration()); LdapUtils.storeDiff(mods, "dcmDestinationAETitle", pa.getFallbackDestinationAET(), pb.getFallbackDestinationAET()); LdapUtils.storeDiff(mods, "dcmMergeStgCmtMessagesUsingANDLogic", pa.isMergeStgCmtMessagesUsingANDLogic(), pb.isMergeStgCmtMessagesUsingANDLogic()); }
private void storeDiffs(ConfigurationChanges.ModifiedObject ldapObj, StorageOptions prev, StorageOptions val, List<ModificationItem> mods) { if (prev != null ? prev.equals(val) : val == null) return; LdapUtils.storeDiff(ldapObj, mods, "dcmStorageConformance", prev != null ? prev.getLevelOfSupport().ordinal() : -1, val != null ? val.getLevelOfSupport().ordinal() : -1, -1); LdapUtils.storeDiff(ldapObj, mods, "dcmDigitalSignatureSupport", prev != null ? prev.getDigitalSignatureSupport().ordinal() : -1, val != null ? val.getDigitalSignatureSupport().ordinal() : -1, -1); LdapUtils.storeDiff(ldapObj, mods, "dcmDataElementCoercion", prev != null ? prev.getElementCoercion().ordinal() : -1, val != null ? val.getElementCoercion().ordinal() : -1, -1); }
private void storeDiffs(ConfigurationChanges.ModifiedObject ldapObj, StorageOptions prev, StorageOptions val, List<ModificationItem> mods) { if (prev != null ? prev.equals(val) : val == null) return; LdapUtils.storeDiff(ldapObj, mods, "dcmStorageConformance", prev != null ? prev.getLevelOfSupport().ordinal() : -1, val != null ? val.getLevelOfSupport().ordinal() : -1, -1); LdapUtils.storeDiff(ldapObj, mods, "dcmDigitalSignatureSupport", prev != null ? prev.getDigitalSignatureSupport().ordinal() : -1, val != null ? val.getDigitalSignatureSupport().ordinal() : -1, -1); LdapUtils.storeDiff(ldapObj, mods, "dcmDataElementCoercion", prev != null ? prev.getElementCoercion().ordinal() : -1, val != null ? val.getElementCoercion().ordinal() : -1, -1); }