comparison OrthancServer/Sources/Database/StatelessDatabaseOperations.h @ 4640:66109d24d26e

"ETag" headers for metadata and attachments now allow strong comparison (MD5 is included)
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 26 Apr 2021 15:22:44 +0200
parents f7d5372b59b3
children da1edb7d6332
comparison
equal deleted inserted replaced
4639:c638dd444de0 4640:66109d24d26e
578 void SetMetadata(int64_t& newRevision /*out*/, 578 void SetMetadata(int64_t& newRevision /*out*/,
579 const std::string& publicId, 579 const std::string& publicId,
580 MetadataType type, 580 MetadataType type,
581 const std::string& value, 581 const std::string& value,
582 bool hasOldRevision, 582 bool hasOldRevision,
583 int64_t oldRevision); 583 int64_t oldRevision,
584 const std::string& oldMD5);
584 585
585 // Same as "SetMetadata()", but doesn't care about revisions 586 // Same as "SetMetadata()", but doesn't care about revisions
586 void OverwriteMetadata(const std::string& publicId, 587 void OverwriteMetadata(const std::string& publicId,
587 MetadataType type, 588 MetadataType type,
588 const std::string& value); 589 const std::string& value);
589 590
590 bool DeleteMetadata(const std::string& publicId, 591 bool DeleteMetadata(const std::string& publicId,
591 MetadataType type, 592 MetadataType type,
592 bool hasRevision, 593 bool hasRevision,
593 int64_t revision); 594 int64_t revision,
595 const std::string& md5);
594 596
595 uint64_t IncrementGlobalSequence(GlobalProperty sequence, 597 uint64_t IncrementGlobalSequence(GlobalProperty sequence,
596 bool shared); 598 bool shared);
597 599
598 void DeleteChanges(); 600 void DeleteChanges();
604 const std::string& value); 606 const std::string& value);
605 607
606 bool DeleteAttachment(const std::string& publicId, 608 bool DeleteAttachment(const std::string& publicId,
607 FileContentType type, 609 FileContentType type,
608 bool hasRevision, 610 bool hasRevision,
609 int64_t revision); 611 int64_t revision,
612 const std::string& md5);
610 613
611 void LogChange(int64_t internalId, 614 void LogChange(int64_t internalId,
612 ChangeType changeType, 615 ChangeType changeType,
613 const std::string& publicId, 616 const std::string& publicId,
614 ResourceType level); 617 ResourceType level);
632 const FileInfo& attachment, 635 const FileInfo& attachment,
633 const std::string& publicId, 636 const std::string& publicId,
634 uint64_t maximumStorageSize, 637 uint64_t maximumStorageSize,
635 unsigned int maximumPatients, 638 unsigned int maximumPatients,
636 bool hasOldRevision, 639 bool hasOldRevision,
637 int64_t oldRevision); 640 int64_t oldRevision,
641 const std::string& oldMd5);
638 }; 642 };
639 } 643 }