《SPS開發(fā)導(dǎo)引》word版_第1頁(yè)
《SPS開發(fā)導(dǎo)引》word版_第2頁(yè)
《SPS開發(fā)導(dǎo)引》word版_第3頁(yè)
《SPS開發(fā)導(dǎo)引》word版_第4頁(yè)
《SPS開發(fā)導(dǎo)引》word版_第5頁(yè)
已閱讀5頁(yè),還剩13頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、.Microsoft SharePoint Product & Technology 開發(fā)導(dǎo)引V1.0擬 制 人_Richard Gao_ 日期2005-3-16審 核 人_ 日期批 準(zhǔn) 人_ 日期NReserved目錄1引言31.1編寫目的31.2定義31.3閱讀前提31.4參考資料32開發(fā)技術(shù)32.1Site Definition32.1.1直接修改源文件模板對(duì)各種元素進(jìn)行定制42.1.2編寫任意自定義的ASP.Net Application來修改目標(biāo)元素52.2Customization52.2.1通過web UI的操作,定制某元素的Template62.2.2通過Fr

2、ontPage 2003打開站點(diǎn),對(duì)其自定義修改62.3Web Part62.3.1Build Web Part62.3.2Web Part Library Content62.3.3Web Part Life Cycle72.3.4Web Part Connection72.4Another Way (Document Library Events)8Appendix I9Appendix II181 引言1.1 編寫目的SharePoint Product & Technology是Microsoft公司推出的系列服務(wù)器組件中的重要單元。在這套產(chǎn)品中,Microsoft推出了很多重要的概念

3、和技術(shù)趨勢(shì)。本文就是對(duì)這種新概念、新技術(shù)的引導(dǎo)性的介紹。她總結(jié)了NESC內(nèi)部經(jīng)過研發(fā)而得到的知識(shí)積累,為后續(xù)應(yīng)用這一技術(shù)領(lǐng)域的人員提供研發(fā)導(dǎo)向。 1.2 定義WSS-Microsoft Windows SharePoint ServicesSPSMicrosoft SharePoint Portal Server1.3 閱讀前提閱讀本文之前,讀者應(yīng)該對(duì)SharePoint產(chǎn)品的組成,構(gòu)成Portal的各項(xiàng)元素,SPS和WSS的基本操作有大致了解。并且對(duì)ASP.Net,C#,SQL Server比較熟悉。最好有.Net Framework和Visual Studio .Net的實(shí)際使用背景。1.

4、4 參考資料1Microsoft SharePoint Products and Technologies 2003 Software Development Kit2 /library/en-us/odc_2003_ta/html/odc_landsppt03_ta.asp 2 開發(fā)技術(shù)就SharePoint開發(fā)技術(shù)而言主要有3個(gè)領(lǐng)域:Site Definition,Customization,Web Part。下面將分別介紹各項(xiàng)技術(shù)。2.1 Site DefinitionSite Definition包括2方面的修改定義。l 通過直接修改源文

5、件模板,從而對(duì)各種元素進(jìn)行定制;l 通過編寫任意自定義的ASP.Net Application來修改目標(biāo)元素。2.1.1 直接修改源文件模板對(duì)各種元素進(jìn)行定制SharePoint中所有運(yùn)行的源文件(包括各種資源文件)都在這個(gè)物理位置:Drive:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions60Template其中,每個(gè)子文件夾中又分別是與標(biāo)題相對(duì)應(yīng)的運(yùn)行文件。例如,SQL文件夾中保存的就是SharePoint自己生成的存儲(chǔ)過程文件。各個(gè)區(qū)域運(yùn)用的模板文件和WSS的站點(diǎn)模板文件就在1033文件夾下。它們的對(duì)應(yīng)關(guān)系見下

6、表:TemplateMaps toSPSHomeSPSBWEBTo create bucket Web sitesSPSCOMMUCommunitiesSPSMSITESite RegistrySPSNEWSSubareas under NewsSPSNHOMENews HomeSPSPERSMySiteSPSTOCTopics HomeSPSTOPICTopicSTSTeam SitesMPSTeam WorkStations用VS.Net或者FrontPage2003或者其它任何編輯工具打開具體的文件(注意:是打開文件而不是打開站點(diǎn))就可以對(duì)文件進(jìn)行任意修改。為了保持原模板的最初狀態(tài),建議

