SharePoint Server 2010 應用程式底層邏輯開發

Download Report

Transcript SharePoint Server 2010 應用程式底層邏輯開發

LINQ to SharePoint
建立
Entity 類別
建立
DataContext
撰寫 LINQ
查詢語法
Client Object Model
Server
(Microsoft
.SharePoint)
.NET Managed
(Microsoft.SharePoint
.Client)
Silverlight
(Microsoft.SharePoint
.Client.Silverlight)
JavaScript
(SP.js)
SPContext
ClientContext
ClientContext
ClientContext
SPSite
Site
Site
Site
SPWeb
Web
Web
Web
SPList
List
List
List
SPListItem
ListItem
ListItem
ListItem
SPField
Field
Field
Field
類別成員名稱幾乎是一致的:
例如: SPWeb.QuickLaunchEnabled = Web.QuickLaunchEnabled
JavaScript Controls and Logic
Browser
JavaScript OM
Proxy
Proxy
Managed OM
JSON Response
Server OM
XML Request
XML Request
Client.svc
Content
database
JSON Response
Managed Client
Managed Controls and Logic
SharePoint Server
ListData.svc
Loads ADO.NET Data Services handler assembly
Microsoft.SharePoint.ListDataService.dll
Implements IDataServiceProvider interface.
Microsoft.SharePoint.Linq.dll
Implements Linq to SharePoint provider
工作流程
事件
工作流程
訊息
SharePoint 2010
LOB Apps
協同合作
網站
清單項目
Visio
SPD
VS10
public class MyWfEventReceiver : SPWorkflowEventReceiver
{
public override void WorkflowStarting(
SPWorkflowEventProperties properties)
{
// 自訂程式碼
base.WorkflowStarting(properties);
}
}
工作流程
產生事件
呼叫外部方法
工作流程
執行時期
EDE 服務
外部系統
或
訂閱
外部系統
WCF
服務
服務架構
Search
User
Profiles
Managed
Metadata
Search
Excel
User
Profiles
Service Proxy
Service Proxy
Web Part, Pages
(Service Consumer)
*.SVC’s, PowerShell Cmdlets
(Service Consumer)
Browser
Client App
Consumer
Web Part
Consumer
Web Part
Service Application Proxy
WCF Contract
(*.svc)
* .asmx …
Service Logic (* .dll)
Config DB
Content DB
Custom DB
Site Collection/ Site
Administration
Service Application Proxy
Service WCF Interface
Service Logic
Config DB
Content DB
Custom DB
Business Connectivity Services (BCS)
Office Client
SharePoint Server 2010
SharePoint Site
External Business Parts
VSTO
Package
Custom Code
Office Integration
External
List
Search, Workflow, Web Parts
Business Connectivity Services
Secure Store Service (SSS)
Business Connectivity Services
Client Runtime
Cache
SQL
External Content Types
(ECT)
WCF
Custom
External Data
.NET Connector
Server Runtime
描述外部資料的結構與存取的方法,
以及在 SharePoint 中的資料處理方式
(Web Service, DB, .Net object,
LOB system, Web 2.0 service,
etc.)
透過 ECT 可以將外部資料整合至
SharePoint 或 Office 前端應用程式
進階
簡單
SharePoint Designer
進階使用者 / 開發人員
不用程式碼
• 使用內建功能,在瀏覽器或 Office
Clients (Outlook / Groove) 中存取外部
清單
• 在 SharePoint 或 Grove 中自訂表單
• 連接到現有後端資料庫
• 簡單的 BDC 模型 (少量 ECT+簡單
關聯)
• 簡單的安裝方式
開發人員
客製化程式碼
• 自訂 WebPart、VSTO 應用程式
• 透過 Office OM、SharePoint 或 BCS
• 透過自訂 .NET 物件連接後端
• 複雜的 BDC 模型 (大量 ECT+複雜
關聯)
• 自訂安裝方式
用戶端
Microsoft Word
VSTO 4 解決方案
Microsoft Outlook
宣告式解決方案
SharePoint Workspace
基本
進階
.NET 主機連接器
(Host Connector)
SharePoint Designer
伺服端
SharePoint 伺服器
SharePoint
Designer
IT 管理人員
即時連線
WSP /
ClickOnce
Package
SI / IT 開發人員
匯入 WSP
設定 BDC
產生 WSP / ClickOnce
Package (內含 BDC 模型)
使用 .NET 程式碼
設計後端整合邏輯
 使用 SharePoint 專
案與 VSTO 專案

專業開發人員
不需要寫程式碼,直
接使用現有的連接
 連接到現有 WCF,
ADO.Net 與 .Net 物件
 設計頁面介面與
InfoPath 表單來存取外
部清單資料

SharePoint 伺服器
行程帳號
模式:
Credentials
Ticket
Delegation Token
…
BCS
執行時期
使用者登入
Secure Store
Service
SAML
Token
Claims Aware
Service
Application
Delegated
Token
Web 2.0
Credentials
Legacy LOB
PassThrough
(使用目前登入使用者)
RevertToSelf
(使用行程帳號)
SSO Authentication
(從 Secure Store 取得身份)
驗證類型
WCF Connector
DB Connector
.NET Host Connector
SQL 驗證
否
是
程式碼
帳號 / 密碼
是
是
程式碼
NTLM
是
是
是
Claims Token
是
否
程式碼
Oauth / LiveID
程式碼
否
程式碼
企業內容管理
SharePoint 搜尋
.
.
.
SharePoint Sites
SSA
Database
Metadata
Database
Crawl
Database
Index Repositories
Remote File Shares
Send Query to full
text index
Send Query
Query
Processor
WFEs
Get Results
Query
servers
Get Results from
full text index
Index
Servers
Custom
Repositories
Propagate index + metadata
to query server & DB
Web Sites
.
.
.
SSA
Database
Metadata
Database
.
.
.
Crawl
Database
SharePoint Sites
Index Repositories using
SharePoint gatherer
Query request to FAST
location
WFEs
Show results in
SharePoint
Index
Servers
Query
servers
Send Query to FAST
backend
Final search results
Query
Processing
Query & Results Server
Results
Processing
Query
Processor
Send content to FAST for
indexing
Modified
Query
Search
Results
Remote File Shares
Search Engine
Processing
servers
Propagate index
to search engine
Index
Content
Custom
Repositories
Interface
Index Repositories using
FAST system
Web Sites`
.
.
.
App Server
Search Engine
BDC Profile
Page
BDC Protocol Handler
BDC Runtime
MD Cache
App Server
MD Service
External Data Source
SSO Service
SQL
DB Server
MetaData
SSO
LOB App
商業智慧
狀態指標
Excel Services
Chart Web
Parts
商業智慧
搜尋
Performance
Point Services
Visio Services
瀏覽器
Excel
自訂應用程式
http://MSSharePointITPro.com
http://MSSharePointDeveloper.com
http://SharePoint.Microsoft.com
©2009 Microsoft, Microsoft Dynamics, the Office logo, and Your potential. Our passion. are trademarks of the Microsoft group of companies. The information herein is for informational purposes only and
represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on
the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR
STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.