SharePoint 2010 Online for Developer

41
introdu c K.Mohamed Faizal, Lead Consultant – Chief Architect Office 31 st Jan 2012 @ SharePoint CoP Introducing for Developer

Transcript of SharePoint 2010 Online for Developer

Page 1: SharePoint 2010 Online for Developer

introducK.Mohamed Faizal, Lead Consultant – Chief Architect Office 31st Jan 2012 @ SharePoint CoP

Introducing

for Developer

Page 2: SharePoint 2010 Online for Developer

introduc2

Page 3: SharePoint 2010 Online for Developer

Agenda• Introduction to Office 365• SharePoint Online Overview• SharePoint 2010 Online what is in / out• Developing for SharePoint 2010 Online • Sandbox Solutions• Workflow Solutions

3

Page 4: SharePoint 2010 Online for Developer

Introducing 

Page 5: SharePoint 2010 Online for Developer

| Copyright© 2011 Microsoft Corporation

Office 365 Includes…

• Store your important documents, and share expertise using personal My Sites

• Share documents, task lists, and schedules to keep business units in sync using team sites

• Work effortlessly with partners and customers by creating sites to share information securely

• 10GB per tenant + 500 MB per user

• 25GB Mailbox• Outlook and Outlook Web App• Premium antivirus/anti-spam (Forefront)• Shared calendars, contacts, and tasks• Mobile email for most mobile devices including

BlackBerry, iPhone, Nokia, Windows Phone• Email archiving and compliance capabilities

• Instant messaging and presence• PC-to-PC audio and video calling • Click-to-communicate from Outlook, SharePoint, and other Office

Applications • Online meetings with PC-audio, video conferencing and screen

sharing• Single click meeting creation and join from Outlook• Calendar integration with Outlook and Exchange

• Flexible service offering with pay-as-you-go, per-user licensing• The complete Office experience with services integration in

Office 365 • Simplified user set-up to preconfigure services• Always the latest version of the Office apps, including Office Web

Apps• Familiar Office user experience to access services

Single user interface to purchase, administer and user with role-based access control | Single sign-on with on-premises Active Directory |

99.9% financially backed SLA | 24x7 IT Pro Support | Built in geo-redundancy in regional datacenters

CONTROL AND EFFICIENCY

Page 6: SharePoint 2010 Online for Developer

World Class Data Centers

• $2.3B+ Investment in cloud infrastructure• Geo-Redundant Data Centers• Locations in North America, Europe, and Asia to provide optimal

performance• 99.9% guaranteed uptime (99.95% actual)• Secure Infrastructure – ISO27001 and SAS70 certified• Built from the ground up to be environmentally sustainable

Page 7: SharePoint 2010 Online for Developer

Plans for All Your Employees

7

Plan K1$4/m

Plan K2$10/m

Plan E1$10/m

Plan E2$16/m

Plan E3$24/m

Plan E4$27/m

Page 8: SharePoint 2010 Online for Developer

TEAM SITES

Keep teams in sync and manage important projects

INTRANET SITES

Keep up to date with company news and

information

Create sites to share documents and information with colleagues and customers

MY SITES

Manage and share personal documents and information

Page 9: SharePoint 2010 Online for Developer

Search

SharePoint and the cloud

Sites & Communities Content Management Business Intelligence & Composite Applications

ON PREMISES

OFFICE 365No BCS, PerformancePoint

No full-trust code

No FAST Search or Unified Search

No Records Center or e-discovery

No SharePoint for Internet Sites

Page 10: SharePoint 2010 Online for Developer

SharePoint Online Feature Overview

Sites and Communities• My Sites• Team Sites• Intranet Sites• External Sharing Sites• Wikis & Blogs

• Tagging, rating, commenting, note board• Office Integration (2007/2010)• SharePoint Workspace 2010 for Offline

Working• Simple Public-Facing Website

Content• Document Libraries• Slide & Media Libraries• Business Taxonomies & Tagging

• Document Sets & ID’s• Legal Holds• Office Web Apps

Search• Cross-site Collection Search• Search Refiners• Best bets

