June 4-8 Orlando. WSS Object Model Fundamentals Working Remotely with Lists and Document Libraries Cross-Site Data Queries Exploring New WSS Classes.

Slides:



Advertisements
Similar presentations
The following 10 questions test your knowledge of desired configuration management in Configuration Manager Configuration Manager Desired Configuration.
Advertisements

William Cornwill SharePoint Technical Specialist Microsoft Australia Microsoft Office System SharePoint 2007 Customising the Document Information Panel.
Alex Malek Program Manager Microsoft Corporation blogs.msdn.com/alexma
Designing InfoPath Forms: The Dos and Donts Deploying InfoPath Forms: Making the right choice Adding custom business logicin case the built-in stuff isnt.
 Troy Hopwood Program Manager Microsoft Corporation BB53.
Mark Rees Microsoft Consulting Services OFC409 Windows Workflow Foundation (WF) Primer Creating WF programs in Visual Studio Creating workflow templates.
SharePoint Collaboration Features & Workflow
Windows 7 Training Microsoft Confidential. Windows ® 7 Compatibility Version Checking.
Microsoft Certification Exam Coaching Session: Application Development.
Microsoft Certification Exam Coaching Session: Windows SharePoint Services 3.0, Configuring.
OFC308 Windows SharePoint Services (version 3) Development: Using Feature and Solution Definitions for Constructing Custom SharePoint Sites Todd C. Bleeker,
Feature: Assign an Item to Multiple Sites © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
Business Solutions Using Microsoft ® Office SharePoint ® Server ROADSHOW.
OFC335 Microsoft Office Word 2007 XML Programmability: True Data/View Separation and Rich Eventing for Custom XML Tristan Davis Program Manager Microsoft.
Feature: Customer Combiner and Modifier © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
New & Improved Events List Relationships and Joins Large List Support Field & List Item Validation.
Copyright © 2006 Pilothouse Consulting Inc. All rights reserved. Event Handlers Overview Classes Simple Event Handler from the SDK Deployment –Object model.
Eric White Technical Evangelist Microsoft Corporation Session Code: OFC403.
Jeff Neafsey Mobility Architect Microsoft Corporation WMB402.
customer.
What’s New in SharePoint 2010 SharePoint 2010 Development Primer New Developer Tools for SharePoint 2010 SharePoint 2010 Integration with PowerShell.
Purpose Intended Audience and Presenter Contents Proposed Presentation Length Intended audience is all distributor partners and VARs This would be presented.
demo © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
Connect with life Vedant Kulshreshtha Technology Solutions Professional – SharePoint | Microsoft India
demo Demo.
demo QueryForeign KeyInstance /sm:body()/x:Order/x:Delivery/y:TrackingId1Z
Service Pack 2 System Center Configuration Manager 2007.
2 Advanced Dashboard Creation With Microsoft Office PerformancePoint Server 2007 Myles Matheson & Chris Du Toit Information Management Practice HP New.
Joel Pobar Language Geek Microsoft DEV320 Improve on C# % Backwards Compatible Language Integrated Query (LINQ)
Windows SharePoint Services Development Part 1: Paul Appleby Application Architect Microsoft Limited.
OFC308 Hilton Giesenow Development Manager - 3fifteen Host –
Microsoft Virtual Academy Chris Oakman | Managing Partner Infrastructure Team | Eastridge Technology Curtis Sawin | Technical Solutions Professional |
Microsoft Virtual Academy Jamie McAllister | SharePoint MVP & Solution Architect Rob Latino | Program Manager in Office 365 Support.
O SharePoint 2013 Remote Event Receivers Speaker.
Joy Rathnayake Senior Architect – Virtusa Pvt. Ltd.
Yochay Kiriaty Senior Technical Evangelist Microsoft® Corporation
Microsoft Office SharePoint Server 2007 Enterprise Search
Building Compliant Team Sites
Running Reporting Services in SharePoint Integrated Mode: How and Why
Microsoft Virtual Academy
6/16/2018 © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks.
2010 Microsoft BI Conference
Collaboration and Storage with WSS v3
Customize Office 365 Search and create result sources
Services Course 9/9/2018 3:37 PM Services Course Windows Live SkyDrive Participant Guide © 2008 Microsoft Corporation. All rights reserved.
Microsoft Dynamics.
Overview of Social Computing in Microsoft SharePoint 2010
11/11/2018 Desktop Virtualization Corey Hynes Kyle Rosenthal President Technical Lead HynesITe Inc Spider Consulting @windowspcguy.
Microsoft Virtual Academy
TechEd /14/2018 6:26 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
Developer Patterns to Integrate Silverlight 4.0 with SharePoint 2010
TechEd /21/2018 5:20 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
Matt Masson Software Development Engineer Microsoft Corporation
TechEd /4/2018 3:19 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
The Dirty Dozen: Windows PowerShell Scripts for the Busy DBA
Tech Ed North America /1/2019 2:58 AM Required Slide
TechEd /11/ :54 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
Microsoft SharePoint Conference 2009 Jon Flanders
Visual Studio 2010 SharePoint Development Tools Overview
2010 Microsoft BI Conference
Microsoft Virtual Academy
Pushing Data to and from the Cloud with SQL Azure Data Sync
Microsoft Virtual Academy
2010 Microsoft BI Conference
TechEd /27/2019 5:37 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
5/17/ :57 AM OSP305 Developing Collaboration Solutions in the Cloud with Microsoft SharePoint Online Chris Mayo Snr. Technical Evangelist, Office.
Microsoft Virtual Academy
Microsoft Dynamics.
Microsoft Virtual Academy
Microsoft Virtual Academy
Presentation transcript:

