Introduzione alla programmazione in SharePoint SharePoint per DEV.pdf · Introduzione alla...

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

Transcript of Introduzione alla programmazione in SharePoint SharePoint per DEV.pdf · Introduzione alla...

Introduzione alla programmazione

in SharePoint Giuseppe Marchi

SharePoint MVP – Consultant/Trainer

PeppeDotNet.it [email protected]

SharePointCommunity.it

Sponsor

Sponsor Platinum

Sponsor Gold

Agenda

• SharePoint 2010

– overview

– architettura

• SharePoint 2010 per sviluppatori

– Sviluppo web part

– Accesso ai dati

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

Scenario della piattaforma Ribbon UI

SharePoint Workspace

SharePoint Mobile

Office Client and WAC Integration

Standards Support

Tagging, 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

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 support Queries / Views Webs / Site Coll.

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

Content types Features Lists / Doc libs Web parts Perf. 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

Primo sguardo a SharePoint 2010

DEMO

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)

Competenze richieste • SharePoint 2010

– Architettura

– Sicurezza

– Object Model

• ASP.NET 2.0 (o superiore)

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

• Sviluppo su .NET 3.5

– Workflow, AJAX, Silverlight

• LINQ, ADO.NET di base

SharePoint 2010

per sviluppatori

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

• Web part User control ASP.NET

– Sviluppo visuale tramite il designer di Visual Studio 2010

• 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

• Utilizza il modello ad oggetti di SharePoint 2010

Sviluppo di web part

ZONA 1

Web Part 1 Web 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

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

«Hello World» web part

DEMO

Accesso ai dati

SharePoint 2010 Data Platform

REST APIs Client Object

Model CLIENT SIDE

SERVER SIDE Server Object

Model LINQ Web Services

Chi gioca al FANTACALCIO ?

DEMO

Web: www.peppedotnet.it Mail: [email protected] Twitter: @PeppeDotNet

GRAZIE !