1 / 46

Microsoft SharePoint 2010 technology for Developers

Microsoft SharePoint 2010 technology for Developers. Part I. Olaf Feldkamp Microsoft Schweiz GmbH Olaf.Feldkamp@microsoft.com. Agenda. Introduction to SharePoint 2010 Visual Studio 2010 SharePoint Tools Sandboxed Solutions New APIs REST Client Object Model LINQ to SharePoint. Oct 09.

nan
Télécharger la présentation

Microsoft SharePoint 2010 technology for Developers

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Microsoft SharePoint 2010 technology for Developers Part I Olaf Feldkamp Microsoft Schweiz GmbH Olaf.Feldkamp@microsoft.com

  2. Agenda • Introduction to SharePoint 2010 • Visual Studio 2010 SharePoint Tools • Sandboxed Solutions • New APIs • REST • Client Object Model • LINQ to SharePoint

  3. Oct 09 Nov 09 April 2010 May 2010 SharePoint Conference2009 Beta 2 (public) RTM Launch

  4. Introduction to Microsoft SharePoint 2010 technology

  5. Microsoft SharePoint 2010 technologyTheBusiness Collaboration Platformfor the Enterprise and the Web Sites Connect and Empower People Composites Communities Cut Costs with a unified Infrastructure Rapidly respond to Business Needs Insights Content Search

  6. SharePoint Foundation 2010 Template Based Solution SharePoint Workspace, SharePoint Mobile Office Client and Office Web App Integration Ribbon UI, Standards Support Business Connectivity Services External Lists Workflow SharePoint Designer Visual Studio 2010 API Enhancements REST/ATOM/RSS Sites Blogs and Wikis Composites Communities Insights Content Remote Blob Storage Versioning List Enhancements Search

  7. SharePoint Server 2010 Template Based Solution SharePoint Workspace, SharePoint Mobile Office Client and Office Web App Integration Ribbon UI, Standards Support Business Connectivity Services External Lists Workflow SharePoint Designer Visual Studio 2010 API Enhancements REST/ATOM/RSS InfoPath Form Services Access Services Blogs and Wikis Tagging, Tag cloud, Ratings Social Bookmarking My Sites Activity Feeds Profiles and Expertise Organisation Browser Sites Composites Communities Excel Services PerformancePoint Services Chart Web Parts Visio Services Web Analytics SQL Server Integration PowerPivot Remote Blob Storage Versioning List Enhancements Enterprise Content Types Metadata and Navigation Document Sets Multistage Disposition Audio and Video Content Types Word Automation Services Insights Content Search Social Relevance Phonetic Search Navigation FAST Integration Enhanced Pipeline

  8. SharePoint 2010 Sessions at TechDays 2010 SharePoint 2010for Developers I • Line-of-Business Applications with SharePoint and Silverlight • Workflow Development • SharePoint Sandboxed Solutions • Migration/Update to SharePoint 2010 • Microsoft Online Services • What's new in Office Client Sites Composites Communities Insights Content Search Insights Overview SharePoint forInformation Architects SharePoint 2010 for Developers II

  9. Well-formed XHTML 1.0 Cross-Browser Best experience: Internet Explorer 7 and 8, Firefox 3.x Increased level of compatibility on non-Windows platforms: Safari 3.x and FireFox WCAG 2.0 AA (Web Content Accessibility Guidelines) New Rich Text Editor supporting XHTML Standards Compliancy

  10. Introducing the new User Experience demo

  11. SharePoint 2010 Platform and Products Your Product Microsoft Products {your opportunityis here} Build on/with Base Platform (64 Bit)

  12. Reference #1: Partner: EGELI Informatik AGCustomers: various

  13. Reference #2: Partner: ADVIS AGCustomer: Kanton Luzern

  14. Reference #3: Partner: BPA Solutions SARLCustomers: various

  15. Bold: Covered in this and the next presentation Developer Investments in SharePoint 2010 • Visual Studio 2010 Tools for SharePoint • Application Lifecycle Management • Developer Dashboard shows Page Performance • Install on Windows Vista SP1 or Windows 7(for Developers) • SharePoint Designer 2010 Integration Developer Productivity • User Interface: Silverlight, XSLTListViewWebPart • Data Foundation: Relationships, Lookups • Programmability: Client and REST API, LINQ, Events, Workflow • Integration: Business Connectivity Services Rich Platform Services • Standardized WSP Package Deployment • Sandboxed Solutions • On-Premises or SharePoint Online Flexible Deployment

  16. Replaces ListView-, ListForm-, DataFormWebPart Web 2.0 View Framework Data: replaces CAML for Views  new Default: XSLT-based Views CAML still used for Queries List Schema XSL Easier edit in SharePoint Designer Better User Interface E.g. Inline editing XsltListViewWebPart

  17. XsltListViewWebPart in Action

  18. Visual Studio 2010SharePoint Tools

  19. End-to-end SharePoint 2010 developer story SharePoint Explorer for site exploration SharePoint 2010 project and item templates Visual designers for core scenarios Extensible by 3rd party developers Migration path for Visual Studio 2008 for WSS 3.0 Benefits to SharePoint developers Abstracts away details of RootFiles directory Abstracts away details of building .wsp file Lessens/eliminates need for ext. utilities Visual Studio 2010 SharePoint Tools

  20. What does F5 do? Builds new version of .wsp file Deactivates/uninstalls feature Retracts/deletes old .wsp file Adds/deploys new .wsp file Activates feature in target site (via Site Url) Attaches debugger to W3WP.EXE worker process (via Site Url) The F5 Debugging Experience

  21. Visual Studio 2010SharePoint Tools demo

  22. Visual Studio 2010 Project Template (Event Receiver) After-Synchronous Events New property on receiver definition to change after-event to synchronous SPEventReceiverDefinition.Synchronization New Events Site-scoped Web creation List creation More User Interface Control Custom Error Pages SharePoint List Events Improvements

  23. Relational lists nowenforce referential integrity! Lookup columns must be indexed (automatic) Joins can be implemented using the API, CAML, or SharePoint Designer 2010 New properties on SPQuery SPQuery.Join SPQuery.ProjectedFields Relational Lists: Joins

  24. Lists can now support 50Mitems, under read scenarios Central Admin (Web app) Block expensive queries List query size threshold Default: 5’000 items Object model overrideSPQuery.RequestThrottleOverride Lookup threshold Daily time window forlarge queries Large List Support

  25. Sandboxed Solutions

  26. Developer • Designs, builds, and testscustomizations Custom Solutions with SharePoint 2007 • Administrators can only secure solutions with Code Access Security • Hard to control what is being done in custom code • Custom code is biggest cause of SharePoint support cases Administrator • Installs and monitors customizations Site Collection Owner • Activates and uses customizations

  27. Developer • Designs, builds, and tests customizations SharePoint 2010 Approach • Sandboxed Solutions • Automatic triggers turn off custom solutions in a site collection that are too expensive on the server Administrator • Establishes Resource Quotas • Monitors customizations Site Collection Owner • Deploys, activates and uses customizations

  28. A separate process where the solution runs Exposes a subset of Microsoft.SharePoint Code Access Security policy limits functionality Site Collection Solution Gallery for deployment Central Administration for managing and monitoring solutions The Sandbox

  29. SharePoint Online Standard in 2010 will be a much larger subset of SharePoint Server 2010 Your Choice: On-Premises or Online On-Premises Deployments SharePoint Online Standard SharePoint Online Dedicated • Self-hosted and managed • Direct access to physical machines • Central admin access • Hosted within own data centers • Entire environment customizable • All accounts, machines, and data within a single AD Forest • Available to companies of any size • Multi-tenant hosting • Shared Hardware • Outsourced IT management • Hosted within MS data centers • Sandboxed solutions (2010) • Support for SharePoint Designer based customizations • Certificate authentication or Forms based authentication (2010) • Available for companies with 5+ seats • Dedicated Hosting • Dedicated Hardware • Outsourced IT management • Hosted within MS data centers • Most of the environment is customizable (Full Trust and Partial Trust Code Support) • Machine and Process accounts in a different AD Forest • NTLM Authentication • Available for companies with 5000+ seats

  30. Sandboxed Solutions demo

  31. SharePoint 2010 APIs

  32. Overview of SharePoint 2010 APIs REST Strongly-typed Lists For remote Code ClientObject Model Weakly-typed Lists Web Services Weakly-typed lists ServerObject Model Weakly-typed lists For server-side Code LINQ Strongly-typed lists New in 2010 Improved

  33. Server Object Model Complete API Server code only Web Services More coverage in SharePoint 2010 Client Object Model Very flexible REST Easiest to use For fixed list schema APIs: Functional Range Server Object Model Web Services - Advanced Operations - SharePoint Server Operations Client Object Model - Advanced List Operations - Site Operations - Security REST Working with list data

  34. Standards-based JSON and Atom CRUD operations on lists …/_vti_bin/listdata.svc/Employees Working with Visual Studio Add Service Reference http://server/yourSite/_vti_bin/listdata.svc Based on latest version of WCF Data Services Beta 2 needs ADO.NET 1.5 CTP 2 DLL references or .NET Framework 4 REST API

  35. REST API demo

  36. Client Object Model

  37. All Client Object Models call client.svc(WCF Service) Member names mostly the same from server to client E.g.: SPWeb.QuickLaunchEnabled == Web.QuickLaunchEnabled Equivalent Objects

  38. 1. ClientContext is the central object 2. Before you read a property, you have to ask for it 3. All requests must be committed in a batch Getting started: 3 things to know clientContext = new ClientContext(“http://mysite”); Site siteCollection = clientContext.Site; clientContext.Load(siteCollection); clientContext.ExecuteQuery();

  39. SharePoint 2010 Client Object Model demo

  40. LINQ to SharePoint

  41. Before SharePoint 2010: CAML was used for list queries Used in SPQuery() and SPSiteDataQuery() LINQ to SharePoint development is similar to e.g. LINQ to Entities Entity classes are strongly-typed, compile-time check Intellisense helps query construction New Assembly: Microsoft.SharePoint.Linq.dll LINQ to SharePoint <Where> <Gt> <FieldRef Name='EndDate'/> <Value Type='DateTime'> <Today OffsetDays=\"-1\"/> </Value> </Gt> </Where>

  42. Create Entity Classes Add this new output file to Visual Studio Project Support for List joins, join on lookup fields Join multiple lists (A  B  C) Project any field from joined list in a query without changes in list schema LINQ to SharePoint • SPMETAL.EXE /web:http://sp/sites/technical /code:technical.cs • var query = from o in data.Orders where o.Customer.City.Name== “Basel“ select o;

  43. SharePoint 2010 API: Decision Matrix  Combine Client OM and REST/Server OM and Linq!

  44. SharePoint 2010 is a great platform to build on Visual Studio 2010 provides a first class development experience for SharePoint Sandboxed Solutions are the future New REST and Client Object Model provide easy access to SharePoint from client apps Use LINQ to SharePoint for queries Summary

  45. Thank you for your Attention! • For more Information please contact • Olaf Feldkamp • Development Platform Advisor • Olaf.Feldkamp(at)microsoft.com • Phone (UC): +41 (43) 456 63 87 • Microsoft Schweiz GmbH • Richtistrasse 3 • 8304 Wallisellen

More Related