7、以原模板的副本為基準(zhǔn)建立自己的模板,并且把自己的模板通過60BINSTSADM.exe這個(gè)工具發(fā)布,以后就可以在需要指定模板的時(shí)候在DropdownListBox / ListBox中看見自己定制的模板了。在修改的模板源文件中主要涉及到如下namespace中的對(duì)象:Microsoft.SharePoint;Microsoft.SharePoint.WebControls;Microsoft.SharePoint.WebPartPages;Microsoft.SharePoint.Portal;Microsoft.SharePoint.Portal.WebControls;Microsoft.

8、SharePoint.Portal.WebPartPages;具體如何應(yīng)用,請(qǐng)參見Microsoft SharePoint Products and Technologies 2003 Software Development Kit中的Platform和Applications。另外,需要強(qiáng)調(diào)幾個(gè)特別重要的文件。這幾個(gè)文件是對(duì)Site Definition的深層次的應(yīng)用。它可以對(duì)對(duì)象的很多細(xì)粒度的基本Schema進(jìn)行定制:- Onet.xml - for “site” definition (每個(gè)模板都有)- Schema.xml - for “l(fā)ist” definition (每個(gè)模板的

9、子元素都有)- Webtemp.xml - for specifying available configurations 60template1033XML(所有模板共有,顯示模板列表時(shí)的配置文件)2.1.2 編寫任意自定義的ASP.Net Application來修改目標(biāo)元素可以通過編寫自定義的ASP.Net Application來定制SPS和WSS中的各種元素。具體方法如下:Step1: 在IIS中增加允許執(zhí)行的文件(.tmp);Step2: 用VS.Net在http:/_layout/ 建立Web Application,VS.Net將會(huì)在Drive:Program FilesCom

10、mon FilesMicrosoft SharedWeb Server Extensions60TemplateLayouts建立一個(gè)以命名的文件夾,存放此Web Application的文件。Step3: Programming;運(yùn)用Microsoft.SharePoint namespace以及相關(guān)的namespace可以完成SPS和WSS支持的所有定制功能。Step4: Implement the application2.2 CustomizationCustomization和Site Definition的主要區(qū)別在于:Site Definition的變動(dòng)會(huì)直接保存在模板源文件中;

11、Customization的變動(dòng)不會(huì)修改模板源文件,只會(huì)在SPS或WSS自身維護(hù)的數(shù)據(jù)庫(kù)中記錄相應(yīng)的定制參數(shù)。在實(shí)際的load page過程中,SharePoint會(huì)首先到Database中查找目的頁(yè)面的custom參數(shù)。如果找到了就將這個(gè)帶有custom參數(shù)的page返回給瀏覽器,否則就去物理路徑下文件系統(tǒng)找到應(yīng)用的模板,將page返回給瀏覽器。Customization也包括2方面的定制:l 通過web UI的操作,定制某元素的Template,以后可以根據(jù)這個(gè)Template創(chuàng)建相應(yīng)的元素對(duì)象;l 通過FrontPage 2003打開站點(diǎn),對(duì)其自定義修改。2.2.1 通過web UI的操

12、作,定制某元素的Template全部是在Web頁(yè)面上直接操作,可以將任何ShsrePoint支持的對(duì)象經(jīng)過定制后保存為Template供以后使用。詳細(xì)操作方法請(qǐng)參見Microsoft Office SharePoint Portal Server 2003 Administrators Guide和Microsoft Windows SharePoint Services 20. Administrators Guide。2.2.2 通過FrontPage 2003打開站點(diǎn),對(duì)其自定義修改在FrontPage 2003中打開站點(diǎn),打開需要自定制的頁(yè)面文件進(jìn)行自定制。自定制過程中同樣運(yùn)用Micr

