Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
4558:2f4d7ec9b993 | 4559:19b1921aee06 |
---|---|
160 ResourceType expectedType); | 160 ResourceType expectedType); |
161 | 161 |
162 void LogExportedResource(const std::string& publicId, | 162 void LogExportedResource(const std::string& publicId, |
163 const std::string& remoteModality); | 163 const std::string& remoteModality); |
164 | 164 |
165 bool IsProtectedPatient(const std::string& publicId); | |
166 | |
167 void SetProtectedPatient(const std::string& publicId, | 165 void SetProtectedPatient(const std::string& publicId, |
168 bool isProtected); | 166 bool isProtected); |
169 | |
170 void GetChildren(std::list<std::string>& result, | |
171 const std::string& publicId); | |
172 | |
173 void GetChildInstances(std::list<std::string>& result, | |
174 const std::string& publicId); | |
175 | 167 |
176 void SetMetadata(const std::string& publicId, | 168 void SetMetadata(const std::string& publicId, |
177 MetadataType type, | 169 MetadataType type, |
178 const std::string& value); | 170 const std::string& value); |
179 | 171 |
322 uint32_t maxResults) | 314 uint32_t maxResults) |
323 { | 315 { |
324 db_.GetChanges(target, done, since, maxResults); | 316 db_.GetChanges(target, done, since, maxResults); |
325 } | 317 } |
326 | 318 |
319 void GetChildrenInternalId(std::list<int64_t>& target, | |
320 int64_t id) | |
321 { | |
322 db_.GetChildrenInternalId(target, id); | |
323 } | |
324 | |
327 void GetChildrenPublicId(std::list<std::string>& target, | 325 void GetChildrenPublicId(std::list<std::string>& target, |
328 int64_t id) | 326 int64_t id) |
329 { | 327 { |
330 db_.GetChildrenPublicId(target, id); | 328 db_.GetChildrenPublicId(target, id); |
331 } | 329 } |
357 int64_t id) | 355 int64_t id) |
358 { | 356 { |
359 db_.GetMainDicomTags(map, id); | 357 db_.GetMainDicomTags(map, id); |
360 } | 358 } |
361 | 359 |
360 std::string GetPublicId(int64_t resourceId) | |
361 { | |
362 return db_.GetPublicId(resourceId); | |
363 } | |
364 | |
362 uint64_t GetResourceCount(ResourceType resourceType) | 365 uint64_t GetResourceCount(ResourceType resourceType) |
363 { | 366 { |
364 return db_.GetResourceCount(resourceType); | 367 return db_.GetResourceCount(resourceType); |
365 } | 368 } |
366 | 369 |
370 ResourceType GetResourceType(int64_t resourceId) | |
371 { | |
372 return db_.GetResourceType(resourceId); | |
373 } | |
374 | |
367 uint64_t GetTotalCompressedSize() | 375 uint64_t GetTotalCompressedSize() |
368 { | 376 { |
369 return db_.GetTotalCompressedSize(); | 377 return db_.GetTotalCompressedSize(); |
370 } | 378 } |
371 | 379 |
372 uint64_t GetTotalUncompressedSize() | 380 uint64_t GetTotalUncompressedSize() |
373 { | 381 { |
374 return db_.GetTotalUncompressedSize(); | 382 return db_.GetTotalUncompressedSize(); |
375 } | 383 } |
376 | 384 |
385 bool IsProtectedPatient(int64_t internalId) | |
386 { | |
387 return db_.IsProtectedPatient(internalId); | |
388 } | |
389 | |
377 bool LookupAttachment(FileInfo& attachment, | 390 bool LookupAttachment(FileInfo& attachment, |
378 int64_t id, | 391 int64_t id, |
379 FileContentType contentType) | 392 FileContentType contentType) |
380 { | 393 { |
381 return db_.LookupAttachment(attachment, id, contentType); | 394 return db_.LookupAttachment(attachment, id, contentType); |
490 int64_t since, | 503 int64_t since, |
491 unsigned int maxResults); | 504 unsigned int maxResults); |
492 | 505 |
493 void GetLastExportedResource(Json::Value& target); | 506 void GetLastExportedResource(Json::Value& target); |
494 | 507 |
508 bool IsProtectedPatient(const std::string& publicId); | |
509 | |
510 void GetChildren(std::list<std::string>& result, | |
511 const std::string& publicId); | |
512 | |
513 void GetChildInstances(std::list<std::string>& result, | |
514 const std::string& publicId); | |
495 }; | 515 }; |
496 } | 516 } |