SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012
-
Upload
joris-poelmans -
Category
Documents
-
view
2.095 -
download
6
description
Transcript of SharePoint 2013 - What's new for Devs - Belgian IT Bootcamp 2012
SharePoint 2013 What’s new for DevelopersJoris PoelmansSharePoint ArchitectRealDolmen
About meWork at RealDolmen
Responsible for SharePoint Competence Center
SharePoint Server MVP since 2005
Active in Belux Information Worker User Group – www.biwug.be
Blog: http://jopx.blogspot.com
Twitter: @jopxtwits
THE NEW WAY TO WORK TOGETHER
SharePoint
4
ManageBuild
DiscoverOrganize
SHAREShare
5
Build appsBuildsites
Build for the cloud
Buildapps
SharePoint 2013 makes customizing sites easier for user, web designer and professional developer alike.
The cloud provides you with the freedom to choose how and where to host your apps.
A new development model for building apps provides a secure and scalable way to build SharePoint solutions.
Driven by searchNew unified search platform takes information discovery to the next level
Apps for Office and SharePoint
6
Apps
App catalog and store
Vacation request
Event planning
Expense calculator
Learning management
Risk management
Help-desksupport
Products and platforms
Services and data
Build appsWeb Standards
Apps are built using industry proven web standards such as HTML, JavaScript and REST
Scalable and Safe
Apps are independently scalable which reduces total cost of ownership. Apps are secured and isolated from SharePoint
Accessible
Apps can be accessed from any device with a web browser.
Packaging and deployment options in SPS 2013
Farm
• Full access API• Server side
code• Server file level
access required• Classic model
from 2007• On-premise only
Sandbox Apps
• Partially trusted code service with limited server side code
• No file level access required
• Resource monitored
• Introduced with 2010
• Online deployment possible
• New model• Deploy from
corporate catalog or marketplace
• Limited server footprint
• Relies heavily on client-side technologies
• Online deployment possible
8
New!
Why SharePoint 2013 apps?
• End users => consumerization through app catalogs• IT Pro => keep SharePoint environment stable• Developers => reuse existing skills sets
Apps are an alternative deployment but farm solutions might still be valid
10
Apps – three possible scenarios
App Web
Parent Web
SharePoint-hosted AppProvision an isolated sub web on a parent web• Reuse web elements
(lists, files, out-of-box web parts)
• No server code allowed; use client JavaScript for logic, UX
Azure Auto-Provisioned AppWindows Azure + SQL Azure provisioned invisibly as apps are installed
Azure SharePoint Web
Get remote events from SharePoint Use CSOM/REST + OAuth to work with SPS
Cloud-based Apps
Developer-Hosted App“Bring your own server hosting infrastructure”Developers will need to isolate tenants
SharePoint
Web
Your Hosted
Site
11
SharePoint 2013 app development scenarios
Deployment options
On-premise install
Development options Development tools
Hosted install
Office 365
Farm solution
Sandbox solution
SharePoint-Hosted appsDeveloper-Hosted apps
Azure-Hosted apps
Browser
SharePoint Designer
Visual Studio
Eclipse, PHP, etc....
12
Getting started with app development Local development
Has to be on Windows Server 2008 R2 (or later) Memory reqs have gone up – 12 GB RAM seems workable ... But
TechNet recommends 24 GB Extra configuration needed for app development Visual Studio 2012
Remote development Sign up for Office 365 Developer Site Possible to use NAPA – app for building apps
13
SharePoint CSOM and REST API Apps connect to SharePoint using
SharePoint 2013 Client Side Object Model (CSOM) SharePoint 2013 REST API Javascript cross-domain library (SP.RequestExecutor.js)
Main investments in 2013 Client.svc is extended with REST capabilities
Easier for javascript and non .NET code Implemented in accordance with oData protocol Programming style is largely unchanged
New APIs for SharePoint Server functionality User Profiles, Search, Taxonomy, Feeds, ....
14
REST URLs in SharePoint 2013• CSOM URLs can go through _api folder• Replace
http://sharepoint/_vti_bin/client.svc/web• With
http://sharepoint/_api/web
• Example REST URLs targeting SharePoint sites• _api/web/lists• _api/web/lists/List1• _api/web/?$select=title,id• /_api/web/lists/getByTitle('Consultants')/Items• ....
15
SharePoint App UX Immersive App - app is shown full screen with in a separate page
Part - App is shown as a part on the SharePoint page – similar experience to web part
UI Custom Actions – possible to make the App available through ribbon or menu actions for documents and items
See Apps for SharePoint UX design guidelines
16
Which API to use?
Guidance about apps
• Use apps whenever you can• Use apps for decoupling scenario based business
applications• SharePoint hosted apps for small reusable standalone applications
(stock tickers, RSS feeds, ...)• Provider hosted for large corporate business applications (time
registration, budgetting, ...)• Azure auto-hosted apps for public marketplace large scale applications
• Avoid apps for tight UI and feature integration• Use farm level solutions for administrative interfaces
DemoEnhancing SharePoint with apps
Build sitesAccelerate Site Creation
Sites can be customized and themed with apps or a few clicks in the browser.
Simple Site CustomizationSharePoint sites are built using web standards making it easy to customize with industry standard web design tools
Adaptive Experiences
Sites can adapt their experiences based on the user.
20
Designing a website in SPS 2010
Sketche
s
CSS
HTML
Integrate Ribbon
New
Masterpages
Custom Channel Management
Custom
Roll-up
control
Dreamweaver, Microsoft Expression, … SharePoint Designer + Visual Studio
Custom Nav
provider
Custom
Catalog
Custom Catalog Integration
21
Designing a website in SPS2013
Auto Convert
SnippetGallery
Channelsettings
SharePoint
Dreamweaver, Expression, etc…
• Ribbon
• Placeholder Main
• Custom Minimal Master
• It just w
orks!• Navigation
• Catalog Integration
• Content Search Webparts
• Channel Panels
Sketches
CSS
HTML
Upload
22
WCM in SharePoint 2013 Support the tools and workflows designers use
Variations & Content Translation
Search Engine Optimization
Cross Site Publishing Video & Embedding Image renditions Clean Urls Metadata navigation
23
Managed navigation Drive your navigation and
URLs based on Term Store hierarchies
Clean URLs for actual end users www.contoso.com/careers www.contoso.com/aboutus
Define settings for navigation in terms store manager
Provides also dynamic topicpages capability for minimizingamount of physical pages for catalog type sites
AudioCamerasComputersHome appliancesPhonesTV and video
TERM STORE NAVIGATION TAXONOMY
Search
Product Catalog
Filter query byCATEGORY: COMPUTERS
Friendly URLhttp://contoso.com/computers
Use pagemaincategory.aspx
CONTENT SEARCH WEB PART
Managed navigation, search and topic pages
Mobile• Classic and Contemporary
views for mobile browsers• Automatic Mobile Browser
Redirection• Device Channels: Target
different designs based on user agent string
• Office Mobile Web Apps• Push notifications
DemoDesigning for a new user experience with SharePoint sites
Driven by search New search architecture
One unified search architecture supported by strong analytics. Consolidation of FAST and Enterprise Search components
Personalized search resultsSearch results based on search history. Full control over ranking, sorting, etc …
New customisation model for SearchEasier to extend and configure the search user experience. Rich contextual previews
28
Search ArchitectureImportant elements of search result pages• Refiners• Promoted results• Result blocks• Hover panel
29
2013 Search UI• No more FAST search• Out of the box PDF support• Continuous crawling• Memory reqs have gone up
30
2013 Search UIImportant elements of search result pages• Refiners• Promoted results• Result blocks• Hover panel
31
2013 Search UIImportant elements of search result pages• Refiners 1• Promoted results• Result blocks• Hover panel
32
2013 Search UIImportant elements of search result pages• Refiners • Promoted results 2• Result blocks• Hover panel
33
2013 Search UIImportant elements of search result pages• Refiners • Promoted results • Result blocks 3• Hover panel
34
2013 Search UIImportant elements of search result pages• Refiners • Promoted results • Result blocks • Hover panel 4
35
Search for Developers Deprecated or changed
SOAP web service has been deprecated _layouts/_vti_bin/search.asmx
SQL Query syntax removed XSLT is replaced with Display Templates
What’s new CSOM – Microsoft.SharePoint.Client.Search.Query REST web service - _api/search/
36
Typical search customization scenarios No more XSLT for core results search webpart
The Search UI is driven by Query rules Display templates Result types Result sources
37
Customizing search – Query Rules Control over query results
Defined via a Condition and Action
Query rules: Result Blocks Promoted Results Ranked Results
38
Customizing search – Display Templates HTML templates that define how a search result looks
SharePoint auto-generates the JS version and the HTML Stored in the master page gallery
Support full debugging
39
Customizing search – Result types Define what Display Templates will display a search result based upon a condition Search service Site Collection Site Owners
40
Customizing search – Result Sources Replace Scopes and Federated Locations Extended federation options
Remote SharePoint farms Exchange OpenSearch
Definable at Search Service – search administrator – globally
available Site collection level – site collection admin –
available to all sites in site collection Site – site owners – this site only
41
Content By Search Web Part Similar to Content by Query Web Part
– but based on indexed content Show content cross site collections
Show content cross multiple site collections
New presentation template model for easy content presentation fine tuning Content rendered in client side Provides full control on rendering
capabilities using html templates Easy editors as web part editors for
defining planned query
DemoThe new search experience
Build for the cloud
Write once, run anywhere
An app can run outside the firewall in the cloud and from inside the firewall in a data center.
Hosting freedomApps can be hosted on any platform giving you complete freedom.
Re-use logic and assetsBuild apps that can share logic and code with other web hosted solutions. Re-use existing services and assets within you app.
Use cloud dataConsume oData sources through BCS
Azure WorkflowNew workflow model available
44
Consuming oData using BCS BCS can now access oData sources
OOB just like WCF or SQL data sources
Supported in Visual Studio and SharePoint Designer
Natively supported by SharePoint 2010, SQL Azure, Azure Data MarketPlace and SQL Server Reporting Services, ...
45
Windows Azure Workflow Workflow now treated as a service Moved to Windows Azure Workflow
No longer runs in the content farm No longer requirement to run on SharePoint WFE /
App servers Harnesses the latest workflow technology from
Microsoft SharePoint deployment drives where
workflow runs Hosted: Azure Workflow On premise: Windows Azure Workflow Service
Improves stability, scalability & transparency
Content
EventsApps
Solutions
SharePoint
WF3Host
SharePoint OM
AzureAccess Control
OAuth2Azure
Workflow
AzureServiceBus
AzureWorkflow
Azure Workflow Service Application
Proxy
Visual Studio
SharePoint Designer
Events
Workflow ServicesManager
Instances Interop
Deployment Messaging
REST Calls
Windows Azure Workflow Process
animated
Summary
47
Build apps
BuildSites
Multilingual support; support all web design tools; powered by search
Build for the cloud
Write once, run anywhere; use Office 365; Windows Azure or on premise
Apps for SharePoint
Disoverable in the store; accessible from any device
Driven by search
New unified search platform takes information discovery to the next level
Thank You
Q & A