comparison OrthancServer/Sources/ServerContext.h @ 5200:f8f1c4a9a216

New configuration option 'RestApiWriteToFileSystemEnabled'
author Alain Mazy <am@osimis.io>
date Wed, 29 Mar 2023 11:23:37 +0200
parents 0ea402b4d901
children 3a61fd50f804
comparison
equal deleted inserted replaced
5195:32df369198ac 5200:f8f1c4a9a216
246 unsigned int limitFindResults_; 246 unsigned int limitFindResults_;
247 247
248 std::unique_ptr<MetricsRegistry> metricsRegistry_; 248 std::unique_ptr<MetricsRegistry> metricsRegistry_;
249 bool isHttpServerSecure_; 249 bool isHttpServerSecure_;
250 bool isExecuteLuaEnabled_; 250 bool isExecuteLuaEnabled_;
251 bool isRestApiWriteToFileSystemEnabled_;
251 bool overwriteInstances_; 252 bool overwriteInstances_;
252 253
253 std::unique_ptr<StorageCommitmentReports> storageCommitmentReports_; 254 std::unique_ptr<StorageCommitmentReports> storageCommitmentReports_;
254 255
255 bool transcodeDicomProtocol_; 256 bool transcodeDicomProtocol_;
483 } 484 }
484 485
485 bool IsExecuteLuaEnabled() const 486 bool IsExecuteLuaEnabled() const
486 { 487 {
487 return isExecuteLuaEnabled_; 488 return isExecuteLuaEnabled_;
489 }
490
491 void SetRestApiWriteToFileSystemEnabled(bool enabled)
492 {
493 isRestApiWriteToFileSystemEnabled_ = enabled;
494 }
495
496 bool IsRestApiWriteToFileSystemEnabled() const
497 {
498 return isRestApiWriteToFileSystemEnabled_;
488 } 499 }
489 500
490 void SetOverwriteInstances(bool overwrite) 501 void SetOverwriteInstances(bool overwrite)
491 { 502 {
492 overwriteInstances_ = overwrite; 503 overwriteInstances_ = overwrite;