Presentation is loading. Please wait.

Presentation is loading. Please wait.

Excellence in Software Engineering Client-Side Object Model MS SharePoint CSOM Belarus SharePoint User Group © 2012, by Ivan Padabed.

Similar presentations


Presentation on theme: "Excellence in Software Engineering Client-Side Object Model MS SharePoint CSOM Belarus SharePoint User Group © 2012, by Ivan Padabed."— Presentation transcript:

1 Excellence in Software Engineering Client-Side Object Model MS SharePoint CSOM Belarus SharePoint User Group © 2012, by Ivan Padabed

2 Excellence in Software Engineering 2 SharePoint Data Access CONTENT CC: DOCUMENTUM 2007 technologies  SPQuery  SiteMap Provider  Cross-site query LINQRESTClient OMSilverlightWCF New for 2010

3 Excellence in Software Engineering 3 Data Access Use JSON / XML Client technologies: –WPF –WinForm –Office –Silverlight –Javascript SharePoint Data SharePoint API Client.svc Client Application

4 Excellence in Software Engineering 4 Main objects: User Interface Site Web List Form View FolderFileWebPart NavigationNavigationNode UserCustomAction

5 Excellence in Software Engineering 5 Main objects: Data and Schema Site Web List Field ListItem FolderFile Change ContentType

6 Excellence in Software Engineering 6 Main objects: Logic and Security Site Web RoleDefinition RoleAssignment WorkflowAssociation WorkflowTemplate

7 Excellence in Software Engineering 7 Basics Batch operations Execute Query

8 Excellence in Software Engineering Only Foundation functionality –No search, profiles, metadata, administration No privileges elevation Requests are throttled Execution model: –.NET CLR can be sync –SL/JS are async only O365 Support Hints 8

9 Excellence in Software Engineering using (ClientContext ctx = new ClientContext(https://mysite))https://mysite) { FormsAuthenticationLoginInfo fbaInfo = new FormsAuthenticationLoginInfo(“user”, “pwd”); ctx.AuthenticationMode = ClientAuthenticationMode.FormsAuthentication; ctx.FormsAuthenticationLoginInfo = fbaInfo; } Authentication Support: FBA 9

10 Excellence in Software Engineering using (ClientContext ctx = new ClientContext(https://mysite))https://mysite) { NetworkCredential cred = new NetworkCredential(“user”, “pwd”, “domain”); ctx.AuthenticationMode = ClientAuthenticationMode.Default; ctx.Credentials = cred; } Authentication Support: Impersonation 10

11 Excellence in Software Engineering 11 Anonymous Access Blocked functionality –GetItems, GetChanges on SPList –GetChanges, GetSubwebsForCurrentUser on SPWebs –GetChanges on SPSites Get it back by WebApp PS: $app.ClientCallableSettings.AnonymousRestrictedTypes. Remove([microsoft.sharepoint.splist], “GetItems”)

12 Excellence in Software Engineering 12 SilverLight specifics SL context from init params <param name = \”initParams\” value = \”MS.SP.url=“ + SPContext.Current.Site.Url + “\”/>” Enables ClientContext.Current

13 Excellence in Software Engineering 13 Cross-domain (protocol/port) access clientaccesspolicy.xml crossdomain.xml Use proxy

14 Excellence in Software Engineering 14 CSOM examples MySiteSync –dropbox with SP DWH builder with SSIS –import data to warehouse from SSIS Quick utilities, incl SPD –get GUIDs, etc


Download ppt "Excellence in Software Engineering Client-Side Object Model MS SharePoint CSOM Belarus SharePoint User Group © 2012, by Ivan Padabed."

Similar presentations


Ads by Google