comparison OrthancServer/Sources/Database/StatelessDatabaseOperations.h @ 5248:a7d95f951f8a db-protobuf

replaced "WithLabels" and "WithoutLabels", by "Labels" and "LabelsConstraint"
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 07 Apr 2023 22:18:37 +0200
parents 367e8af46cfd
children f22c8fac764b
comparison
equal deleted inserted replaced
5247:eb2684260c19 5248:a7d95f951f8a
205 205
206 void ApplyLookupResources(std::list<std::string>& resourcesId, 206 void ApplyLookupResources(std::list<std::string>& resourcesId,
207 std::list<std::string>* instancesId, // Can be NULL if not needed 207 std::list<std::string>* instancesId, // Can be NULL if not needed
208 const std::vector<DatabaseConstraint>& lookup, 208 const std::vector<DatabaseConstraint>& lookup,
209 ResourceType queryLevel, 209 ResourceType queryLevel,
210 const std::set<std::string>& withLabels, 210 const std::set<std::string>& labels, // New in Orthanc 1.12.0
211 const std::set<std::string>& withoutLabels, 211 LabelsConstraint labelsConstraint, // New in Orthanc 1.12.0
212 uint32_t limit) 212 uint32_t limit)
213 { 213 {
214 return transaction_.ApplyLookupResources(resourcesId, instancesId, lookup, queryLevel, withLabels, withoutLabels, limit); 214 return transaction_.ApplyLookupResources(resourcesId, instancesId, lookup, queryLevel,
215 labels, labelsConstraint, limit);
215 } 216 }
216 217
217 void GetAllMetadata(std::map<MetadataType, std::string>& target, 218 void GetAllMetadata(std::map<MetadataType, std::string>& target,
218 int64_t id) 219 int64_t id)
219 { 220 {
674 675
675 void ApplyLookupResources(std::vector<std::string>& resourcesId, 676 void ApplyLookupResources(std::vector<std::string>& resourcesId,
676 std::vector<std::string>* instancesId, // Can be NULL if not needed 677 std::vector<std::string>* instancesId, // Can be NULL if not needed
677 const DatabaseLookup& lookup, 678 const DatabaseLookup& lookup,
678 ResourceType queryLevel, 679 ResourceType queryLevel,
679 const std::set<std::string>& withLabels, 680 const std::set<std::string>& labels,
680 const std::set<std::string>& withoutLabels, 681 LabelsConstraint labelsConstraint,
681 uint32_t limit); 682 uint32_t limit);
682 683
683 bool DeleteResource(Json::Value& remainingAncestor /* out */, 684 bool DeleteResource(Json::Value& remainingAncestor /* out */,
684 const std::string& uuid, 685 const std::string& uuid,
685 ResourceType expectedType); 686 ResourceType expectedType);