Home

Buscar

Showing posts with label sharepoint 2010. Show all posts
Showing posts with label sharepoint 2010. Show all posts

Tuesday, January 21, 2014

FAST

The two Enterprise Search options in Microsoft SharePoint Server 2010—Microsoft FAST Search Server 2010 for SharePoint and Microsoft SharePoint Server 2010 search—are designed to share a common platform to enable search solution developers to use the same query-side interfaces.
Developers can take advantage of the same object models, services, and a common query language instead of having to learn new APIs or programming models.


Thursday, December 26, 2013

Client Object Model with the Open XML SDK


The Microsoft SharePoint Foundation 2010 managed client object model enables you to write applications that are based on the Microsoft .NET Framework that access SharePoint content from clients without installing code on the server that runs SharePoint Foundation 2010. 


The Open XML SDK 2.0 for Microsoft Office enables you to write applications to create, change, and query Open XML documents, the default document format for the Microsoft 2007 Office system and Microsoft Office 2010. By using these two technologies together you can write client-side applications that work with Open XML documents that are stored in document libraries.

more @ Using the SharePoint Foundation 2010 Managed Client Object Model with the Open SDK


How the Client-Side Object Model Works


How the Client-Side Object Model Works
An application that uses SharePoint content interacts with the API in several ways—call methods and get the return values, pass a Collaborative Application Markup Language (CAML) query and get the results, and set or get properties. After you use the API to perform a specific task the SharePoint Foundation 2010 managed client object model bundles up these uses of the API into XML and sends it to the server that runs SharePoint Foundation. 
The server receives this request, and makes appropriate calls into the object model on the server, collects the responses, forms them into JavaScript Object Notation (JSON), and sends that JSON back to the SharePoint Foundation 2010 managed client object model. The client object model parses the JSON and presents the results to the application as .NET Framework objects (or JavaScript objects for JavaScript). The following diagram shows these interactions.


It is important to be aware that you control when the SharePoint Foundation 2010 managed client object model starts to send the XML to the server and receives the JSON back from the server.

Client Class Library

Name
Description
Core namespace that provides types and members for working with SharePoint Foundation Web sites, list data, and users within a site collection.
Provides types and members for encoding strings, for working with security principals, and for performing specific utilities tasks.
Provides types and members for managing Web Parts within Web Parts pages.
Provides types and members for managing workflow templates and workflow associations.

The members of the Microsoft.SharePoint.Client.Application namespace are reserved for internal use and not intended to be used directly from your code.

Client-side classes and server-side equivalents

Client
Server


Notice that the SharePoint Foundation 2010 managed client object model uses the same legacy naming pattern for site collections and sites as the server object model. 

The Site class represents site collections, and the Web class represents sites. 

My preference for using these classes is to name the variables so that the variable name indicates whether it is a site collection or a site, even though you must use the Site and Web classes to declare them.

The following example shows how name variables.

C#
ClientContext clientContext = new ClientContext(siteUrl);
Site siteCollection = clientContext.Site;

Web site = clientContext.Web;

Namespaces in the JavaScript Object Model

==========================================================================
Namespace                                                                         JavaScript File
==========================================================================
CUI Namespace                                                                CUI.js, SP.UI.Rte.js
CUI.Controls Namespace                                              CUI.js
CUI.Page Namespace                                                     CUI.js, SP.UI.Rte.js
SP Namespace                                                                  SP.Core.js, SP.js, SP.Ribbon.js, SP.Runtime.js
SP.ListOperation Namespace                                       SP.Core.js
SP.Ribbon Namespace                                                  SP.Ribbon.js
SP.Ribbon.PageState Namespace                              SP.Ribbon.js
SP.UI Namespace                                                            SP.Core.js, SP.js, SP.UI.Dialog.js
SP.Utilities Namespace                                                  SP.Core.js, SP.js, SP.Exp.js
SP.WebParts Namespace                                              SP.js
SP.Workflow Namespace                                              SP.js
==========================================================================