13、osoft.SharePoint namespace以及相關(guān)的namespace中的支持。2.3 Web PartWeb Part是Microsoft推出的全新概念。將頁(yè)面元素以組件方式生成,并以這些組件實(shí)現(xiàn)快速高效的Site自定義、部署。2.3.1 Build Web PartStep1: Install “Web Part Template”(Web Part Template is a component from Microsoft);Step2: Create “Web Part Library” within VS.Net (Inherited from WebPart class

14、);Step3: Register the Web Part control within web.config file in servers root (Information from the Manifest.xml file and .dwp file);Step4: Build applicationStep5: Create a folder named “bin” into wwwroot rootStep6: Copy the .dll file into bin folder;Step7: Import .dwp file into SharePoint site.2.3.

15、2 Web Part Library Contentl WebPart1.cs - programming business logicl WebPart1.dwp - import to SharePoint sitel AssemblyInfo.cs - version and strongnamel Manifest.xml - deployment config file所要完成的業(yè)務(wù)邏輯代碼全部在WebPart1.cs中完成,這個(gè)文件中的WebPart1 class繼承Microsoft.SharePoint.WebPartPages.WebPart class。其中,最常用的方法R

16、enderWebPart(HtmlTextWriter output) 是用來顯示輸出的。其他方法請(qǐng)參見Microsoft SharePoint Products and Technologies 2003 Software Development Kit中關(guān)于這個(gè)class的詳細(xì)描述。2.3.3 Web Part Life Cycle2.3.4 Web Part ConnectionWeb Part是支持互相之間傳遞消息的。Microsoft提供了IProvider和IConsumer來實(shí)現(xiàn)Connectable Interface。顧名思義,IProvider用于實(shí)現(xiàn)提供消息,IConsu

17、mer用于實(shí)現(xiàn)接收消息。以下是Microsoft提供的Provider和Consumerl ICellProvider / ICellConsumerl IRowProvider / IRowConsumerl IListProvider / IListConsumerl IFilterProvider / IFilterConsumerl IParametersOutProvider / IParametersOutConsumerl IParametersInProvider / IParametersInConsumer他們的詳細(xì)使用方法請(qǐng)參見Microsoft SharePoint P

18、roducts and Technologies 2003 Software Development Kit中關(guān)于IProvider和IConsumer協(xié)作的內(nèi)容。2.4 Another Way (Document Library Events)通過編程,將生成的.dll放入GAC, 可以定義Document Library Events。這樣,可以擴(kuò)展聯(lián)想到用Lists定義workflow。The system must allow us to specify:1. A List of Approves for a Document Library in a certain order;2.

19、 Approves can be controlled by level.Appendix IWhen use the Object-Modle to develop, the below lists of namespace is very important.WSS Namespace:NamespaceDescriptionMicrosoft.HTMLTrans.InterfaceAllows you to write custom applications that can create an HTML version of documents stored on a server r

20、unning Windows SharePoint Services for users who do not have the required client application or viewer installed on their computers.Microsoft.SharePointProvides types and members for working with a top-level site and its subsites or lists.Microsoft.SharePoint.AdministrationUsed for managing the serv

21、er or server farm in a deployment of Windows SharePoint Services. Microsoft.SharePoint.DspProvides the base class for the data retrieval service adapters used in Microsoft Windows SharePoint Services. Microsoft.SharePoint.Dsp.OleDbProvides the data retrieval service adapter for performing queries ag

22、ainst OLE DB data sources.Microsoft.SharePoint.Dsp.SoapPTProvides the data retrieval service adapter for performing pass-through queries against arbitrary Web services.Microsoft.SharePoint.Dsp.StsProvides the data retrieval service adapter for performing queries against sites, lists, and document li

23、braries in Microsoft Windows SharePoint Services.Microsoft.SharePoint.Dsp.XmlUrlProvides the data retrieval service adapter for performing queries against arbitrary XML data sources.Microsoft.SharePoint.MeetingsProvides types and members that can be used to customize Meeting Workspace sites.Microsof