• Indexing Controls People Search• Phonetic Search• View in browser

Insights and Composites• Excel Services• Access Services• Visio Services

• Forms Services• Silverlight Web part• Sandbox Solutions

Page 11: SharePoint 2010 Online for Developer

Sites & Communities

11

• My Sites• Team Sites• Intranet Sites• Extranet Sites• Office Integration (2007/2010)• SharePoint Workspace 2010 for Offline Working• Simple Public-Facing Website

What’s In

• SharePoint for Internet Sites (targeted for release in FY12). Supports customizations, site authoring, and WCM workflow and approval.

What’s Out

Page 12: SharePoint 2010 Online for Developer

• Document Libraries• Slide & Media Libraries• Business Taxonomies & Tagging• Document Sets & ID’s• Office Web Apps

What’s In

• Access to customer asset management systems. This limitation disables support for end-to-end eDiscovery scenarios. Targeted for W15.

What’s Out

Content Management

12

Page 13: SharePoint 2010 Online for Developer

Search, Insights & Composites

13

• Cross-site Collection Search• Search Refiners/Indexing Controls People Search• Phonetic Search• Excel Services• Access Services• Visio Services• Forms Services• Silverlight Web part• Sandbox Solutions

What’s In

• Business Connectivity Services (BCS) which eliminates the ability to access external services. Targeted for release in FY12.• ‘Unified’ Search results combining online and customer site sources. (Targeted for W15)• FAST Search which includes features such as thumbnails, previews, contextual search, visual best bets, and deep search

refinement. Targeted for W15.• PerformancePoint Services. Targeted for W15.• PowerPivot is unable to connect to external services. Targeted for release in FY12.• Sandbox Solutions are targeted at the site collection level. • Alternatives to higher-end custom solutions (full-trust code) are targeted for FY12 and W15.

What’s Out

Page 14: SharePoint 2010 Online for Developer

Sites Communities

Content Search CompositesInsights

Summary of Features

Ask Me About

Blogs

Colleague Suggestions

Colleagues and Memberships

Discussion Forums

Enterprise Wikis

Keyword Suggestions

My Network

Note Board

Organization Browser

Outlook Social Connector

Photos and Presence

Ratings

Recent Activities

Social Bookmarks

Status Updates

Surveys

Tag Clouds

Tag Profiles

Tags

What's New

Wikis

Document Sets

Legal Holds

Metadata Driven Navigation

Multi-stage Disposition

Office Integration

Rich Media Management

Shared Content Types and the Managed Metadata

Service

Support for Accessibility Standards

The Content Organizer

Unique Document IDs

Audience Targeting

Cross-Browser Support

Enterprise Management Operations

External Sharing

Fluent UI / Ribbon

Mobile Connectivity

Multi-Lingual Support

Office Client Integration

OOTB Web Parts

Scalability

Tagging

Video Support

Best Bets

Duplicate Results

Metadata-based Refinement

People and Expertise Search

Phonetics & Nickname Expansion

Recently Authored Content

Search a Single Site Collection

Search Across Site Collections

Search Scopes

Site Search

Social Behavior Improves Relevance

Taxonomy and Term Store Integration

View in BrowserKey:

Included

Page 15: SharePoint 2010 Online for Developer

SharePoint 2010 vs. SharePoint Online Administration

Server Farm

Web Application Web Application …

Web Application

Site Collection Site Collection …

Site Collection

Sites Lists Libraries

Sites

Lists Libraries Sites

Page 16: SharePoint 2010 Online for Developer

SharePoint Online Administration

• … in SharePoint Online Administration Center• Enable tenancy to externally share• Manage site collections and ownership• Manage storage & resource allocation• Manage My Sites & User Profile data• Manage metadata (across site collections;

master taxonomy)• Set default home site for end users• Rename website domain

• … in Microsoft Online Administration Center• Add and verify a domain name• Create, change, or delete user accounts• Create a security group• Establish Active Directory sync• Escalate issues to Online Services Support• Manage passwords• Monitor service licenses• Monitor service health

Responsibilities include … • Multi-Tenant• Modular Services

