private byte[] negotiate(ExtendedNegotiation exneg, TransferCapability tc) { if (exneg == null) return null; StorageOptions storageOptions = tc.getStorageOptions(); if (storageOptions != null) return storageOptions.toExtendedNegotiationInformation(); EnumSet<QueryOption> queryOptions = tc.getQueryOptions(); if (queryOptions != null) { EnumSet<QueryOption> commonOpts = QueryOption.toOptions(exneg); commonOpts.retainAll(queryOptions); return QueryOption.toExtendedNegotiationInformation(commonOpts); } return null; }
private byte[] negotiate(ExtendedNegotiation exneg, TransferCapability tc) { if (exneg == null) return null; StorageOptions storageOptions = tc.getStorageOptions(); if (storageOptions != null) return storageOptions.toExtendedNegotiationInformation(); EnumSet<QueryOption> queryOptions = tc.getQueryOptions(); if (queryOptions != null) { EnumSet<QueryOption> commonOpts = QueryOption.toOptions(exneg); commonOpts.retainAll(queryOptions); return QueryOption.toExtendedNegotiationInformation(commonOpts); } return null; }
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, 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; }
LdapUtils.storeNotEmpty(ldapObj, attrs, "dcmPreferredTransferSyntax", LdapUtils.addOrdinalPrefix(tc.getPreferredTransferSyntaxes())); EnumSet<QueryOption> queryOpts = tc.getQueryOptions(); if (queryOpts != null) { LdapUtils.storeNotDef(ldapObj, attrs, "dcmRelationalQueries",
if (extended) { writer.writeNotEmpty("dcmPreferredTransferSyntax", tc.getPreferredTransferSyntaxes()); EnumSet<QueryOption> queryOpts = tc.getQueryOptions(); StorageOptions storageOpts = tc.getStorageOptions(); if (queryOpts != null || storageOpts != null) {
LdapUtils.storeNotEmpty(ldapObj, attrs, "dcmPreferredTransferSyntax", LdapUtils.addOrdinalPrefix(tc.getPreferredTransferSyntaxes())); EnumSet<QueryOption> queryOpts = tc.getQueryOptions(); if (queryOpts != null) { LdapUtils.storeNotDef(ldapObj, attrs, "dcmRelationalQueries",
if (extended) { writer.writeNotEmpty("dcmPreferredTransferSyntax", tc.getPreferredTransferSyntaxes()); EnumSet<QueryOption> queryOpts = tc.getQueryOptions(); StorageOptions storageOpts = tc.getStorageOptions(); if (queryOpts != null || storageOpts != null) {