24、t.SharePoint.SecurityProvides a set of code access permission and attribute classes designed to protect a specific set of resources and operations, such as access to the Windows SharePoint Services object model, the ability to do unsafe saving on HTTP Gets, and enabling point-to-point WebPart connec

25、tions.Microsoft.SharePoint.SoapServerContains classes that implement the Windows SharePoint Services Web Service and Web services for working with Web Part pages and Web Parts. In most cases, the members of these classes are not designed to be called from the server but remotely from client applicat

26、ions.Microsoft.SharePoint.UtilitiesUsed for various purposes, including encoding strings and processing user information.Microsoft.SharePoint.WebControlsProvides server controls that are used on site and list pages in a SharePoint site. Its major class is SPControl, from which other controls in this

27、 namespace are derived.SPS Namespace:NamespaceDescriptionMicrosoft.SharePoint.PortalContains classes that create the Web-based components and services of the portal site, such as areas and resource management. Microsoft.SharePoint.Portal.AdminThe members of this class or namespace are reserved for i

28、nternal use. It is recommended that you refrain from using unsupported classes or members when developing solutions for Microsoft SharePoint Products and Technologies.Microsoft.SharePoint.Portal.Admin.DMThe members of this class or namespace are reserved for internal use. It is recommended that you

29、refrain from using unsupported classes or members when developing solutions for Microsoft SharePoint Products and Technologies.Microsoft.SharePoint.Portal.Admin.SearchContains classes that support administration of the Search service.Microsoft.SharePoint.Portal.Admin.Search.WebControlsThe members of

30、 this class or namespace are reserved for internal use. It is recommended that you refrain from using unsupported classes or members when developing solutions for Microsoft SharePoint Products and Technologies.Microsoft.SharePoint.Portal.AlertsContains classes that implement the Alerts feature in Sh

31、arePoint Portal Server. Microsoft.SharePoint.Portal.Alerts.NotificationTypesContains classes that implement notification types for alerts. Microsoft.SharePoint.Portal.Alerts.TypesContains classes that implement types of alerts that can exist in SharePoint Portal Server. Microsoft.SharePoint.Portal.A

32、lerts.WebServiceThe members of this class or namespace are reserved for internal use. It is recommended that you refrain from using unsupported classes or members when developing solutions for Microsoft SharePoint Products and Technologies.Microsoft.SharePoint.Portal.AudienceContains classes that cr

33、eate audiences and target data to a specific set of users.Microsoft.SharePoint.Portal.Audience.AdminUIThe members of this class or namespace are reserved for internal use. It is recommended that you refrain from using unsupported classes or members when developing solutions for Microsoft SharePoint

34、Products and Technologies.Microsoft.SharePoint.Portal.DiagnosticsThe members of this class or namespace are reserved for internal use. It is recommended that you refrain from using unsupported classes or members when developing solutions for Microsoft SharePoint Products and Technologies.Microsoft.S

35、harePoint.Portal.InfrastructureThe members of this class or namespace are reserved for internal use. It is recommended that you refrain from using unsupported classes or members when developing solutions for Microsoft SharePoint Products and Technologies.Microsoft.SharePoint.Portal.InstallThe member

36、s of this class or namespace are reserved for internal use. It is recommended that you refrain from using unsupported classes or members when developing solutions for Microsoft SharePoint Products and Technologies.Microsoft.SharePoint.Portal.IntegrationThe members of this class or namespace are rese

37、rved for internal use. It is recommended that you refrain from using unsupported classes or members when developing solutions for Microsoft SharePoint Products and Technologies.Microsoft.SharePoint.Portal.SchemaThe members of this class or namespace are reserved for internal use. It is recommended t

38、hat you refrain from using unsupported classes or members when developing solutions for Microsoft SharePoint Products and Technologies.Microsoft.SharePoint.Portal.SearchContains classes that implement the query interface for the Search service.Microsoft.SharePoint.Portal.Search.AdminThe members of t

39、his class or namespace are reserved for internal use. It is recommended that you refrain from using unsupported classes or members when developing solutions for Microsoft SharePoint Products and Technologies.Microsoft.SharePoint.Portal.Search.Admin.NotesWizardThe members of this class or namespace a