Applications• Offers governance at all

levels

= Administered by Microsoft

= Administered by Customer and/or Partner

Page 17: SharePoint 2010 Online for Developer

SharePoint Online Development

OOTB Configuration• Browser-based page editing

• Lists, Libraries

• Web Parts

• Workflows

• Site Templates

Design• Master Pages

• Theming

• Site Templates

• Declarative Workflows

Development• Sandboxed Solutions

• Client Object Model

• .NET

• Silverlight

• JavaScript

• Web Services

Page 18: SharePoint 2010 Online for Developer

Extensibility

Web Services

Client-Object Model

Silverlight

Sandboxed Solutions

Visual Studio 2010

Design

Site templates

Master pages

No-code workflows

SharePoint Designer 2010

SharePoint Online Configuration & Extensibility

Configuration (Out-of-the-Box)

Lists, libraries

Site templates

Workflows

Web Parts

Page 19: SharePoint 2010 Online for Developer

Why Sandboxed Solutions?

Business

DevelopersAdministrators

Page 20: SharePoint 2010 Online for Developer

Why Sandboxed Solutions?

Business

Developers

Administrators

Page 21: SharePoint 2010 Online for Developer

Why Sandboxed Solutions?

Business

Developers

Administrators

Page 22: SharePoint 2010 Online for Developer

Why Sandboxed Solutions?

Business

DevelopersAdministrators

Page 23: SharePoint 2010 Online for Developer

Sandbox Architecture

Worker Service(SPUCWorkerProcess.exe)

Full Object Model

Host Services (SPUCHostService.exe)

Execution Manager(Inside Application Pool)

Subset Object Model

Untrusted Code

IIS(WPW3.EXE)

FRONT END BACK END

Page 24: SharePoint 2010 Online for Developer

Worker Service(SPUCWorkerProcess.exe)

Full Object Model

Host Services (SPUCHostService.exe)

Execution Manager(Inside Application Pool)

Subset Object Model

Untrusted Code

IIS(W3WP.EXE)

FRONT END BACK END

Sandbox Architecture

Subset-Model Request

Page 25: SharePoint 2010 Online for Developer

Sandbox Architecture

Worker Service(SPUCWorkerProcess.exe)

Full Object Model

Host Services (SPUCHostService.exe)

Execution Manager(Inside Application Pool)

Subset Object Model

Untrusted Code

IIS(W3WP.EXE)

FRONT END BACK END

Full-Model Request

Page 26: SharePoint 2010 Online for Developer

Worker Service(SPUCWorkerProcess.exe)

Full Object Model

Host Services (SPUCHostService.exe)

Execution Manager(Inside Application Pool)

Subset Object Model

Untrusted Code

IIS(W3WP.EXE)

FRONT END BACK END

Sandbox Architecture

Resource Wasting Call

