comparison OrthancServer/Sources/Database/IDatabaseWrapper.h @ 4607:f75c63aa9de0 db-changes

differentiating between shared and private global properties
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 30 Mar 2021 18:10:27 +0200
parents cc64385593ef
children 95ffe3b6ef7c
comparison
equal deleted inserted replaced
4606:d01702fb29a9 4607:f75c63aa9de0
153 153
154 virtual bool LookupAttachment(FileInfo& attachment, 154 virtual bool LookupAttachment(FileInfo& attachment,
155 int64_t id, 155 int64_t id,
156 FileContentType contentType) = 0; 156 FileContentType contentType) = 0;
157 157
158 /**
159 * If "shared" is "true", the property is shared by all the
160 * Orthanc servers that access the same database. If "shared" is
161 * "false", the property is private to the server (cf. the
162 * "DatabaseServerIdentifier" configuration option).
163 **/
158 virtual bool LookupGlobalProperty(std::string& target, 164 virtual bool LookupGlobalProperty(std::string& target,
159 GlobalProperty property) = 0; 165 GlobalProperty property,
166 bool shared) = 0;
160 167
161 virtual bool LookupMetadata(std::string& target, 168 virtual bool LookupMetadata(std::string& target,
162 int64_t id, 169 int64_t id,
163 MetadataType type) = 0; 170 MetadataType type) = 0;
164 171
173 180
174 virtual bool SelectPatientToRecycle(int64_t& internalId, 181 virtual bool SelectPatientToRecycle(int64_t& internalId,
175 int64_t patientIdToAvoid) = 0; 182 int64_t patientIdToAvoid) = 0;
176 183
177 virtual void SetGlobalProperty(GlobalProperty property, 184 virtual void SetGlobalProperty(GlobalProperty property,
185 bool shared,
178 const std::string& value) = 0; 186 const std::string& value) = 0;
179 187
180 virtual void ClearMainDicomTags(int64_t id) = 0; 188 virtual void ClearMainDicomTags(int64_t id) = 0;
181 189
182 virtual void SetMetadata(int64_t id, 190 virtual void SetMetadata(int64_t id,