Mercurial > hg > orthanc
comparison OrthancServer/Sources/Database/StatelessDatabaseOperations.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 | 2684544ff03c |
comparison
equal
deleted
inserted
replaced
4606:d01702fb29a9 | 4607:f75c63aa9de0 |
---|---|
244 { | 244 { |
245 return transaction_.LookupAttachment(attachment, id, contentType); | 245 return transaction_.LookupAttachment(attachment, id, contentType); |
246 } | 246 } |
247 | 247 |
248 bool LookupGlobalProperty(std::string& target, | 248 bool LookupGlobalProperty(std::string& target, |
249 GlobalProperty property) | 249 GlobalProperty property, |
250 { | 250 bool shared) |
251 return transaction_.LookupGlobalProperty(target, property); | 251 { |
252 return transaction_.LookupGlobalProperty(target, property, shared); | |
252 } | 253 } |
253 | 254 |
254 bool LookupMetadata(std::string& target, | 255 bool LookupMetadata(std::string& target, |
255 int64_t id, | 256 int64_t id, |
256 MetadataType type) | 257 MetadataType type) |
347 { | 348 { |
348 transaction_.LogExportedResource(resource); | 349 transaction_.LogExportedResource(resource); |
349 } | 350 } |
350 | 351 |
351 void SetGlobalProperty(GlobalProperty property, | 352 void SetGlobalProperty(GlobalProperty property, |
353 bool shared, | |
352 const std::string& value) | 354 const std::string& value) |
353 { | 355 { |
354 transaction_.SetGlobalProperty(property, value); | 356 transaction_.SetGlobalProperty(property, shared, value); |
355 } | 357 } |
356 | 358 |
357 void SetMetadata(int64_t id, | 359 void SetMetadata(int64_t id, |
358 MetadataType type, | 360 MetadataType type, |
359 const std::string& value) | 361 const std::string& value) |
518 ResourceType level, | 520 ResourceType level, |
519 const DicomTag& tag, | 521 const DicomTag& tag, |
520 const std::string& value); | 522 const std::string& value); |
521 | 523 |
522 bool LookupGlobalProperty(std::string& value, | 524 bool LookupGlobalProperty(std::string& value, |
523 GlobalProperty property); | 525 GlobalProperty property, |
526 bool shared); | |
524 | 527 |
525 std::string GetGlobalProperty(GlobalProperty property, | 528 std::string GetGlobalProperty(GlobalProperty property, |
529 bool shared, | |
526 const std::string& defaultValue); | 530 const std::string& defaultValue); |
527 | 531 |
528 bool GetMainDicomTags(DicomMap& result, | 532 bool GetMainDicomTags(DicomMap& result, |
529 const std::string& publicId, | 533 const std::string& publicId, |
530 ResourceType expectedType, | 534 ResourceType expectedType, |
562 const std::string& value); | 566 const std::string& value); |
563 | 567 |
564 void DeleteMetadata(const std::string& publicId, | 568 void DeleteMetadata(const std::string& publicId, |
565 MetadataType type); | 569 MetadataType type); |
566 | 570 |
567 uint64_t IncrementGlobalSequence(GlobalProperty sequence); | 571 uint64_t IncrementGlobalSequence(GlobalProperty sequence, |
572 bool shared); | |
568 | 573 |
569 void DeleteChanges(); | 574 void DeleteChanges(); |
570 | 575 |
571 void DeleteExportedResources(); | 576 void DeleteExportedResources(); |
572 | 577 |
573 void SetGlobalProperty(GlobalProperty property, | 578 void SetGlobalProperty(GlobalProperty property, |
579 bool shared, | |
574 const std::string& value); | 580 const std::string& value); |
575 | 581 |
576 void DeleteAttachment(const std::string& publicId, | 582 void DeleteAttachment(const std::string& publicId, |
577 FileContentType type); | 583 FileContentType type); |
578 | 584 |