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);
 }
Beispiel #2
0
        //#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));
            }


        }