public SparkleFetcher(string server, string required_fingerprint, string remote_path,
            string target_folder, bool fetch_prior_history, string canonical_name, string repository, string path,
            string user, string password, ActivityListener activityListener)
            : base(server, required_fingerprint,
                remote_path, target_folder, fetch_prior_history, repository, path, user, password)
        {
            Console.WriteLine("Cmis SparkleFetcher constructor");
            TargetFolder = target_folder;
            RemoteUrl    = new Uri (server);

            Directory.CreateDirectory(Path.Combine(SparkleFolder.ROOT_FOLDER, canonical_name));

            Cmis cmis = new Cmis(canonical_name, path, remote_path, server, user, password, repository, activityListener);
            cmis.Sync();
        }
Example #2
0
 public SparkleRepo(string path, SparkleConfig config, ActivityListener activityListener)
     : base(path, config)
 {
     cmis = new Cmis(path, config, activityListener);
     SparkleLogger.LogInfo("Sync", "Cmis:" + cmis);
 }
Example #3
0
 public void Sync()
 {
     testServers.ForEach(delegate(TestServer testServer)
     {
         Cmis cmis = new Cmis(
             testServer.canonical_name,
             testServer.localPath,
             testServer.remoteFolderPath,
             testServer.url,
             testServer.user,
             testServer.password,
             testServer.repositoryId
         );
         cmis.Sync();
     });
 }
Example #4
0
 public SparkleRepo(string path, SparkleConfig config)
     : base(path, config)
 {
     cmis = new Cmis(path, config);
     SparkleLogger.LogInfo("Sync", "Cmis:" + cmis);
 }