//#region .ctor //TextContentManager _textContentManager; //public ObjectService(TextContentManager textContentManager) //{ // _textContentManager = textContentManager; //} //#endregion #region CreateDocument public createDocumentResponse CreateDocument(createDocumentRequest request) { var site = ModelHelper.GetSite(request.repositoryId); var textFolder = ModelHelper.GetTextFolder(request.repositoryId, request.folderId); var nameValueCollection = request.properties.ToNameValueCollection(); var inegrateId = _incomeDataManager.AddTextContent(site, textFolder, nameValueCollection, null, null, "", ContextHelper.GetVendor()); return(new createDocumentResponse(inegrateId, null)); }
//#region .ctor //TextContentManager _textContentManager; //public ObjectService(TextContentManager textContentManager) //{ // _textContentManager = textContentManager; //} //#endregion #region CreateDocument public createDocumentResponse CreateDocument(createDocumentRequest request) { try { var site = ModelHelper.GetSite(request.repositoryId); var textFolder = ModelHelper.GetTextFolder(request.repositoryId, request.folderId); var nameValueCollection = request.properties.ToNameValueCollection(); var inegrateId = _incomeDataManager.AddTextContent(site, textFolder, nameValueCollection, "", ContextHelper.GetVendor()); return(new createDocumentResponse(inegrateId, null)); } catch (Exception e) { throw new FaultException(string.Format(@" Exception message:{0} Stack trace:{1}", e.Message, e.StackTrace)); } }
public updatePropertiesResponse UpdateProperties(updatePropertiesRequest request) { var site = ModelHelper.GetSite(request.repositoryId); var integrateId = new Kooboo.CMS.Content.Models.ContentIntegrateId(request.objectId); var textFolder = ModelHelper.GetTextFolder(request.repositoryId, integrateId.FolderName); var nameValueCollection = request.properties.ToNameValueCollection(); var integrateUUID = _incomeDataManager.UpdateTextContent(site, textFolder, integrateId.Id, nameValueCollection, "", ContextHelper.GetVendor()); return(new updatePropertiesResponse(integrateUUID, null, null)); }
public void DeletePage(string repositoryId, string pageId) { var site = ModelHelper.GetSite(repositoryId); _incomeDataManager.DeletePage(site, pageId, ContextHelper.GetVendor()); }