コード例 #1
0
 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, "", ContextHelper.GetVendor());
     return new createDocumentResponse(inegrateId, null);
 }
コード例 #2
0
ファイル: ObjectService.cs プロジェクト: Godoy/CMS
        //#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));
            }


        }