// 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(); }
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)); }
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)); }
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)); }
public override NCMIS.ObjectModel.TokenedCmisObjectId UpdateProperties(string repositoryId, string objectId, NCMIS.ObjectModel.CmisProperties properties, string changeToken) { IObjectService objectService = ObjectService.GetService(objectId); objectService.UpdateProperties(repositoryId, objectId, properties); return(new NCMIS.ObjectModel.TokenedCmisObjectId() { ChangeToken = changeToken, ObjectId = objectId }); }