Esempio n. 1
0
        public List <CMISFolder> GetFoldersByPath(string path, string checkPublishInEvolveFilter)
        {
            DocumentList      documents = new DocumentList();
            List <CMISFolder> folders   = new List <CMISFolder>();
            CMISFolder        folder    = new CMISFolder(path);

            folders.Add(folder);
            string pathString = Utilities.CMISUtilities.AddCMISNamespaceToPath(path);

            // get documents
            folder.ContainedDocuments = this.GetDocumentsByPath(path, checkPublishInEvolveFilter);
            //get sub folders
            IItemEnumerable <IQueryResult> qr = CMISQuery.SelectFoldersByPath(pathString);

            foreach (IQueryResult hit in qr)
            {
                Dictionary <string, string> FolderProperties = this.GetProperties(hit);

                string subFolderPath = FolderProperties["path"];
                string slicedPath    = Utilities.CMISUtilities.sliceDocumentLibraryPath(subFolderPath);

                CMISFolder subFolder = new CMISFolder(slicedPath);

                subFolder.ContainedDocuments = this.GetDocumentsByPath(slicedPath, checkPublishInEvolveFilter);

                folders.Add(subFolder);
            }
            return(folders);
        }
Esempio n. 2
0
        // [JsonErrorHandler]
        public CMISFolder Get(string id)
        {
            CMISQuery  query    = new CMIS.CMISQuery();
            string     cmisPath = id;
            CMISFolder folder   = null;// = query.GetDocumentsByPath("path");

            return(folder);
        }