Beispiel #1
0
        // [WebGet(UriTemplate = "/{repositoryId}/object/{folderId}/parent")]
        public override NCMIS.ObjectModel.CmisObject GetFolderParent(string repositoryId, string folderId, string filter)
        {
            FolderObjectService folderService = (FolderObjectService)ObjectService.GetService(typeof(Folder));
            string objectId = folderId;

            if (folderService.TryPraseObjectId(objectId, out folderId))
            {
                return(folderService.GetParent(repositoryId, objectId));
            }
            return(ObjectConvertor.EmptyCmisObject());
        }