3 #ifndef __ARC_USERCONFIG_H__
4 #define __ARC_USERCONFIG_H__
10 #include <arc/ArcConfig.h>
11 #include <arc/DateTime.h>
73 operator bool()
const {
246 bool loadSysConfig =
true);
274 const std::string& jfile,
276 bool loadSysConfig =
true);
389 return !((proxyPath.empty() && (certificatePath.empty() || keyPath.empty())) || caCertificatesDirectory.empty());
428 bool SaveToFile(
const std::string& filename)
const;
454 operator bool()
const {
return ok; }
552 bool Verbosity(
const std::string& newVerbosity);
563 const std::string&
Verbosity()
const {
return verbosity; }
584 bool Broker(
const std::string& name);
602 bool Broker(
const std::string& name,
const std::string& argument) { broker = std::make_pair<std::string, std::string>(name, argument);
return true;}
612 const std::pair<std::string, std::string>&
Broker()
const {
return broker; }
627 bool VOMSESPath(
const std::string& path) { vomsesPath = path;
return true; }
649 bool UserName(
const std::string& name) { username = name;
return true; }
658 const std::string&
UserName()
const {
return username; }
671 bool Password(
const std::string& newPassword) { password = newPassword;
return true; }
680 const std::string&
Password()
const {
return password; }
715 bool ProxyPath(
const std::string& newProxyPath) { proxyPath = newProxyPath;
return true;}
723 const std::string&
ProxyPath()
const {
return proxyPath; }
743 bool CertificatePath(
const std::string& newCertificatePath) { certificatePath = newCertificatePath;
return true; }
774 bool KeyPath(
const std::string& newKeyPath) { keyPath = newKeyPath;
return true; }
787 const std::string&
KeyPath()
const {
return keyPath; }
803 bool KeyPassword(
const std::string& newKeyPassword) { keyPassword = newKeyPassword;
return true; }
829 bool KeySize(
int newKeySize) { keySize = newKeySize;
return true;}
856 bool CACertificatePath(
const std::string& newCACertificatePath) { caCertificatePath = newCACertificatePath;
return true; }
884 bool CACertificatesDirectory(
const std::string& newCACertificatesDirectory) { caCertificatesDirectory = newCACertificatesDirectory;
return true; }
929 bool SLCS(
const URL& newSLCS) { slcs = newSLCS;
return true; }
949 bool StoreDirectory(
const std::string& newStoreDirectory) { storeDirectory = newStoreDirectory;
return true; }
971 bool JobDownloadDirectory(
const std::string& newDownloadDirectory) { downloadDirectory = newDownloadDirectory;
return true; }
995 bool IdPName(
const std::string& name) { idPName = name;
return true; }
1003 const std::string&
IdPName()
const {
return idPName; }
1020 bool OverlayFile(
const std::string& path) { overlayfile = path;
return true; }
1075 infointerface = infointerface_;
1098 submissioninterface = submissioninterface_;
1123 void AddRejectDiscoveryURLs(
const std::list<std::string>& urls) { rejectDiscoveryURLs.insert(rejectDiscoveryURLs.end(), urls.begin(), urls.end()); }
1260 static bool makeDir(
const std::string& path);
1261 static bool copyFile(
const std::string& source,
1262 const std::string& destination);
1263 bool CreateDefaultConfigurationFile()
const;
1265 std::list<ConfigEndpoint> FilterServices(
const std::list<ConfigEndpoint>&,
ConfigEndpoint::Type);
1268 std::string joblistfile;
1269 std::string joblisttype;
1273 std::string verbosity;
1276 std::pair<std::string, std::string> broker;
1278 std::list<ConfigEndpoint> defaultServices;
1279 std::map<std::string, ConfigEndpoint> allServices;
1280 std::map<std::string, std::list<ConfigEndpoint> > groupMap;
1281 std::list<std::string> rejectDiscoveryURLs;
1282 std::list<std::string> rejectManagementURLs;
1284 std::string credentialString;
1285 std::string proxyPath;
1286 std::string certificatePath;
1287 std::string keyPath;
1288 std::string keyPassword;
1290 std::string caCertificatePath;
1291 std::string caCertificatesDirectory;
1292 Period certificateLifeTime;
1296 std::string vomsesPath;
1298 std::string storeDirectory;
1299 std::string downloadDirectory;
1300 std::string idPName;
1302 std::string username;
1303 std::string password;
1305 std::string overlayfile;
1306 std::string utilsdir;
1308 std::string submissioninterface;
1309 std::string infointerface;
1343 std::string x509_user_key_old;
1344 std::string x509_user_key_new;
1345 bool x509_user_key_set;
1346 std::string x509_user_cert_old;
1347 std::string x509_user_cert_new;
1348 bool x509_user_cert_set;
1349 std::string x509_user_proxy_old;
1350 std::string x509_user_proxy_new;
1351 bool x509_user_proxy_set;
1352 std::string ca_cert_dir_old;
1353 bool ca_cert_dir_set;
1360 #endif // __ARC_USERCONFIG_H__