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());
426 bool SaveToFile(
const std::string& filename)
const;
449 operator bool()
const {
return ok; }
533 bool Verbosity(
const std::string& newVerbosity);
544 const std::string&
Verbosity()
const {
return verbosity; }
565 bool Broker(
const std::string& name);
583 bool Broker(
const std::string& name,
const std::string& argument) { broker = std::make_pair<std::string, std::string>(name, argument);
return true;}
593 const std::pair<std::string, std::string>&
Broker()
const {
return broker; }
606 bool Bartender(
const std::vector<URL>& urls) { bartenders = urls;
return true; }
625 const std::vector<URL>&
Bartender()
const {
return bartenders; }
640 bool VOMSESPath(
const std::string& path) { vomsesPath = path;
return true; }
662 bool UserName(
const std::string& name) { username = name;
return true; }
671 const std::string&
UserName()
const {
return username; }
684 bool Password(
const std::string& newPassword) { password = newPassword;
return true; }
693 const std::string&
Password()
const {
return password; }
726 bool ProxyPath(
const std::string& newProxyPath) { proxyPath = newProxyPath;
return true;}
734 const std::string&
ProxyPath()
const {
return proxyPath; }
754 bool CertificatePath(
const std::string& newCertificatePath) { certificatePath = newCertificatePath;
return true; }
785 bool KeyPath(
const std::string& newKeyPath) { keyPath = newKeyPath;
return true; }
798 const std::string&
KeyPath()
const {
return keyPath; }
814 bool KeyPassword(
const std::string& newKeyPassword) { keyPassword = newKeyPassword;
return true; }
840 bool KeySize(
int newKeySize) { keySize = newKeySize;
return true;}
867 bool CACertificatePath(
const std::string& newCACertificatePath) { caCertificatePath = newCACertificatePath;
return true; }
895 bool CACertificatesDirectory(
const std::string& newCACertificatesDirectory) { caCertificatesDirectory = newCACertificatesDirectory;
return true; }
940 bool SLCS(
const URL& newSLCS) { slcs = newSLCS;
return true; }
960 bool StoreDirectory(
const std::string& newStoreDirectory) { storeDirectory = newStoreDirectory;
return true; }
982 bool JobDownloadDirectory(
const std::string& newDownloadDirectory) { downloadDirectory = newDownloadDirectory;
return true; }
1006 bool IdPName(
const std::string& name) { idPName = name;
return true; }
1014 const std::string&
IdPName()
const {
return idPName; }
1031 bool OverlayFile(
const std::string& path) { overlayfile = path;
return true; }
1086 infointerface = infointerface_;
1109 submissioninterface = submissioninterface_;
1134 void AddRejectDiscoveryURLs(
const std::list<std::string>& urls) { rejectDiscoveryURLs.insert(rejectDiscoveryURLs.end(), urls.begin(), urls.end()); }
1261 static bool makeDir(
const std::string& path);
1262 static bool copyFile(
const std::string& source,
1263 const std::string& destination);
1264 bool CreateDefaultConfigurationFile()
const;
1266 std::list<ConfigEndpoint> FilterServices(
const std::list<ConfigEndpoint>&,
ConfigEndpoint::Type);
1269 std::string joblistfile;
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;
1285 std::vector<URL> bartenders;
1287 std::string credentialString;
1288 std::string proxyPath;
1289 std::string certificatePath;
1290 std::string keyPath;
1291 std::string keyPassword;
1293 std::string caCertificatePath;
1294 std::string caCertificatesDirectory;
1295 Period certificateLifeTime;
1299 std::string vomsesPath;
1301 std::string storeDirectory;
1302 std::string downloadDirectory;
1303 std::string idPName;
1305 std::string username;
1306 std::string password;
1308 std::string overlayfile;
1309 std::string utilsdir;
1311 std::string submissioninterface;
1312 std::string infointerface;
1346 std::string x509_user_key_old;
1347 std::string x509_user_key_new;
1348 bool x509_user_key_set;
1349 std::string x509_user_cert_old;
1350 std::string x509_user_cert_new;
1351 bool x509_user_cert_set;
1352 std::string x509_user_proxy_old;
1353 std::string x509_user_proxy_new;
1354 bool x509_user_proxy_set;
1355 std::string ca_cert_dir_old;
1356 bool ca_cert_dir_set;
1363 #endif // __ARC_USERCONFIG_H__