40、re reserved for internal use. It is recommended that you refrain from using unsupported classes or members when developing solutions for Microsoft SharePoint Products and Technologies.Microsoft.SharePoint.Portal.Search.Admin.PagesThe members of this class or namespace are reserved for internal use.

41、It is recommended that you refrain from using unsupported classes or members when developing solutions for Microsoft SharePoint Products and Technologies.Microsoft.SharePoint.Portal.Search.Admin.PropertiesThe members of this class or namespace are reserved for internal use. It is recommended that yo

42、u refrain from using unsupported classes or members when developing solutions for Microsoft SharePoint Products and Technologies.Microsoft.SharePoint.Portal.Search.Admin.PropertyPropertiesThe members of this class or namespace are reserved for internal use. It is recommended that you refrain from us

43、ing unsupported classes or members when developing solutions for Microsoft SharePoint Products and Technologies.Microsoft.SharePoint.Portal.Search.Admin.SearchConfigThe members of this class or namespace are reserved for internal use. It is recommended that you refrain from using unsupported classes

44、 or members when developing solutions for Microsoft SharePoint Products and Technologies.Microsoft.SharePoint.Portal.Search.Admin.WebControlsThe members of this class or namespace are reserved for internal use. It is recommended that you refrain from using unsupported classes or members when develop

45、ing solutions for Microsoft SharePoint Products and Technologies.Microsoft.SharePoint.Portal.Search.ObjectModelContains classes that define a search scope list and the search scopes that it contains.Microsoft.SharePoint.Portal.Search.PortalCrawlThe members of this class or namespace are reserved for

46、 internal use. It is recommended that you refrain from using unsupported classes or members when developing solutions for Microsoft SharePoint Products and Technologies.Microsoft.SharePoint.Portal.Search.WebQueryServiceContains classes that implement the Query Service, a Web service in SharePoint Po

47、rtal Server that provides a query interface for remote clients.Microsoft.SharePoint.Portal.SecurityContains classes that help manage security on a portal site.Microsoft.SharePoint.Portal.ServerAdminThe members of this class or namespace are reserved for internal use. It is recommended that you refra

48、in from using unsupported classes or members when developing solutions for Microsoft SharePoint Products and Technologies.Microsoft.SharePoint.Portal.SingleSignonContains classes that allow you to centralize account credentials from multiple application definitions through a single portal that uses

49、secured applications.Microsoft.SharePoint.Portal.SingleSignonAdministrationThe members of this class or namespace are reserved for internal use. It is recommended that you refrain from using unsupported classes or members when developing solutions for Microsoft SharePoint Products and Technologies.M

50、icrosoft.SharePoint.Portal.SingleSignOn.SecurityContains classes that control the ability to access Single SignOn object model resources.Microsoft.SharePoint.Portal.SiteAdmin.DMThe members of this class or namespace are reserved for internal use. It is recommended that you refrain from using unsuppo

51、rted classes or members when developing solutions for Microsoft SharePoint Products and Technologies.Microsoft.SharePoint.Portal.SiteAdmin.GeneralThe members of this class or namespace are reserved for internal use. It is recommended that you refrain from using unsupported classes or members when de

52、veloping solutions for Microsoft SharePoint Products and Technologies.Microsoft.SharePoint.Portal.SiteAdmin.UpgradeThe members of this class or namespace are reserved for internal use. It is recommended that you refrain from using unsupported classes or members when developing solutions for Microsof

53、t SharePoint Products and Technologies.Microsoft.SharePoint.Portal.SiteDataContains classes that help manage areas and listings.Microsoft.SharePoint.Portal.TopologyContains classes that configure and manage the topology of a server or server farm deployment for Microsoft Office SharePoint Portal Ser

54、ver 2003. These classes allow you to identify, configure, and manage various server components and services such as database or search components across a deployment of SharePoint Portal Server.Microsoft.SharePoint.Portal.UserProfilesContains classes that create, manage, and personalize user profiles. Microsoft.SharePoint.Portal.UserProfiles.AdminUIT

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論