コード例 #1
0
ファイル: ObjectProvider.cs プロジェクト: Epitomy/CMS
 // only for content category relationship
 public override string CreateRelationship(string repositoryId, NCMIS.ObjectModel.CmisProperties properties, string[] policies, NCMIS.AccessControl.AccessControlList addACEs, NCMIS.AccessControl.AccessControlList removeACEs)
 {
     throw new NotImplementedException();
 }
コード例 #2
0
ファイル: ObjectProvider.cs プロジェクト: Epitomy/CMS
        public override string CreateDocumentFromSource(string repositoryId, string sourceId, NCMIS.ObjectModel.CmisProperties properties, string folderId, VersioningState?versioningState, string[] policies, NCMIS.AccessControl.AccessControlList addACEs, NCMIS.AccessControl.AccessControlList removeACEs)
        {
            DocumentObjectService documentService = (DocumentObjectService)ObjectService.GetService(typeof(ContentBase));

            return(documentService.CopyDocument(repositoryId, sourceId, properties, folderId));
        }
コード例 #3
0
ファイル: ObjectProvider.cs プロジェクト: Epitomy/CMS
        public override NCMIS.ObjectModel.CmisObject CreateFolder(string repositoryId, NCMIS.ObjectModel.CmisProperties properties, string folderId, string[] policies, NCMIS.AccessControl.AccessControlList addACEs, NCMIS.AccessControl.AccessControlList removeACEs)
        {
            FolderObjectService folderObjectService = (FolderObjectService)ObjectService.GetService(typeof(Folder));

            return(folderObjectService.CreateFolder(repositoryId, properties, folderId));
        }
コード例 #4
0
ファイル: ObjectProvider.cs プロジェクト: Epitomy/CMS
        public override NCMIS.ObjectModel.CmisObject CreateDocument(string repositoryId, NCMIS.ObjectModel.CmisProperties properties, string folderId, NCMIS.ObjectModel.ContentStream contentStream, VersioningState versioningState, string[] policies, NCMIS.AccessControl.AccessControlList addACEs, NCMIS.AccessControl.AccessControlList removeACEs)
        {
            DocumentObjectService documentService = (DocumentObjectService)ObjectService.GetService(typeof(ContentBase));

            return(documentService.CreateDocument(repositoryId, properties, folderId, contentStream));
        }