Mercurial > hg > orthanc
diff OrthancServer/Sources/ServerIndex.h @ 4559:19b1921aee06 db-changes
cont
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 04 Mar 2021 17:59:40 +0100 |
parents | 2f4d7ec9b993 |
children | 929409e40008 |
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerIndex.h Thu Mar 04 16:58:35 2021 +0100 +++ b/OrthancServer/Sources/ServerIndex.h Thu Mar 04 17:59:40 2021 +0100 @@ -162,17 +162,9 @@ void LogExportedResource(const std::string& publicId, const std::string& remoteModality); - bool IsProtectedPatient(const std::string& publicId); - void SetProtectedPatient(const std::string& publicId, bool isProtected); - void GetChildren(std::list<std::string>& result, - const std::string& publicId); - - void GetChildInstances(std::list<std::string>& result, - const std::string& publicId); - void SetMetadata(const std::string& publicId, MetadataType type, const std::string& value); @@ -324,6 +316,12 @@ db_.GetChanges(target, done, since, maxResults); } + void GetChildrenInternalId(std::list<int64_t>& target, + int64_t id) + { + db_.GetChildrenInternalId(target, id); + } + void GetChildrenPublicId(std::list<std::string>& target, int64_t id) { @@ -359,11 +357,21 @@ db_.GetMainDicomTags(map, id); } + std::string GetPublicId(int64_t resourceId) + { + return db_.GetPublicId(resourceId); + } + uint64_t GetResourceCount(ResourceType resourceType) { return db_.GetResourceCount(resourceType); } + ResourceType GetResourceType(int64_t resourceId) + { + return db_.GetResourceType(resourceId); + } + uint64_t GetTotalCompressedSize() { return db_.GetTotalCompressedSize(); @@ -374,6 +382,11 @@ return db_.GetTotalUncompressedSize(); } + bool IsProtectedPatient(int64_t internalId) + { + return db_.IsProtectedPatient(internalId); + } + bool LookupAttachment(FileInfo& attachment, int64_t id, FileContentType contentType) @@ -492,5 +505,12 @@ void GetLastExportedResource(Json::Value& target); + bool IsProtectedPatient(const std::string& publicId); + + void GetChildren(std::list<std::string>& result, + const std::string& publicId); + + void GetChildInstances(std::list<std::string>& result, + const std::string& publicId); }; }