• 
    

    
    

      99热精品在线国产_美女午夜性视频免费_国产精品国产高清国产av_av欧美777_自拍偷自拍亚洲精品老妇_亚洲熟女精品中文字幕_www日本黄色视频网_国产精品野战在线观看

      ?

      基于SharePoint客戶端對象模型的文檔庫元數(shù)據(jù)處理

      2016-04-14 13:24:20王曉宇
      電腦知識與技術(shù) 2016年5期

      王曉宇

      摘要:隨著Internet、計算機以及網(wǎng)絡(luò)技術(shù)的發(fā)展,企業(yè)協(xié)作系統(tǒng)越來越受到國際大型企業(yè)的廣泛應(yīng)用?;赟harePoint技術(shù)開發(fā)的協(xié)作系統(tǒng),在實踐活動中,經(jīng)常面臨文檔庫元數(shù)據(jù)更新處理的需要。在之前很長時期內(nèi),工程師依賴于微軟提供的服務(wù)器端對象模型,這對于操作環(huán)境和權(quán)限有很高的要求。在SharePoint 2010之后,微軟提供了更便捷的客戶端對象模型,其對文檔庫元數(shù)據(jù)處理有十分明顯的優(yōu)勢。

      關(guān)鍵詞:企業(yè)協(xié)作系統(tǒng);SharePoint;客戶端對象模型;元數(shù)據(jù)處理

      中圖分類號:TP311.5 文獻標(biāo)識碼:A 文章編號:1009-3044(2016)05-0003-02

      Abstract: With the development of Internet, personal computer and network technique, enterprise cooperation system is becoming increasingly popular in the international company. The enterprise cooperation system is developed with SharePoint technology, and always requires document library metadata update. Several years ago, engineer did so depending on the server object model supplied by Microsoft, which ask too much for the operation environment and permission. After SharePoint 2010, Microsoft provided more convenient object model, Client Object model, which has remarkable advantage in this field.

      Key words: enterprise cooperation system; SharePoint; client object model; metadata update

      1 SharePoint構(gòu)建協(xié)作系統(tǒng)成為流行趨勢

      1.1 大型企業(yè)的協(xié)作系統(tǒng)

      在全球性的企業(yè)中,協(xié)作系統(tǒng)是一個很關(guān)鍵的角色,它為多方地域和各種功能提供了有機的連接。該系統(tǒng)擁有海量的數(shù)據(jù),并能輕松地通過精巧的搜索功能完成信息獲取[1]。基于這個協(xié)作系統(tǒng),公司內(nèi)部的郵件,問題,評論和想法等形成了具有活力的流,大大提高了交流協(xié)作效率。

      1.2 SharePoint貢獻的功能

      SharePoint的橋梁作用能實現(xiàn)的功能,簡單地可分為包括:團隊協(xié)作、門戶技術(shù)、內(nèi)容管理、業(yè)務(wù)流程和表格、企業(yè)搜索、商業(yè)智能、移動設(shè)備訪問、業(yè)務(wù)應(yīng)用開發(fā)等[2]八大方面。

      SharePoint是一個協(xié)作環(huán)境,無論多大規(guī)模的組織都能夠使用它來提高業(yè)務(wù)流程的效率。SharePoint提供安全的環(huán)境,管理員可對這些環(huán)境進行配置,來提供對文檔和其他信息的個性化訪問。搜索功能可以令用戶高效能地找到內(nèi)容,而無需考慮數(shù)據(jù)的物理位置。

      2 SharePoint Client Object Model的優(yōu)勢

      2.1 服務(wù)器端對象模型存在制約

      在SharePoint 2010之前的版本中,開發(fā)者是通過服務(wù)器端的一系列代碼,也就是SharePoint Server Object Model來獲取SharePoint服務(wù)器上的內(nèi)容并對其實施一些操作的。 隨著SharePoint的推廣,一方面本身在Server端的操作需要較高的權(quán)限,另一方面人們發(fā)現(xiàn)經(jīng)常需要從客戶端計算機或服務(wù)器遠程訪問SharePoint網(wǎng)站和它的列表數(shù)據(jù),這些客戶端計算機或服務(wù)器上并沒有安裝SharePoint Foundation,也就是一個非常普通的環(huán)境,這樣的環(huán)境要訪問SharePoint這樣一個特殊平臺上的資源,如果沒有一種中間層作支持那是幾乎做不到的。

      2.2 客戶端對象模型的便捷性

      從SharePoint 2010版本以后,微軟提供了讓開發(fā)者能和SharePoint Foundation 交互的一種新的方式,這第三種編寫代碼的方式就叫做SharePoint Client Object Model即客戶端對象模型[3][4](也一下簡稱為Client OM)。Client OM API可以被使用在.NET程序中,Silverlight程序中,以及在瀏覽器中運行的ECMAScript(JavaScript)中。 雖然Client OM并不如Server OM功能豐富,但是它有自己的特點,比如獲取SharePoint內(nèi)容時并不像Server OM以及SharePoint Web Service一樣復(fù)雜,更容易獲取存儲于SharePoint 列表和文檔庫中的數(shù)據(jù)[5],并且能夠更快捷地編寫代碼等等。

      3 文檔庫元數(shù)據(jù)處理

      3.1 準(zhǔn)備工作

      下面,我們集中以文檔庫的更新來說明我們使用Client OM API完成操作的強大和便捷。在使用Client OM之前,要使調(diào)用客戶端API的應(yīng)用程序能正常工作,客戶端計算機必須同時具有Microsoft.SharePoint.Client.dll和Microsoft.SharePoint.Client.Runtime.dll[6][7]才能使用.NET托管對象模型遠程開發(fā)解決方案。

      3.2 元數(shù)據(jù)處理

      Microsoft.SharePoint.Client是用于.NET托管對象模型的核心命名空間。SharePoint的客戶端對象模型使用ClientContext對象作為所有操作的"引力中心"[8]。在獲取并使用網(wǎng)站和數(shù)據(jù)的過程中,首先將檢索上下文對象。例如,ClientContext clientContext = new ClientContext("http://MyServer/sites/MySiteCollection") 將實例化特定網(wǎng)站集的上下文對象。ClientContext對象將作為用于處理客戶端對象模型的主入口點[9],并作為在網(wǎng)站集中安排請求和啟動操作所借助的中央對象。

      參考文獻:

      [1] SharePoint 2013 的升級過程概述[EB/OL]. https://technet.microsoft.com/zh-CN/library/cc262483.aspx.

      [2] Kadhar L A, Shameem A S, Fathima,et al. A Study on Best Practices for a Successful SharePoint Migration or Up-gradation[J]. IJCSI International Journal of Computer Science Issues, 2014, 11(6): 153-159

      [3] Content Migration[EB/OL]. https://msdn.microsoft.com/zh-cn/library/bb249963.aspx.

      [4] Sharepoint 2010 client object model with camlQuery - file download but no content/0 byte[EB/OL].

      http://stackoverflow.com/questions/10024524/sharepoint-2010-client-object-model-with-camlquery-file-download-but-no-conten.

      [5] Sharepoint Client Object Model: Load items from list with included File.ServerRelativeUrl[EB/OL].

      http://stackoverflow.com/questions/9059634/sharepoint-client-object-model-load-items-from-list-with-included-file-serverre.

      [6] How do I return a document from a Sharepoint Document library to the user? [EB/OL].

      http://stackoverflow.com/questions/5709710/how-do-i-return-a-document-from-a-sharepoint-document-library-to-the-user.

      [7] SharePoint 2010: Managed .net Client with Client Object Model (OM)[EB/OL]. http://www.codeproject.com/Articles/60294/SharePoint-2010-Managed-net-Client-with-Client-Obj.

      [8] Uploading files using Client Object Model in SharePoint 2010[EB/OL]. http://blogs.msdn.com/b/sridhara/archive/2010/03/12/uploading-files-using-client-object-model-in-sharepoint-2010.aspx.

      [9] SharePoint 2010系列——2010新特性使用Client Object Model在客戶端開發(fā)[EB/OL]. http://bbs.winos.cn/thread-86653-1-1.html.

      义马市| 鄢陵县| 巴东县| 荥阳市| 菏泽市| 青岛市| 安达市| 泊头市| 大庆市| 澳门| 涟源市| 青铜峡市| 甘洛县| 大庆市| 韶山市| 类乌齐县| 含山县| 嘉义县| 大余县| 张北县| 友谊县| 英德市| 江永县| 霍邱县| 霍山县| 武义县| 漳平市| 美姑县| 信宜市| 新野县| 道真| 高台县| 栾城县| 长治县| 都昌县| 古田县| 威信县| 鄯善县| 鄂州市| 梁平县| 漳州市|