Title: WSS v3 for Developers
1WSS v3 for Developers
- Jan Tielens
- Blog http//weblogs.asp.net/jan
- Email jan_at_u2u.net
- .NET Architect Trainer
- U2U, Brussels
2Agenda
- WSS v2 versus WSS v3 Architecture
- WSS v3 Storage Enhancements
- WSS v3 Customization Enhancements
- Whats New for Developers in WSS v3
3WSS v3 Architecture
- Software Requirements
- Windows Server 2003
- .NET Framework 2.0
- IIS 6.0 (worker process isolation mode)
- Windows Workflow Foundation (WF)
- SQL Server 2000 (SP3) or SQL Server 2005
- Better ASP.NET 2.0 citizen than WSS v2
- No more ISAPI filter
- WSS extensions now based on HttpModules and
HttpHandlers
4WSS v2 versus WSS v3
WSS v2
WSS v3
Request
Request
IIS
IIS
WSS v2 ISAPI Filter
.aspx .asmx
ASP.NET HTTP Modules
WSS ISAPI Extension
ASP.NET Handler
Config
WSS HTTP Modules
ASP.NET HTTP Handlers
ASP.NET
WSSUnmanagedCode
Content
WSS HTTP Handlers
Config
Content
Excluded Paths
Included Paths
5What are the benefits?
- Inline now with ASP.NET 2.0 best practices for
extensibility - Virtual path provider allows for clean access to
the SharePoint pages stored in the database - New Web Part infrastructure
- Branding and customization based on ASP.NET 2.0
Master Pages and Provider Model - Forms-based authentication
- Navigation controls
6Architectural Enhancements
7WSS v3 Storage General Platform Enhancements
- Top Requests
- Recycle Bin
- Security Trimming
- Item and Document Level Security
- Forced Check-Out
- Mobile Support
8Top Requests for List and Document Library
Enhancements
9WSS v3 StorageList and Document Enhancements
- New Field Types
- Multi-value lookups, append-only, person
- Column Indexing and Cross-Site Queries
- Versioning
- Major and minor versions
- Version pruning
- Versioning in lists
- RSS Feed Support
- Off-line support in Outlook 12
10More Enhancements
11WSS v3 StorageExtensibility Enhancements
- Shared Columns
- Content Types
- List and libraries can now store more than one
type of item or document - Every type can have its own metadata, workflow,
event handlers and policies - Field Types are extensible now
12Extensibility Scenarios
13Windows WorkFlow Foundation
- Single workflow technology for Windows
- Extensible framework toolset
- Base for Microsoft products and customer
solutions - Transform workflow from niche to mainstream
paradigm - Exposed to developers via WinFX
14Workflow Basics
- Custom Workflow consists out of one or more
activities - Activity Libraries
- WF Base Activity Library
- O12 Activity Library
- Custom Libraries
- Activity is a class
- Events/Properties
- Methods called by WF Runtime engine
- WF created using Visual Studio.NET
- Deployed as .NET assembly
15WSS v3 and WF
- WSS supports workflows on items and documents
- Workflows associated with list, document library
or content type - Workflow started and completed by user actions
- Workflows are managed using WSS task lists
- Workflow-related task lists use standard WSS task
list schema - Workflow activities create and update task items
as required - Workflows are tracked through history tables
- Allows users to see workflow progress
16Creating Custom Workflows
SharePoint Designer for corporate Web designers
Visual Studio Workflow Designer for professional
developers
Development Model Visual workflow designer
Development Model Wizard-based workflow designer
Activities Re-use OOB/deployed activities
Activities Re-use OOB/deployed activities Can
author new activities
Forms Autogenerated Forms -ASPX
Forms Designed Forms -InfoPath -ASPX
Deployment Solutions package generated Box
administrator installable
- Deployment
- Workflow authored live against server
- Runtime compilation
17Creating a custom workflow with the SharePoint
Designer
18WSS v3 Master Pages
- Master Pages are a primary feature in ASP.NET 2.0
- Provides effective template solution for pages
within site - Content page reuses chrome from master page
- Content page fill in placeholders defined in
master page - WSS v3 embraces ASP.NET master pages
- WSS sites such as Team Site built using a
standard master page - Quick and easy to change look and feel of entire
site - Editing master page can be done with SharePoint
Site Designer - How do master pages work in WSS?
- Each site page in WSS site points to a master
page - Each WSS site has a Master Page Gallery (MPG)
19Master Pages and WSS v3
20WSS v3 Features Framework
- Innovation to enhance modular provisioning
- Group logical elements into scenario-driven
features - Features can be add to and reused across site
definitions - New features can be activated in existing site to
add functionality - Features scoped at web, site, web application,
farm
21Light-Up with Features
22Whats New for Developers?
- ASP.NET 2.0 Web Parts
- Event Handlers
23Web Parts in WSS v3
ASP.NET 2.0 Runtime
WSS V3 Runtime
WSS Web Parts
ASP Web Parts
ASP Web Parts
Hybrid Web Parts
WSS V2 Runtime
WSS Web Parts
WSS Web Parts
24ASP.NET 2.0 Web Parts in WSS v3
- Web Parts derive from WebPart base class
- All Web Part inherit common functionally
using System using System.Web.UI using
System.Web.UI.WebControls.WebParts namespace
LitwareWebParts public class
HelloWorldWebPart WebPart protected
override void OnPreRender(EventArgs e)
this.Title "Litware Project Revenue"
protected override void RenderContents(HtmlTextWr
iter writer) writer.Write("Hello,
world")
25ASP.NET 2.0 Web Parts in WSS v3
26WSS v3 Event Handlers
- Events architecture significantly improved
- Events supported for lists, document libraries
and content types - Events supported for changes to list schema as
well as items - Events supported at site collection and site
level - Events supported for incoming email messages
- Support for synchronous events and asynchronous
events - Synchronous events occur before the fact and are
cancel-able - How do you get events to work
- Create custom class inheriting a WSS receiver
class e.g. SPItemEventReceiver or
SPWebEventReciever - Compile class into assembly DLL and install in
GAC - Add event configuration by installing and
activating a feature
27WSS v3 Event Handlers
28Summary
- WSS v3 as a solutions framework
- Particularly suited for building scalable
Web-enabled applications - WSS "V3" provides out-of-box collaboration
solutions - WSS "V3" provides platform for Office servers
technology
Office 12 Solutions Built On WSS V3
WSS "V3" Core Workspace Services
Storage Repository Metadata Versioning Backup
Security Rights/Roles Pluggable Auth Per
Item Rights Trimming
Mgmt Admin UX Delegation Provisioning Monitoring
Topology Config Mgmt Farm Services Feature
Policy Extranet
Site Model Rendering Templates Navigation Visual
Blueprint
APIs Fields/Forms OM and SOAP Events Deployment
Operating System Services
ASP.NET (Web Parts, Personalization, Master
Pages, Provider Model for navigation, security,
etc.)
Database
Search
Workflow
29- My weblog http//weblogs.asp.net/jan
- Sign up for Beta2 http//www.microsoft.com/office
/preview/default.mspx
30(No Transcript)