June 4-8 Orlando

WSS Object Model Fundamentals Working Remotely with Lists and Document Libraries Cross-Site Data Queries Exploring New WSS Classes Event Handlers

WSS 3.0MOSS 2007 Microsoft.SharePoint.dllMicrosoft.Office.Server.dll Microsoft.Office.Server.Publishing.dll Microsoft.Office.Server.Policy.dll Microsoft.Office.Server.Search.dll Microsoft.SharePoint.Portal.dll Microsoft.Office.Workflow.Tasks.dll Microsoft.SharePoint.Publishing.dll Microsoft.SharePoint.Workflow.Actions.dll There is also the.NET Reflector on Download the SDK!!!!

WSS Sites WSS Object Model Web Parts Web Pages Smart Clients Web Parts Web Pages Smart Clients Smart and Mobile Clients Web Services Web Parts ASP.NET Custom Controls and User Controls Application pages Feature activation event handlers Event handlers for lists, doc libs, sites & site collections ASP.NET applications and Web services Windows Forms and Console applications

High Backward Compatibility With WSS v2 Some classes are obsolote -SPGlobalConfig -SPVirtualServer High Backward Compatibility With WSS v2 Some classes are obsolote -SPGlobalConfig -SPVirtualServer SPWebServer SPWebApplication SPSite SPWeb SPList SPListItem SPFarm

Represents site collection User must be authenticated and authorized unless anonymous access is enabled Site Collection has an owner Site Collection contains hierarchy of child site

Sites accessible through SPWeb objects Often must use SPSite object to access SPWeb objects

Many WSS OM objects follow IDisposable pattern They use unmanaged resources that must be released Failure to call Dispose can cause serious memory leakage

Lists are modeled using SPList objects Items modeled using SPListItem objects Document libraries can be accessed using SPList

Site represents hierarchy of files and folders Files represented through SPFile objects Folders represented through SPFolder objects What can be done? Discover all files and folders within a site Add, move, copy, delete files and folders Return a page to its initial ghosted state Program against Web Part data on a Web Part Page

Document Library is more than a SPList object Can convert SPList to SPDocumentLibrary Make extra functionality accessible

DEMO

Impersonating using the SPSite constructor Elevating Privileges The ISecurableObject Interface Dont forget: Test your Web Parts with the least security permissions!

