Introduzione a SharePoint 2010 per sviluppatori (.NET Campus 2011)

17
Introduzione alla programmazione in SharePoint Giuseppe Marchi SharePoint MVP Consultant/Trainer PeppeDotNet.it [email protected] SharePointCommunity.it

description

Introduzione allo sviluppo su SharePoint 2010

Transcript of Introduzione a SharePoint 2010 per sviluppatori (.NET Campus 2011)

Page 1: Introduzione a SharePoint 2010 per sviluppatori (.NET Campus 2011)

Introduzione alla programmazione

in SharePointGiuseppe Marchi

SharePoint MVP – Consultant/Trainer

[email protected]

SharePointCommunity.it

Page 2: Introduzione a SharePoint 2010 per sviluppatori (.NET Campus 2011)

Sponsor

Sponsor Platinum

Sponsor Gold

Page 3: Introduzione a SharePoint 2010 per sviluppatori (.NET Campus 2011)

Agenda

• SharePoint 2010

– overview

– architettura

• SharePoint 2010 per sviluppatori

– Sviluppo web part

– Accesso ai dati

Page 4: Introduzione a SharePoint 2010 per sviluppatori (.NET Campus 2011)

SharePoint 2010• Piattaforma di

– Collaborazione

– Gestione processi

– Gestione documentale

– Integrazione tra piattaforme

– Social networking

– Ecc..

• Programmabile/estensibile

– Basata su Microsoft ASP.NET

– Estendibile scrivendo codice .NET

– Customizzabile utilizzando VS2010 / SharePoint Designer 2010

Page 5: Introduzione a SharePoint 2010 per sviluppatori (.NET Campus 2011)

Scenario della piattaformaRibbon UI

SharePoint Workspace

SharePoint Mobile

Office Client and WAC Integration

Standards SupportTagging, Tag Cloud, Ratings

Social Bookmarking

Blogs and Wikis

My Sites

Activity Feeds

Profiles and Expertise

Org Browsing

Mobile Support

Enterprise Content Types

Enterprise Metadata and Nav

Document Sets

Multi-stage Disposition

Audio and Video Content Types

Remote Blob Storage

List Enhancements

PerformancePoint Services

Excel Services

Charts

Visio Services

Web Analytics

SQL Server Integration/Gemini

Business Connectivity Services

InfoPath Form Services

External Lists

Workflow

SharePoint Designer

Visual Studio

API Enhancements

REST/ATOM/RSS

Page 6: Introduzione a SharePoint 2010 per sviluppatori (.NET Campus 2011)

SharePoint Server 2010

SharePoint Foundation 2010

.NET Framework 3.5 e ASP.NET 3.5 SP1

Internet Information Services 7.x

Windows Server 2008/R2 (64 bit)Windows 7/Vista SP1/SP2 (64 bit)

SQL Server 2005 SP3 (64 bit)SQL Server 2008/R2 (64 bit)

Alerts External data Files / Docs Mobile supportQueries / Views Webs / Site Coll.

Columns / Fields Event Handling Health rules SolutionsPages, UI & Ribbon Workflows

Content types Features Lists / Doc libs Web partsPerf. Monitoring Admin / Manag.

Search

Document ID/Document Set

Excel service

User profiles

InfoPath Service

Word Automation Service

Powerpoint Broadcast Service

Web Analytics Service

Visio Service

Access Service

Managed Metadata

Performance Point

Page 7: Introduzione a SharePoint 2010 per sviluppatori (.NET Campus 2011)

Primo sguardo a SharePoint 2010

DEMO

Page 8: Introduzione a SharePoint 2010 per sviluppatori (.NET Campus 2011)

Versioni del prodotto• SharePoint Foundation 2010

– Gratuito

– Basta avere delle license Windows Server

• SharePoint Server 2010

– A pagamento

– Funzionalità evolute

– Si basa su SharePoint Foundation 2010

• SharePoint Server FAST 2010

– A pagamento

– SharePoint Server 2010 + FAST

• Versioni «on-line» dei prodotti

– Office 365 e SharePoint Online (tutt’ora in beta)

Page 9: Introduzione a SharePoint 2010 per sviluppatori (.NET Campus 2011)

Competenze richieste• SharePoint 2010

– Architettura

– Sicurezza

– Object Model

• Sviluppo su .NET 3.5

– Workflow, AJAX, Silverlight

• ASP.NET 2.0 (o superiore)

– Master pages, Web control, Web parts, Provider Model, Authentication, ecc...

• LINQ, ADO.NET di base

Page 10: Introduzione a SharePoint 2010 per sviluppatori (.NET Campus 2011)

SharePoint 2010

per sviluppatori

Page 11: Introduzione a SharePoint 2010 per sviluppatori (.NET Campus 2011)

Sviluppo di web part• In sostanza: “è un pezzo di pagina”

• Web part Web control ASP.NET

• Nuova classe che eredita da:

– System.Web.UI.WebControls.WebParts.WebPart

– Microsoft.SharePoint.WebPartPages.WebPart

• Specifica di proprietà

• Ovverride di alcuni metodi

– CreateChildControls

– Render

– Ecc...

• Aggiunta nella pagina ed esecuzione

Page 12: Introduzione a SharePoint 2010 per sviluppatori (.NET Campus 2011)

Sviluppo di web part

ZONA 1

Web Part 1Web Part 2

ZONA 2

Web Part 3 Web

Part 4

• Per l’utente• UI Flessibile• Contenuto personalizzato

• Per lo sviluppatore• Riutilizzo di codice• Personalizzazione della UI• Aggiunta funzionalità

custom

Page 13: Introduzione a SharePoint 2010 per sviluppatori (.NET Campus 2011)

Supporto in Visual Studio 2010

• Visual Studio 2010 supporta nativamente lo sviluppo per SharePoint !

– Template di progetto/elemento

• Posso sviluppare anche su Windows 7 / Vista (SP 2)

• Designer grafico per Web Part

– Visual Web Part

• Package in soluzioni SharePoint (.wsp)

– Package Designer

• Deploy automatico e debug

• SharePoint Explorer

• Mapped folder

Page 14: Introduzione a SharePoint 2010 per sviluppatori (.NET Campus 2011)

«Hello World» web part

DEMO

Page 15: Introduzione a SharePoint 2010 per sviluppatori (.NET Campus 2011)

Accesso ai dati

SharePoint 2010 Data Platform

REST APIsClient Object

ModelCLIENT SIDE

SERVER SIDEServer Object

ModelLINQ Web Services

Page 16: Introduzione a SharePoint 2010 per sviluppatori (.NET Campus 2011)

Chi gioca al FANTACALCIO ?

DEMO

Page 17: Introduzione a SharePoint 2010 per sviluppatori (.NET Campus 2011)

Web: www.peppedotnet.itMail: [email protected]: @PeppeDotNet

GRAZIE !