while(true) { //Do a Bad Bad Thing! }

Run for30sec

Page 27: SharePoint 2010 Online for Developer

Solution MonitoringProtects Site Collection from resource intensive solutions• Resource Points measure resource consumption• Site Collection Quota limits resource consumption per day• Summed across all solutions• All solutions are deactivated

• Absolute Limit limits resources consumed by a solution• Hard limit of resources consumed in a request• Restarts worker process

Page 28: SharePoint 2010 Online for Developer

Monitored Resources

Metric Name Description UnitsResources per Point

Absolute Limit

AbnormalProcess-TerminationCount

Process gets abnormally terminated Count 1 1

CPUExecutionTime CPU exception time Seconds 3’600 60

CriticalExceptionCount Critical exception fired Number 10 3

PercentProcessorTime Note: # of cores not factored in% Units of overall Processor consumed

85 100

SharePointDatabase-QueryCount

SharePoint DB Queries invoked Number 20 100

SharePointDatabase-QueryTime

Amount of time spent waiting for a query to be performed

Seconds 120 60

UnhandledException-Count

Unhandled Exceptions 50 3

[7 more...]

Page 29: SharePoint 2010 Online for Developer

Sandboxed Solutions• Development• Scoped to SPSite and below, Partial Trust, subject to CAS• Executes in sandboxed execution environment

• User Code Service (SPUCHostService.exe)• Sandbox Worker Process (SPUCWorkerProcess.exe)• Sandbox Worker Process Proxy (SPUCWorkerProcessProxy.exe)

• Deployment• Uploaded to Solution Gallery by Site Collection owner• No IT Admin required

• Admin*• Solutions consume resource points• Solutions are disabled before affect site collection, etc.

• Required for SPO-S, primary choice for SPO-D

Page 30: SharePoint 2010 Online for Developer

The Sandbox• Runs only a subset of Microsoft.SharePoint• Site/Web scoped features, Partial Trust• Site Collection Solution Gallery for deployment

• Code components• Web parts, Site Columns, Content Types, List Definitions, List

Instances• Event receivers, Feature activation receivers• Modules/Files• InfoPath Forms Services with code-behind • SharePoint Designer workflow activities

Page 31: SharePoint 2010 Online for Developer

Sandbox Solution

Page 32: SharePoint 2010 Online for Developer

Unsupported Features• Access to file system• Web application- or farm-scoped features• Global Assembly Cache (GAC)• Access to web.config• Ability to install code/files on server

• Timer Jobs• Admin access beyond site collection• Running with elevated privileges

• Access to external web service calls

X

Page 33: SharePoint 2010 Online for Developer

Sandboxed Solutions SupportVisual Studio 2010 SharePoint 2010 item templates

Visual Studio Item Template

Sandbox compatible?

Visual Web PartVisual Web Part (Sandboxed)

Web PartSequential WorkflowState Machine Workflow

Business Data Connectivity Model

Application Page

Visual Studio Item Template

Sandbox compatible?

Event Receiver

Module

Content Type

List Definition From Content Type

List Definition

List Instance

Empty Element

User Control

Page 34: SharePoint 2010 Online for Developer

Development Process

Develop Debug

Test

F5

WSP

WSP

WSP

Deploy

Staging

ProductionInternet

Page 35: SharePoint 2010 Online for Developer

Workflow

Page 36: SharePoint 2010 Online for Developer

Visual Studio 2010 Support• Project and item templates• Intellisense• Packaging• F5 Debugging• Visual Studio 2010 SharePoint Power Tools• Sandboxed compilation, Sandboxed-compatible Visual Web Part

Page 37: SharePoint 2010 Online for Developer

Workflow Development• SharePoint Online supports

declarative workflows• Code-based workflows aren’t

supported in the sandbox• Prototype in Visio 2010• Customize in SharePoint

Designer 2010• Extend with Visual Studio 2010• Custom Workflow actions and events

• Deploy as *.wsp via “Save As Template” in SharePoint Designer

Page 38: SharePoint 2010 Online for Developer

Development Process

Page 39: SharePoint 2010 Online for Developer

Platform Comparison

Area SharePoint 2010 (on-premises)

SharePoint Online (multi-tenant)

OOB Browser Configuration (Web Parts, Theming)

SharePoint Designer 2010

Silverlight Web Part (.XAP files)

Sandboxed Solutions (Partial-trust code)

Client Object Model

SharePoint Web Services

Farm-level Solutions (Full-trust code) No

BCS (backend LOB integration) No

Visual Studio 2010 (SharePoint Tools) (Farm and Sandbox) (Sandbox only)

InfoPath Forms (Admin and Sandbox) (Sandbox only)

Workflows (Custom and Declarative) (Custom Activities in

Sandbox and Declarative)

Page 40: SharePoint 2010 Online for Developer

Resource• Articles • Build Workflow Solutions for SharePoint Online• http://msdn.microsoft.com/en-us/magazine/hh288072.aspx• Cloud-Based Collaboration with SharePoint Online• http://msdn.microsoft.com/en-us/magazine/gg650656.aspx

• Presentation • OFS202-LNC SharePoint Online By Chris Mayo• Developing for SharePoint Online by Olaf Feldkamp• Developing for Microsoft SharePoint 2010 Online: Understanding the

Boundaries By Chris Mayo

40

Page 41: SharePoint 2010 Online for Developer