Monday, 3 March 2014

Client Object Model and Server Object Model in SharePoint 2010

Server Object Model:
1-SharePoint itself uses the server object model.You can also use this model on a sharepoint server bcz it has some dependencies satisfied by the sharepoint server.
2-Here you can use LINQ programming like LINQ to SharePoint.
3-different classes are there like SPFarm, SPServer, SPService, and SPWebApplication etc.
 
Client Object Model:
1-Client Side APIs refer to the Client Object Models that were introduced in SharePoint 2010.
2-It is available in three different flavors like: .NET managed,Silverlight and ECMAScript.
3-The Main advantage of the CSOMs is that you do not need to be on the Server to use them in your program. The .NET client object can be used in any Desktop or Web Client. The Silverlight CSOM can be used in silverlight applications and you can call the JS Client Object Model directly from your web pages.
 
Managed Object Model
Microsoft.SharePoint.Client.dll
Microsoft.SharePoint.ClientRuntime.dll
ISAPI folder
Silverlight client object model
Microsoft.SharePoint.Client.Silverlight.dll
Microsoft.SharePoint.Client.Silverlight.Runtime.dll
LAYOUTS\ClientBin folder
JavaScript client object model
SP.js
LAYOUTS folder
Different types of Objects:
Server object model
Managed Model
Silverlight Model
Javascript Model
SPContext
ClientContext
ClientContext
ClientContext
SPSite
Site
Site
Site
SPWeb
Web
Web
Web
SPList
List
List
List
SPListItem
ListItem
ListItem
ListItem
SPField
Field
Field
Field

Types of Event Receivers in SharePoint

List Events
  • A field was added
  • A field is being added
  • A field was removed
  • A field is being removed
  • A field was updated
  • A field is being updated
  • A list is being added
  • A list is being deleted
  • A list was added
  • A list was deleted
List Item Events
  • An item is being added
  • An item is being updated
  • An item is being deleted
  • An item is being checked in
  • An item is being checked out
  • An item is being unchecked out
  • An attachment is being added to the item
  • An attachment is being removed to the item
  • A file is being moved
  • An item was added
  • An item was updated
  • An item was deleted
  • An item was checked in
  • An item was checked out
  • An item was unchecked out
  • An attachment was added to the item
  • An attachment was removed to the item
  • A file was moved
  • A file was converted
  • The list received a context event
List Email Events
  • The list received an e-mail message
Web Events
  • A site collection is being deleted
  • A site is being deleted
  • A site is being moved
  • A site is being provisioned
  • A site collection was deleted
  • A site was deleted
  • A site was moved
  • A site was provisioned
List Workflow Events
  • A workflow  is starting
  • A workflow was started
  • A workflow was postponed
  • A workflow was completed