diff OrthancServer/Database/IDatabaseWrapper.h @ 3187:4bbadcd03966

refactoring retrieval of metadata from database
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 04 Feb 2019 12:06:19 +0100
parents 0fa7181ac4e5
children 94f4a18a79cc
line wrap: on
line diff
--- a/OrthancServer/Database/IDatabaseWrapper.h	Fri Feb 01 09:28:12 2019 +0100
+++ b/OrthancServer/Database/IDatabaseWrapper.h	Mon Feb 04 12:06:19 2019 +0100
@@ -153,9 +153,6 @@
 
     virtual bool IsProtectedPatient(int64_t internalId) = 0;
 
-    virtual void ListAvailableMetadata(std::list<MetadataType>& target,
-                                       int64_t id) = 0;
-
     virtual void ListAvailableAttachments(std::list<FileContentType>& target,
                                           int64_t id) = 0;
 
@@ -245,5 +242,15 @@
                                      MetadataType metadata) = 0;
 
     virtual int64_t GetLastChangeIndex() = 0;
+
+
+    /**
+     * Primitives introduced in Orthanc 1.5.4
+     **/
+
+    virtual bool LookupResourceAndParent(int64_t& id,
+                                         ResourceType& type,
+                                         std::string& parentPublicId,
+                                         const std::string& publicId) = 0;
   };
 }