Web Part code is executed with the account of the logged- on user Impersonation done by SharePoint Handle this elegantly!

Constructor of SPSite accepts now an SPUserToken used to impersonate a specific user Tokens time out after 24 hours Web Part requires SharePointPermission with Impersonate option

Some aspects of WSS OM require privileged users Run your code with the SharePoint\System account Use with care! The behavior has been created by design (not a mistake!) SPSecurity.RunWithElevatedPrivileges solves many problems Web Parts must have the SharePointPermission to execute this code Seal your Web Part!

Everybody doing security implements this interface SPWeb, SPList, SPListItem

DEMO

CAML = Collaborative Application Markup Language Used in SharePoint for Definition of the Sites, Lists and Views Querying of SharePoint content Executing CAML Queries SPQuery SPSiteDataQuery Lists.asmx

DEMO

Remotely view and edit SharePoint List data Operations available: Work with Document Libraries using FrontPage RPC AddAttachment UpdateList DeleteList UpdateListItems GetAttachmentCollection AddList GetListItemChanges GetListAndView GetList GetListCollection GetListItems DeleteAttachment

DEMO

What is an event handlers? An event handler is a.NET assembly containing one or more classes handling events that are triggered by SharePoint WSS v2 only possible for document libraries executed in an asynchronous manner WSS v3 events architecture significantly improved Scope has been extended: lists, document libraries, content types, site, site collection Events supported for incoming messages Support for synchronous events and asynchronous events Synchronous events occur before the fact and are cancel-able Events are used in other scenarios Custom policies Features

ScopeDescriptionBase Class Item in a list or library Actions users can do in a list include adding, modifying, deleting, check-in and check-out,... SPItemEventReceiver List or libraryTrap changes to entities of list schema events, supporting list schema operations and the addition or removal of content types. SPListEventReceiver WebEvents fired at the level of the site (e.g. adding and removing sites, creating and deleting lists) SPWebEventReceiver Provides a method for trapping the event when a list receives an message ( Received) SP EventReceiver FeatureTrap the activation, deactivation, installation, or uninstallation of a Feature SPFeatureReceiver

.NET class library Reference to Microsoft.SharePoint.dll Custom class inheriting a WSS receiver class Override base methods using Microsoft.SharePoint; namespace Demos { public class MyEventHandler: SPItemEventReceiver { public override void ItemDeleting(SPItemEventProperties properties) { // do something and possibly cancel the event properties.Cancel = true; properties.ErrorMessage = my message"; } public override void ItemDeleted(SPItemEventProperties properties) { // do something }

Compile class into strong-named assembly Deploy the DLL in GAC Register DLL as event handler in WSS v3 The WSS v2 way (only for document libraries) Programmatically via the object model Using the new WSS feature framework

DEMO

Navigation Content Types Recycle Bin Versioning Workflow

WSS Navigation is extensible Add nodes through WSS UI Adds nodes through code

SPContentTypeCollection SPContentType SPContentTypeId SPFieldLinkCollection SPFieldLink SPXmlDocumentCollection

WSS provides rich auditing support But doesn't make auditing usable OOB - you need MOSS Custom development required to make WSS auditing functional enable auditing using code now examine what's in WSS audit log

DEMO

WSS exposes a very rich object model Dont forget to clean up your WSS v2 code a bit And do call Dispose() Many improvements have been done to remove the many issues regarding security and SharePoint programming Impersonation is more elegant Common interface for objects that support ACLs Web Services are your way of getting acces to SharePoint remotely Event handlers are now a major extensibility option Many many new classes.. And wait till youve seen the MOSS object models

Q&A

Breakout Sessions Session Codes and Titles Chalk-Talks Session Codes and Titles Instructor-led Labs Session Codes and Titles Hands-on Labs Hands-on Lab Codes and Titles

Technical Communities, Webcasts, Blogs, Chats & User Groups Microsoft Developer Network (MSDN) & TechNet Trial Software and Virtual Labs Microsoft Learning and Certification Required slide

Complete an evaluation on CommNet and enter to win! Required slide

© 2007 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.