comparison OrthancServer/OrthancRestApi/OrthancRestModalities.cpp @ 2944:f395460af74d

simplifying OrthancConfiguration for modalities/peers
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 29 Nov 2018 16:31:20 +0100
parents 4767d36679ed
children d2e548e643af
comparison
equal deleted inserted replaced
2941:e292798f9980 2944:f395460af74d
840 for (OrthancRestApi::SetOfStrings::const_iterator 840 for (OrthancRestApi::SetOfStrings::const_iterator
841 it = peers.begin(); it != peers.end(); ++it) 841 it = peers.begin(); it != peers.end(); ++it)
842 { 842 {
843 WebServiceParameters peer; 843 WebServiceParameters peer;
844 844
845 if (lock.GetConfiguration().GetOrthancPeer(peer, *it)) 845 if (lock.GetConfiguration().LookupOrthancPeer(peer, *it))
846 { 846 {
847 Json::Value jsonPeer = Json::objectValue; 847 Json::Value jsonPeer = Json::objectValue;
848 // only return the minimum information to identify the 848 // only return the minimum information to identify the
849 // destination, do not include "security" information like 849 // destination, do not include "security" information like
850 // passwords 850 // passwords
897 if (GetInstancesToExport(request, *job, remote, call)) 897 if (GetInstancesToExport(request, *job, remote, call))
898 { 898 {
899 OrthancConfiguration::ReaderLock lock; 899 OrthancConfiguration::ReaderLock lock;
900 900
901 WebServiceParameters peer; 901 WebServiceParameters peer;
902 if (lock.GetConfiguration().GetOrthancPeer(peer, remote)) 902 if (lock.GetConfiguration().LookupOrthancPeer(peer, remote))
903 { 903 {
904 job->SetPeer(peer); 904 job->SetPeer(peer);
905 OrthancRestApi::GetApi(call).SubmitCommandsJob 905 OrthancRestApi::GetApi(call).SubmitCommandsJob
906 (call, job.release(), true /* synchronous by default */, request); 906 (call, job.release(), true /* synchronous by default */, request);
907 } 907 }