您的位置:首页 > 其它

SPS2003技术体系分析

2007-03-13 09:31 344 查看
本文转载自 http://www.zlsoft.com/techbbs/printpage.asp?BoardID=48&ID=11893

- 中联论坛 (http://www.zlsoft.com/techbbs/index.asp)
-- OFFICE交流 (http://www.zlsoft.com/techbbs/list.asp?boardid=48)
---- SPS技术体系分析(张永康) (http://www.zlsoft.com/techbbs/dispbbs.asp?

boardid=48&id=11893)

--------------------------------------------------------------------------------

-- 作者:胡涛
-- 发布时间:2004-11-17 16:13:55

-- SPS技术体系分析(张永康)

SPS技术体系分析

张永康 2004-5-31收集整理编写

一、程序文件及IIS配置 2
二、SPS数据库对象分析 2
1.主要数据库表 3
2.主要表及字段 4
3.Windows SharePointServices存储过程 8
三、SPS封装后的对象分析 9
1.SPS主要对象体系结构 9
2.Microsoft.SharePoint命名空间简介 9
3.Windows SharePoint Services Web Service简介 13
4.SharePoint 事件分析 20
四、开发相关资源 22

--------------------------------------------------------------------------------

-- 作者:胡涛
-- 发布时间:2004-11-17 16:14:16

--

一、程序文件及IIS配置
SPS安装后的文件主要存放在如下两个目录
D:\\Program Files\\SharePoint Portal Server
该目录主要存放服务器管理工具,搜索和索引文件数据,日志文件。
C:\\Program Files\\Common Files\\Microsoft Shared\\web server extensions\\60\\
该目录主要存放网页相关文件(网页,程序,配置文件,图片,网页模板文件)
SPS网站中上传的图片,文档及各种列表数据都存放在SQL_Server数据库中。
SPS安装好后,[控制面板]/[管理工具]中增加一个[SharePoint 管理中心],主要通过它来完成SPS

的配置。它实际上是一个IIS网站,网页及程序文件在如下目录:C:\\Program Files\\Common

Files\\Microsoft Shared\\web server extensions\\60\\TEMPLATE\\ADMIN\\2052
它对应的IIS应用程序池名为CentralAdminAppPool
(应用程序池的主要作用是为WEB程序提供进程和内存管理)

安装SPS后,默认网站会被SPS占用(默认用80端口),对应的IIS应用程序池为
MSSharePointPortalAppPool,它负责客户端浏览SPS时的进程和内存管理。
所以,如果以前的IIS网站虚拟目录还需要用的话,需要修改虚拟目录的应用程序池,改为

DefaultAppPool,或者,新建一个网站(虚拟服务器),启用其它的端口来访问。

--------------------------------------------------------------------------------

-- 作者:胡涛
-- 发布时间:2004-11-17 16:14:37

--

二、SPS数据库对象分析
SPS的数据存放在SQL_Server中,SQL_Server中包含三个数据库:
SPS01_Config_db,SPS配置信息数据库
网站名1_PROF,存储SPS个人信息
网站名1_SERV,存储服务器相关信息
网站名1_SITE,SPS的主数据库,站点中的文档,列表,图片基本上都存放在此数据库中。
(其中“网站名”指安装SPS时指定的SPS服务器名)

1.主要数据库表
配置数据库表(10个表)
Name Description 描述
AntiVirusVendors Antivirus software vendors. 防毒软件提供商。
CustomTemplates Templates that appear in the global templates list (template picker).

出现在全局模板列表中的模板(模板选取)。
Databases Content databases and associated settings. 内容数据库及相关设置。
Globals Settings that apply to all sites on the physical server within a Windows

SharePoint Services topology. SharePoint架构中应用于所有物理站点的设置。
InstalledWebPartPackages Web Part Packages that are available to the virtual server. 虚

拟服务器可用的web组件包。
Servers Physical computers in the Windows SharePoint Services topology. SharePoint架构

中物理计算机。
Services Services such as database, Web, and mail services that are included in the

Windows SharePoint Services topology. SharePoint架构中的服务,例如数据库,站点,邮件等


Sites Sites in the Windows SharePoint Services topology. SharePoint架构中的站点。
VirtualServers Virtual servers and their associated settings. 虚拟服务器及其相关设置。
WebPartPackages Web Part Packages that are installed in a topology. 安装在架构中的web

组件包。

内容数据库(29个表)
Name Description 描述
Categories Associations among documents and their assigned areas. 文档及其分配区域协作


ComMd Document discussions. 文档讨论。
Deps Document dependencies. 文档附件。
DiskWarningDate Date and time of last warning about disk quota. 最后警告磁盘配额的日期

和时间。
Docs Documents and document folders. 文件和文件夹。
DocVersions Version history of documents from document libraries. 来自文档库的文档版本

历史。
EventCache Cache for alerts. 警报缓存。
EventLog Log for alerts. 警报日志。
HT_Cache Cache of documents transformed for viewing in a Web browser. 浏览器文档转换视

图缓存。
HT_Settings Settings for HTML viewing. HTML视图配置。
ImmedSubscriptions Alerts that are set to be sent as soon as the changes occur. 即时发

送的变更通知

Links Links to be recalculated during a site recalculation. 重算过程中到重新计算的链接


Lists Lists in the site. 站点列表。
NavNodes Nodes that are displayed in the navigation bars. 导航条显示的节点集。
Personalization Personalization done to Web Parts. 自定义web组件。
SchedSubscriptions Alerts that are set to be sent on a daily or weekly basis. 每天或每

周预定发送的通知。
SiteGroupMembership Members of cross-site groups. 跨站点组成员。
SiteGroups Cross-site groups. 跨站点组。
Sites Sites in the content database. 内容数据库站点。
TimerLock Locking scheme that determines which server locks which database. 决定服务器

锁锁定数据库的锁方案。
UserData List data. 列表数据。
UserInfo Info about each user added to the site. 每一个用户添加到站点的信息。
WebCat Links between Web sites and areas. 站点和区域间的链接。
WebGroupMembership List of members of the site groups. 站点组成员列表。
WebGroups Site groups (such as Administrator, Web Designer) for the site. 站点组(例如

管理员,站点设计者)。
WebMembers Members of a site. 站点成员。
WebParts Web Parts available for the sites. A view is a Web Part. 站点可用的web组件。一

个web组件的视图。
Webs Subsites associated with a site. 和一个站点关联的子站点。
WelcomeNames Default documents for the site. 站点默认文档。

2.主要表及字段
SPS01_config_db数据库主要存储SPS的配置信息
下面对其中的5个重点表进行分析说明
AntiVirusVendors Table(AntiVirusVendors表)
CustomTemplates Table(CustomTemplates表)
Databases Table(Databases表)
Globals Table(Globals表)
Services Table(Services表)

AntiVirusVendors Table(AntiVirusVendors表)
The AntiVirusVendors table stores a list of antivirus software vendors whose software

is used in the Microsoft Windows SharePoint Services deployment.
AntiVirusVendors表存储了SharePoint中使用的防毒软件提供商的信息。
Columns
Column name Data type Description 描述
VendorID Int Unique identifier for each vendor. Part of the primary key. 提供商标识。主

键组成部分。
VendorProduct nvarchar Name of the antivirus software product. Part of the primary key.

防毒软件产品名称。主键组成部分。
VendorVersion Int Version of the signature file for the antivirus software product. 防

毒软件产品签名文件版本

CustomTemplates Table(CustomTemplates表)
The CustomTemplates table stores the list of custom page templates that appear in the

global templates list .
CustomTemplates表存储了出现在全局模板列表中的自定义页面模板列表。
Columns
Column name Data type Description 描述
Id int Unique identifier for the custom template. Primary key. 自定义模板标识。主键。
Title nvarchar Title of the template that displays in the template picker list box. 在

模板选择列表框显示的模板名称。
Description nvarchar Description of the template. 模板描述说明。
LCID int Locale ID; for example, 1033 is English. 区域编码;例如,例如1033是英国的区域编

码。
Content image Content that is applied to the site. 应用到站点的内容。
TemplateID int Template type. 模板类型。

Databases Table(Databases表)
The Databases table stores content database records that list content databases and the

associated settings in a Microsoft Windows SharePoint Services deployment. Each virtual

server in the deployment hosts a content database.
Databases表存储内容数据库(包括列表内容数据库及与其关联的SharePoint架构设置)记录。每一

个虚服务器都有一个内容数据库。
Columns
Column name Data type Description 描述
DatabaseId uniqueidentifier Primary key. 主键。
VirtualServerId uniqueidentifier Associated virtual server. Foreign key, available from

the VirtualServers table. 关联的虚服务器。外键,来自VirtualServers表。
Name nvarchar Database name. 数据库名。
UserId nvarchar User ID used to connect to the database. Blank for Integrated Windows

authentication. User ID被用来连接到数据库。如果为空则为集成windows验证。
Password nvarchar Password used to connect to the database. Blank for Integrated

Windows authentication. Password用来连接到数据库。如果为空则为集成windows验证。
SiteCount int Number of sites in the database. 数据库中站点数量。
SiteCountWarning int Number of sites allowed before a warning is generated. 数据库中允

许最大的站点数量。
SiteCountLimit int Number of sites allowed. 允许的站点数量。
DatabaseServiceId uniqueidentifier Foreign key, available from the Services table. 外键

,来自Services表。
LastModified datetime Time of last modification to the database record. 数据库记录最新

修改时间。
LastModifiedUser nvarchar User who last modified the database record. 最后修改数据库记

录的用户。
LastModifiedServer nvarchar Name of the server affected by the modifications. 修改影响

的服务器名称。
Status int Ready or Offline Status (0 is ready, 1 is offline). When offline, no

additional sites can be created but existing sites are accessible. 就绪或离线状态(0表

示就绪,1表示离线)。如果处于离线状态,除了已存在站点外不能创建其它站点创建。
Version timestamp Version of the metainfo parameter in the table. This value is

incremented when a site is created and the site count is incremented. 数据表元参数版本

。当一个站点被创建和站点数量增加时,这个值就会增加。
Properties ntext Not used in this table. 备用字段

Globals Table(Globals表)
The Globals table stores settings that apply across a Microsoft Windows SharePoint

Services deployment.
Globals表存储跨越应用于SharePoint设置的设置信息。
Columns
Column name Data type Description 描述
GlobalId uniqueidentifier Primary key. 主键。
SchemaVersion nvarchar Schema version of the configuration database. 配置数据库架构版本


UseHostHeader bit Hoster Header mode settings for Windows SharePoint Services. Windows

SharePoint Services的主机头样式设置。
UseNtAuthForDatabase bit 1 if Integrated Windows Authentication is being used for

database access; 0 if SQL Authentication is being used. 1表示访问数据库用集成windows验

证;0表示用SQL验证。
SmtpServiceId uniqueidentifier GUID for the Simple Mail Transfer Protocol (SMTP)

Service specified in the global settings of SharePoint Central Administration. Foreign

key (Services table). SharePoint中心管理全局设置简单邮件传输协议的GUID.外键来
MailCodePage int Option selected for character set in the SMTP Settings specified in

the global settings of Central Administration. 中心管理的全局设置中SMTP设置的可选字符集

选项。
FromAddress nvarchar E-mail address identified in the From field of the SMTP settings

specified in the global settings of SharePoint Central Administration. 中心管理的全局设

置的SMTP设置的来自域的可识别的E-mail地址。
ReplyToAddress nvarchar E-mail address that was placed in the Reply To field of the

SMTP settings specified in the global settings of SharePoint Central Administration. 中

心管理的全局设置的SMTP设置的回复域的可识别的E-mail地址。
LastModified datetime Time of last modification to global settings record. 全局设置的最

新修改时间。
LastModifiedUser nvarchar User name of the person who last modified global settings

record. 全局设置的最新修改人的用户名。
LastModifiedServer nvarchar Name of the server affected by the modifications. 修改影响

的服器名。
Status int Not used in this table. 备用字段。
Version timestamp Version of the metainfo parameter in the table. This value is

incremented when the UseHostHeader or SMTP Server Settings change. 表元参数版本。当用户

主机头或SMTP设置变更时该值增加。
Properties ntext Miscellaneous properties for the deployment. For example, this may

include metadata such as HTML viewing settings, blocked file types. 混合属性。例如,可

能包括原数据,比方说HTML视图设置或者
LastModifiedServer nvarchar Name of the server affected by the modifications. 修改影响

的服务器名。
Status int Not used in this table. 备用字段。
Version timestamp Version of the metainfo parameter in the table. This value is

incremented when a new computer is added to the server farm. 表元参数版本。当一台新的计

算机被添加到服务器工厂时,该值是就会增加。
Properties ntext Additional information about the server stored in XML format. 以xml格

式存储的服务器附加信息。

Services Table(Services表)
The Services table stores records for services used by the Microsoft Windows SharePoint

Services deployment.
Services表存储了Microsoft Windows SharePoint Services架构使用的服务记录。
Columns
Column name Data type Description 描述
ServiceId uniqueidentifier Primary key. 主键。
ClassId uniqueidentifier GUID that indicates the service type such as database, Simple

Mail Transfer Protocol (SMTP), or Web service. Web service corresponds to a virtual

server in Microsoft Internet Information Services (IIS). GUID表明IIS服务类型,例如数据

库,SMTP,We
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: