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; }
554 bool Verbosity(
const std::string& newVerbosity);
565 const std::string&
Verbosity()
const {
return verbosity; }
586 bool Broker(
const std::string& name);
604 bool Broker(
const std::string& name,
const std::string& argument) { broker = std::make_pair<std::string, std::string>(name, argument);
return true;}
614 const std::pair<std::string, std::string>&
Broker()
const {
return broker; }
629 bool VOMSESPath(
const std::string& path) { vomsesPath = path;
return true; }
651 bool UserName(
const std::string& name) { username = name;
return true; }
660 const std::string&
UserName()
const {
return username; }
673 bool Password(
const std::string& newPassword) { password = newPassword;
return true; }
682 const std::string&
Password()
const {
return password; }
717 bool ProxyPath(
const std::string& newProxyPath) { proxyPath = newProxyPath;
return true;}
725 const std::string&
ProxyPath()
const {
return proxyPath; }
745 bool CertificatePath(
const std::string& newCertificatePath) { certificatePath = newCertificatePath;
return true; }
776 bool KeyPath(
const std::string& newKeyPath) { keyPath = newKeyPath;
return true; }
789 const std::string&
KeyPath()
const {
return keyPath; }
805 bool KeyPassword(
const std::string& newKeyPassword) { keyPassword = newKeyPassword;
return true; }
831 bool KeySize(
int newKeySize) { keySize = newKeySize;
return true;}
858 bool CACertificatePath(
const std::string& newCACertificatePath) { caCertificatePath = newCACertificatePath;
return true; }
886 bool CACertificatesDirectory(
const std::string& newCACertificatesDirectory) { caCertificatesDirectory = newCACertificatesDirectory;
return true; }
931 bool SLCS(
const URL& newSLCS) { slcs = newSLCS;
return true; }
951 bool StoreDirectory(
const std::string& newStoreDirectory) { storeDirectory = newStoreDirectory;
return true; }
973 bool JobDownloadDirectory(
const std::string& newDownloadDirectory) { downloadDirectory = newDownloadDirectory;
return true; }
997 bool IdPName(
const std::string& name) { idPName = name;
return true; }
1005 const std::string&
IdPName()
const {
return idPName; }
1022 bool OverlayFile(
const std::string& path) { overlayfile = path;
return true; }
1077 infointerface = infointerface_;
1100 submissioninterface = submissioninterface_;
1125 void AddRejectDiscoveryURLs(
const std::list<std::string>& urls) { rejectDiscoveryURLs.insert(rejectDiscoveryURLs.end(), urls.begin(), urls.end()); }
1262 static bool makeDir(
const std::string& path);
1263 static bool copyFile(
const std::string& source,
1264 const std::string& destination);
1265 bool CreateDefaultConfigurationFile()
const;
1267 std::list<ConfigEndpoint> FilterServices(
const std::list<ConfigEndpoint>&,
ConfigEndpoint::Type);
1270 std::string joblistfile;
1271 std::string joblisttype;
1275 std::string verbosity;
1278 std::pair<std::string, std::string> broker;
1280 std::list<ConfigEndpoint> defaultServices;
1281 std::map<std::string, ConfigEndpoint> allServices;
1282 std::map<std::string, std::list<ConfigEndpoint> > groupMap;
1283 std::list<std::string> rejectDiscoveryURLs;
1284 std::list<std::string> rejectManagementURLs;
1286 std::string credentialString;
1287 std::string proxyPath;
1288 std::string certificatePath;
1289 std::string keyPath;
1290 std::string keyPassword;
1292 std::string caCertificatePath;
1293 std::string caCertificatesDirectory;
1294 Period certificateLifeTime;
1298 std::string vomsesPath;
1300 std::string storeDirectory;
1301 std::string downloadDirectory;
1302 std::string idPName;
1304 std::string username;
1305 std::string password;
1307 std::string overlayfile;
1308 std::string utilsdir;
1310 std::string submissioninterface;
1311 std::string infointerface;
1345 std::string x509_user_key_old;
1346 std::string x509_user_key_new;
1347 bool x509_user_key_set;
1348 std::string x509_user_cert_old;
1349 std::string x509_user_cert_new;
1350 bool x509_user_cert_set;
1351 std::string x509_user_proxy_old;
1352 std::string x509_user_proxy_new;
1353 bool x509_user_proxy_set;
1354 std::string ca_cert_dir_old;
1355 bool ca_cert_dir_set;
1362 #endif // __ARC_USERCONFIG_H__