comparison OrthancServer/Sources/ServerIndex.h @ 4560:929409e40008 db-changes

cont
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 04 Mar 2021 18:42:25 +0100
parents 19b1921aee06
children 02510325d869
comparison
equal deleted inserted replaced
4559:19b1921aee06 4560:929409e40008
170 const std::string& value); 170 const std::string& value);
171 171
172 void DeleteMetadata(const std::string& publicId, 172 void DeleteMetadata(const std::string& publicId,
173 MetadataType type); 173 MetadataType type);
174 174
175 bool LookupMetadata(std::string& target,
176 const std::string& publicId,
177 ResourceType expectedType,
178 MetadataType type);
179
180 void ListAvailableAttachments(std::set<FileContentType>& target,
181 const std::string& publicId,
182 ResourceType expectedType);
183
184 bool LookupParent(std::string& target,
185 const std::string& publicId);
186
187 uint64_t IncrementGlobalSequence(GlobalProperty sequence); 175 uint64_t IncrementGlobalSequence(GlobalProperty sequence);
188 176
189 void LogChange(ChangeType changeType, 177 void LogChange(ChangeType changeType,
190 const std::string& publicId); 178 const std::string& publicId);
191 179
385 bool IsProtectedPatient(int64_t internalId) 373 bool IsProtectedPatient(int64_t internalId)
386 { 374 {
387 return db_.IsProtectedPatient(internalId); 375 return db_.IsProtectedPatient(internalId);
388 } 376 }
389 377
378 void ListAvailableAttachments(std::set<FileContentType>& target,
379 int64_t id)
380 {
381 db_.ListAvailableAttachments(target, id);
382 }
383
390 bool LookupAttachment(FileInfo& attachment, 384 bool LookupAttachment(FileInfo& attachment,
391 int64_t id, 385 int64_t id,
392 FileContentType contentType) 386 FileContentType contentType)
393 { 387 {
394 return db_.LookupAttachment(attachment, id, contentType); 388 return db_.LookupAttachment(attachment, id, contentType);
395 } 389 }
396 390
391 bool LookupMetadata(std::string& target,
392 int64_t id,
393 MetadataType type)
394 {
395 return db_.LookupMetadata(target, id, type);
396 }
397
398 bool LookupParent(int64_t& parentId,
399 int64_t resourceId)
400 {
401 return db_.LookupParent(parentId, resourceId);
402 }
403
397 bool LookupResource(int64_t& id, 404 bool LookupResource(int64_t& id,
398 ResourceType& type, 405 ResourceType& type,
399 const std::string& publicId) 406 const std::string& publicId)
400 { 407 {
401 return db_.LookupResource(id, type, publicId); 408 return db_.LookupResource(id, type, publicId);
510 void GetChildren(std::list<std::string>& result, 517 void GetChildren(std::list<std::string>& result,
511 const std::string& publicId); 518 const std::string& publicId);
512 519
513 void GetChildInstances(std::list<std::string>& result, 520 void GetChildInstances(std::list<std::string>& result,
514 const std::string& publicId); 521 const std::string& publicId);
522
523 bool LookupMetadata(std::string& target,
524 const std::string& publicId,
525 ResourceType expectedType,
526 MetadataType type);
527
528 void ListAvailableAttachments(std::set<FileContentType>& target,
529 const std::string& publicId,
530 ResourceType expectedType);
531
532 bool LookupParent(std::string& target,
533 const std::string& publicId);
515 }; 534 };
516 } 535 }