| Silverlight Applications with BCS and Client Object Model - Todd Baginski
- http://www.toddbaginski.com/blog/
- Walkthrough of the components in a BCS/SP/Silverlight application
- ECT from multiple data sources
- External Content Type
- .NET Assembly Connector talks to the different LOB systems
- BCS Model defined – gives you strongly typed data
- Demo:
- Client Object Model
- Microsoft.SharePoint.Client
- Microsoft.SharePoint.Client.Runtime
- .NET Apps, Silverlight Apps, JavaScript
- Why Client Object Model + Silverlight?
- Designed for Silverlight
- Works on client machines
- Async
- Demo:
- Use Silverlight to talk to BCS Entities
- Need a clientaccesspolicy.xml to support talking to SharePoint services from other domains
- Silverlight app talks to SharePoint external lists like they are normal lists
Protecting your SharePoint Environment from Evil Developers - Rob Bogue
- Bad code examples
- Sandbox
- “User code host”
- 2007 didn’t have boundaries
- 2010 runs code in a separate process
- Solution Gallery can accept uploaded sandbox solution .wsp files
- Very limited subset of SharePoint object model
- User Code Host
- Can run locally
- Can run remotely
- Performance impacts for sandboxing
- Probably not great on high volume and/or public facing sites
- Solution Validator
- Inspect and reject solution/assembly
- Monitoring
- Page load time limits
- Resource Tracking by points
- CPU Execution time, Memory consumption, SQL Query time, exceptions
- Sandbox Proxy
- Allows access beyond sandbox limits
- Requires full trust install
- Proxy Operation, Proxy Arguments
- Just as dangerous as 2007, but no more
- Runs wherever the sandbox solution runs – which means they can run remotely
- Quotas
- Set at the site collection level
- When resource quotas get exceeded, all sandbox solutions in the Site Collection are disabled
- SharePoint Query Limits
- Non admins have 5000 limit
- Admins have more
- Overrides and exceptions
- Can increase quota limits at the site collection level
- Changes are immediate
Create SharePoint YouTube-like application without managed code - Todd Baginski
- Digital Assets Library
- Doc lib on steroids
- Comes with Foundation
- Video/audio/pictures
- RSS/Podcasting
- Tagging/rating
- Video editing via Office (PowerPoint)
- Videos don’t have previews by default
- Can write code to do it (Todd will blog)
- Capture .jpg, update properties
- Client Object Model
- JavaScript
- ExecuteOrDelayUntilScriptLoaded
- NotifiyEventAndExecuteWaitingJobs
- SP.UI.ModalDialog.showModalDialog
- Out of the box controls
- Media Web Part
- Specify what content to display (from computer, SharePoint, URL)
- Change preview image
- Content by Query Web Part
- Rollups, specify fields, specify display (XSLT)
- Rich Media Field Control
- New Page Layout with media control
- inherit from video content type
- Ratings
- go into social database
- 2 timer jobs run to transfer ratings to content DB
- Ratings cannot be set by anonymous anonymous users (but will display)
|