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; }
709 bool ProxyPath(
const std::string& newProxyPath) { proxyPath = newProxyPath;
return true;}
717 const std::string&
ProxyPath()
const {
return proxyPath; }
737 bool CertificatePath(
const std::string& newCertificatePath) { certificatePath = newCertificatePath;
return true; }
768 bool KeyPath(
const std::string& newKeyPath) { keyPath = newKeyPath;
return true; }
781 const std::string&
KeyPath()
const {
return keyPath; }
797 bool KeyPassword(
const std::string& newKeyPassword) { keyPassword = newKeyPassword;
return true; }
823 bool KeySize(
int newKeySize) { keySize = newKeySize;
return true;}
850 bool CACertificatePath(
const std::string& newCACertificatePath) { caCertificatePath = newCACertificatePath;
return true; }
878 bool CACertificatesDirectory(
const std::string& newCACertificatesDirectory) { caCertificatesDirectory = newCACertificatesDirectory;
return true; }
923 bool SLCS(
const URL& newSLCS) { slcs = newSLCS;
return true; }
943 bool StoreDirectory(
const std::string& newStoreDirectory) { storeDirectory = newStoreDirectory;
return true; }
965 bool JobDownloadDirectory(
const std::string& newDownloadDirectory) { downloadDirectory = newDownloadDirectory;
return true; }
989 bool IdPName(
const std::string& name) { idPName = name;
return true; }
997 const std::string&
IdPName()
const {
return idPName; }
1014 bool OverlayFile(
const std::string& path) { overlayfile = path;
return true; }
1069 infointerface = infointerface_;
1092 submissioninterface = submissioninterface_;
1117 void AddRejectDiscoveryURLs(
const std::list<std::string>& urls) { rejectDiscoveryURLs.insert(rejectDiscoveryURLs.end(), urls.begin(), urls.end()); }
1244 static bool makeDir(
const std::string& path);
1245 static bool copyFile(
const std::string& source,
1246 const std::string& destination);
1247 bool CreateDefaultConfigurationFile()
const;
1249 std::list<ConfigEndpoint> FilterServices(
const std::list<ConfigEndpoint>&,
ConfigEndpoint::Type);
1252 std::string joblistfile;
1256 std::string verbosity;
1259 std::pair<std::string, std::string> broker;
1261 std::list<ConfigEndpoint> defaultServices;
1262 std::map<std::string, ConfigEndpoint> allServices;
1263 std::map<std::string, std::list<ConfigEndpoint> > groupMap;
1264 std::list<std::string> rejectDiscoveryURLs;
1265 std::list<std::string> rejectManagementURLs;
1268 std::vector<URL> bartenders;
1270 std::string proxyPath;
1271 std::string certificatePath;
1272 std::string keyPath;
1273 std::string keyPassword;
1275 std::string caCertificatePath;
1276 std::string caCertificatesDirectory;
1277 Period certificateLifeTime;
1281 std::string vomsesPath;
1283 std::string storeDirectory;
1284 std::string downloadDirectory;
1285 std::string idPName;
1287 std::string username;
1288 std::string password;
1290 std::string overlayfile;
1291 std::string utilsdir;
1293 std::string submissioninterface;
1294 std::string infointerface;
1328 std::string x509_user_key_old;
1329 std::string x509_user_key_new;
1330 bool x509_user_key_set;
1331 std::string x509_user_cert_old;
1332 std::string x509_user_cert_new;
1333 bool x509_user_cert_set;
1334 std::string x509_user_proxy_old;
1335 std::string x509_user_proxy_new;
1336 bool x509_user_proxy_set;
1337 std::string ca_cert_dir_old;
1338 bool ca_cert_dir_set;
1345 #endif // __ARC_USERCONFIG_H__