Exemplo n.º 1
0
        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));

            CmisDirectory cmis = new CmisDirectory(canonical_name, path, remote_path, server, user, password, repository, activityListener);
            cmis.Sync();
        }
Exemplo n.º 2
0
        public void ClientSideChanges(string canonical_name, string localPath, string remoteFolderPath,
            string url, string user, string password, string repositoryId)
        {
            ActivityListener activityListener = new Mock<ActivityListener>().Object;
            // Create checkout.
            CmisDirectory cmisDirectory = new CmisDirectory(
                canonical_name,
                localPath,
                remoteFolderPath,
                url,
                user,
                password,
                repositoryId,
                activityListener
            );
            cmisDirectory.Sync();

            // Generate local filesystem activity
            string path = Path.Combine(@"C:\Users\nico\CmisSync", canonical_name);
            LocalFilesystemActivityGenerator.GenerateActivity(path);
        }
Exemplo n.º 3
0
 public void Sync(string canonical_name, string localPath, string remoteFolderPath,
     string url, string user, string password, string repositoryId)
 {
     ActivityListener activityListener = new Mock<ActivityListener>().Object;
     CmisDirectory cmisDirectory = new CmisDirectory(
         canonical_name,
         localPath,
         remoteFolderPath,
         url,
         user,
         password,
         repositoryId,
         activityListener
     );
     cmisDirectory.Sync();
 }