コード例 #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();
        }
コード例 #2
0
ファイル: CmisSyncTests.cs プロジェクト: smcardle/CmisSync
 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();
 }
コード例 #3
0
ファイル: CmisSyncTests.cs プロジェクト: smcardle/CmisSync
        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);
        }
コード例 #4
0
ファイル: SparkleRepoCmis.cs プロジェクト: smcardle/CmisSync
 public SparkleRepo(string path, SparkleConfig config, ActivityListener activityListener)
     : base(path, config)
 {
     cmis = new CmisDirectory(path, config, activityListener);
     SparkleLogger.LogInfo("Sync", "Cmis:" + cmis);
 }