Upload
lorena-chalcraft
View
214
Download
0
Tags:
Embed Size (px)
Citation preview
©2009 Microsoft Corporation. All rights reserved. Beta 2 Content – Published 12/1/2009
GetReady for SharePoint development
Developing for SharePoint
©2009 Microsoft Corporation. All rights reserved. Beta 2 Content – Published 12/1/2009
Overview
ToolsListsLINQClient object modelWorkflowSandboxed solutions
©2009 Microsoft Corporation. All rights reserved. Beta 2 Content – Published 12/1/2009
NEW DEVELOPER TOOLS FOR SHAREPOINT 2010
©2009 Microsoft Corporation. All rights reserved. Beta 2 Content – Published 12/1/2009
SharePoint 2010 Developer Dashboard
©2009 Microsoft Corporation. All rights reserved. Beta 2 Content – Published 12/1/2009
VS 2010 SharePoint Tools
SharePoint 2010 development brings new tools
Created by group within Visual Studio 2010 teamMajor step forward from SharePoint 2007 developmentNew tools target SharePoint 2010 onlySharePoint Explorer New Project and Item Templates New Project Structure
©2009 Microsoft Corporation. All rights reserved. Beta 2 Content – Published 12/1/2009
SharePoint 2010 Project Structure
Standard Project Nodes
Properties (standard with Visual Studio)
References (standard with Visual Studio)
Features (always added by SharePoint 2010 Developer Tools)
Package (always added by SharePoint 2010 Developer Tools)
SharePoint Project Items (optionally added by dev using SharePoint 2010 Developer Tools)
©2009 Microsoft Corporation. All rights reserved. Beta 2 Content – Published 12/1/2009
Feature Node and Feature Designer
Feature node contains one or more featuresFeature designer provides design mode and XML text ModeCustomize feature properties in designer and/or property gridUse Context menu of Feature node to add feature event receiverFeature designer allows adding/removing SPIsCustomize feature activation dependencies
©2009 Microsoft Corporation. All rights reserved. Beta 2 Content – Published 12/1/2009
The F5 Debugging Experience
What does F5 do?1. Builds new version of .wsp file2. Deactivates/uninstalls feature3. Retracts/deletes old .wsp file4. Adds/deploys new .wsp file5. Activates feature in target site (via Site Url)6. Attaches debugger to W3WP.EXE
worker process (via Site URL)
©2009 Microsoft Corporation. All rights reserved. Beta 2 Content – Published 12/1/2009
SharePoint Designer Improvements
SPD shell’s focus on SharePoint objectsSPD objects have relationshipsIntuitive navigation between SPD objects
SPD work migrates to Visual Studio 2010SPD customization work exported to .wsp files.wsp files imported into Visual Studio
SPD 2007 UI
SPD 2010 UI
New UI focusedon SP Objects
©2009 Microsoft Corporation. All rights reserved. Beta 2 Content – Published 12/1/2009
LISTS
©2009 Microsoft Corporation. All rights reserved. Beta 2 Content – Published 12/1/2009
Relational Lists & Joins
MSF 4.0 introduces the capability to have a relationship behavior enforced by a Lookup fieldNew investments:
Projected fields into child listsJoinsRelational integrity between parent & child lists
Introduces new security considerations and possible issues
©2009 Microsoft Corporation. All rights reserved. Beta 2 Content – Published 12/1/2009
Large List Support
MSF 4.0 lists can now support 50M items
Under read scenariosPlatform Investments:
Configuration options for administrators per Web application (Central Administration)Site collection & list administrators can request privileged operations (expensive queries)
Default Query Restrictions
©2009 Microsoft Corporation. All rights reserved. Beta 2 Content – Published 12/1/2009
Unique Column Constraints
Lists can now contain columns that require all values in all items in the list for that column to be unique
Scoped at SPList, not SPFolder, level
Unique columns must be indexed (automatically configured)When making existing column unique, existing data is validatedUniqueness determined by SQL collation
Ex: Case sensitive / insensitive
©2009 Microsoft Corporation. All rights reserved. Beta 2 Content – Published 12/1/2009
List Item Validation
Items are validated against a custom formula when saved
©2009 Microsoft Corporation. All rights reserved. Beta 2 Content – Published 12/1/2009
List Item Field Validation
Similar to list item validation, each column can be validated using a custom field, or by referencing other fields
©2009 Microsoft Corporation. All rights reserved. Beta 2 Content – Published 12/1/2009
LINQ TO SHAREPOINT
©2009 Microsoft Corporation. All rights reserved. Beta 2 Content – Published 12/1/2009
LINQ to SharePoint
No CAML RequiredEntity classes form Business LayerStrongly-typed queries, compile-time checkIntellisense helps query constructionMicrosoft.SharePoint.Linq.dll
Encapsulates the SharePoint object model queries based on the created entity classes
©2009 Microsoft Corporation. All rights reserved. Beta 2 Content – Published 12/1/2009
Using LINQ to SharePoint
Create Entity
Classes
Create DataContex
t
Writer Queries
©2009 Microsoft Corporation. All rights reserved. Beta 2 Content – Published 12/1/2009
CLIENT OBJECT MODEL
©2009 Microsoft Corporation. All rights reserved. Beta 2 Content – Published 12/1/2009
Why Client Object Model?
More SharePoint Web services is a major requestClient Object Model provides complete API instead of more servicesProvides an abstraction layer to return results as recognizable SharePoint objectsConsistent developer experience across platforms (.NET, ECMAScript, Silverlight)
©2009 Microsoft Corporation. All rights reserved. Beta 2 Content – Published 12/1/2009
Supported Areas
Site Collections and SitesLists, List Items, Views, and List SchemasFiles and FoldersWeb, List, and List Item Property BagsWeb PartsSecurityContent TypesSite Templates and Site Collection Operations
©2009 Microsoft Corporation. All rights reserved. Beta 2 Content – Published 12/1/2009
Equivalent Objects
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
Member names mostly the same from server to client (e. g., SPWeb.QuickLaunchEnabled = Web.QuickLaunchEnabled)
©2009 Microsoft Corporation. All rights reserved. Beta 2 Content – Published 12/1/2009
Using the Client Object Model
Client.svc
Server OM
Contentdatabase
JavaScript OM
Proxy
Managed OM
Proxy
Managed Controls and Logic
JavaScript Controls and Logic
XML Request
XML Request
JSON Response
JSON Response
Browser
Managed Client
SharePoint Server
©2009 Microsoft Corporation. All rights reserved. Beta 2 Content – Published 12/1/2009
ADO.NET Data Services
LINQ to SP not implemented in SilverlightListData.svc provides RESTful accessListData.svcLoads ADO.NET Data Services handler assembly
Microsoft.SharePoint.ListDataService.dllImplements IDataServiceProvider interface.
Microsoft.SharePoint.Linq.dllImplements Linq to SharePoint provider
©2009 Microsoft Corporation. All rights reserved. Beta 2 Content – Published 12/1/2009
SHAREPOINT 2010 WORKFLOW
©2009 Microsoft Corporation. All rights reserved. Beta 2 Content – Published 12/1/2009
Prototype, Design and Develop
SharePoint 2010 offers new development process
Envision workflows in VisioImport into SharePoint Designer
Parameterize
Export to Visual Studio 2010Add code
Visio SPD VS10
©2009 Microsoft Corporation. All rights reserved. Beta 2 Content – Published 12/1/2009
SharePoint 2010 Workflow Targets
Site List Item
©2009 Microsoft Corporation. All rights reserved. Beta 2 Content – Published 12/1/2009
Creating Workflows in Visio
Visio has SharePoint Workflow template
Allows you to create workflow design in VisioWorkflow can be exported to SharePoint Designer
©2009 Microsoft Corporation. All rights reserved. Beta 2 Content – Published 12/1/2009
SharePoint Designer Improvements
For DesignNew declarative workflow designerAdvanced task process designerInfoPath FormsVisio workflow designer
For DevelopmentReusable workflowsVisio visualizationsExport as WSP
©2009 Microsoft Corporation. All rights reserved. Beta 2 Content – Published 12/1/2009
What’s new in Visual Studio 2010
Site WorkflowsASP.NET Form TemplatesNew eventsExternal Data Exchange
©2009 Microsoft Corporation. All rights reserved. Beta 2 Content – Published 12/1/2009
SANDBOXED SOLUTIONS
©2009 Microsoft Corporation. All rights reserved. Beta 2 Content – Published 12/1/2009
Sandboxed Solutions
Allow a subset of ‘full’ solution features
Code executes in sandbox
Are deployed by a Site Collection administrator
Stored in the Solution Gallery
©2009 Microsoft Corporation. All rights reserved. Beta 2 Content – Published 12/1/2009
Sandboxed Solutions Process
Root SPWeb of SPSite
Solution galleryWebParts.wsp
Web Part gallery
Per-WFE AssemblyCache
<siteguid>\company.intranet.webpart.wsp\company.intranet.dll
Sandboxed Code Serice
1
2 5
6
7
4
3
©2009 Microsoft Corporation. All rights reserved. Beta 2 Content – Published 12/1/2009
Front end Back end
Host ServiceExecutionManager
Sandboxing Architecture
Worker Process
Untrusted Code
Subset Object Model
Full Object Model
©2009 Microsoft Corporation. All rights reserved. Beta 2 Content – Published 12/1/2009
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.
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.