/// <summary> /// Read the login.properties file to receive the session ticket. /// </summary> public override void login() { IXProperties lprops = new IXProperties(); lprops.Read(loginProperties); lrVal = readLoginResult(lprops); }
private static IXProperties ReadConfigPropertiesInDir(String dir) { IXProperties props = null; if (dir.Length != 0 && Directory.Exists(dir)) { String confFile = Path.Combine(dir, "conf.properties"); if (File.Exists(confFile)) { props = new IXProperties(); props.Read(confFile); String localFile = Path.Combine(dir, "local.properties"); if (File.Exists(localFile)) { props.Read(localFile); } } } return(props); }
private void findFiles(List <string> checkoutFiles, List <string> deletedFiles) { // Sammle alle Dateien im Checkout-Verzeichnis findFilesInDir(checkoutDir, checkoutFiles); // Hole aus checkoutobjs.properties die aktuell ausgecheckten Dokumente und // lese sie in map ein. IXProperties checkoutMap = new IXProperties(); checkoutMap.Read(Path.Combine(checkoutDir.FullName, "checkoutobjs.properties")); // Gelöschte Dateien sind diejenigen, die in der checkoutMap aber nicht in checkoutFiles enthalten sind. findDeletedFiles(checkoutMap, checkoutFiles, deletedFiles); }
/// <summary> /// Creates a connection to IndexServer that is initialized by the /// session ticket of ELOFS. /// </summary> /// <param name="arcName">Archive name</param> /// <returns>Connection to IndexServer</returns> protected virtual FSConnection CreateConnection(String arcName) { String login_properties = getLoginPropertiesFileName(arcName); IXProperties lprops = new IXProperties(); lprops.Read(login_properties); String url = lprops["url"]; IXClient ixClient = new IXClient(url, nbOfConnections, timeoutSeconds); FSConnLogin connLogin = new FSConnLogin(ixClient, login_properties); IXProperties connProps = new IXProperties(); FSConnection conn = new FSConnection(config, arcName, new IXConnection(ixClient, connLogin, connProps)); return(conn); }