SharePoint Event Handlers – Asynchronous Vs Synchronous

21 August, 2010 (11:54) | MOSS - Object Model, Sharepoint 2010 - General | By: G Vijai Kumar

There is a little puzzlement among Asynchronousand Synchronous events, however I believe after reading this article, there will be no place for confusion in your brain, the reason for that I go behind a childlike practice to memorize what is Asynchronous ? and what is Synchronous ?

The same babyish method, I want to share with you.

A for Apple, A for Asynchronous and A for After events, so all Asynchronous events occur after the event, which does not stop the code to execute. All Asynchronous events end with ‘ed’ letters like SiteDeleted, FieldAdded, ItemAdded etc.

Now, let’s talk on the subject of Synchronous events, all Synchronous events  occur before the event, which stop the code to execute. All Synchronous events end with ‘ing’ letters like SiteDeleting, FieldAdding, ItemAdding etc.

SPWebEventReceiver Asynchronous Events

SiteDeleted Occurs after an existing site collection deleted.
WebDeleted Occurs after an existing web site is completely deleted.
WebMoved Occurs after an existing web site has been moved.



SPWebEventReceiver Synchronous Events

SiteDeleting Occurs before an existing site collection is being deleted.
WebDeleting Occurs before an existing web site is deleted.
WebMoving Occurs before an existing web site has been renamed or moved



SPListEventReceiver Asynchronous Methods

FieldAdded Occurs after a field link is added.
FieldDeleted Occurs after a field has been removed from the list.
FieldUpdated Occurs after a field link has been updated



SPListEventReceiver Synchronous Methods

FieldAdding Occurs before a field link is added to a content type.
FieldDeleting Occurs before a field is removed from the list.
FieldUpdating Occurs before a field link is updated



SPItemEventReceiver Asynchronous Methods

ItemAdded Occurs after a new item has been added
ItemAttachmentAdded Occurs after an attachment added to an item.
ItemAttachmentDeleted Occurs after an attachment removed from an item.
ItemCheckedOut Occurs after an item is checked out.
ItemDeleted Occurs after an item is completely deleted.
ItemFileMoved Occurs after a file is moved.
ItemUpdated Occurs after an item is modified/edited.



SPListItemEventReceiver Synchronous Methods

ItemAdding Occurs before a new item is added.
ItemAttachmentAdding Occurs before an attachment is added to an item.
ItemAttachmentDeleting Occurs before an attachment when a user removed from an item.
ItemCheckingIn Occurs before a file is checking-in.
ItemCheckingOut Occurs before an item is checking-out.
ItemDeleting Occurs before an item is completely deleted.
ItemFileMoving Occurs before a file is moved.
ItemUncheckedOut Occurs before an item is unchecked out.
ItemUncheckingOut Before event that occurs when an item is being unchecked out.
ItemUpdating Occurs before an existing item is modified/edited.



SharePoint Foundation 2010 New Events

Microsoft added several new events to SharePoint Foundation 2010 on Site, List and Item level. These fresh events are intended to meet up the requirements and for better elasticity.

SPWebEventReceiver

WebAdding Occurs before a new web site is created.
WebProvisioned Occurs after the web is provisioned.



WebAdding: event arises prior to a fresh web site is created, we can control the website to create or not to create by WebAdding event, then no SharePoint site is created and the provisioning process is not started.

WebProvisioned: event arise after the web is totally provisioned and process has stopped up. WebProvisioned can be configured to control in any synchronous or asynchronous methods.

If user wants to add few webparts to the newly provisioned web we can use this event to meet up the necessity

SPListEventReceiver

ListAdding Occurs before a list is created.
ListAdded Occurs after a list is created.
ListDeleting Occurs before a list is deleted.
ListDeleted Occurs after a list is deleted.



Please follow Catalog of SharePoint Foundation Events for newly added event in SharePoint Foundation 2010

Customizing SharePoint 2010 Social Tags: I Like It | Tags & Notes

28 May, 2010 (09:20) | Sharepoint 2010 - General | By: G Vijai Kumar

When I was customizing the SharePoint 2010 V4.master I found the  Social tags I Like It and Tags & Notes which are new in SharePoint 2010. The tag is a SharePoint Delegate control

The tags are occupying big amount of area, so our client told to minimize the icons to make use of space, also he given the hint that the nightandday.master has small social icons

<SharePoint:DelegateControl ControlId=”GlobalSiteLink3″ Scope=”Farm” runat=”server”/>

SharePoint 2010: Social Tags before customizing

SharePoint 2010: Social Tags before customizing

sooner I opened nightandday.master and compared with v4.master and found v4.master Social tag Delegate control Id is ‘GlobalSiteLink3′ and the same delegate colntrol Id is GlobalSiteLink3-mini in nightandday.master

So I just changed the control Id to GlobalSiteLink3-mini  in v4.master and minimized the social icons.

<SharePoint:DelegateControl ControlId=”GlobalSiteLink3-mini” Scope=”Farm” runat=”server”/>

SharePoint 2010: Social Tags after customizing

SharePoint 2010: Social Tags after customizing

The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered

19 May, 2010 (15:44) | Sharepoint 2010 - General | By: G Vijai Kumar

When I am trying to run powershell window for the first time after installing SharePoint 2010 I was faced with a message that

The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered

Then, I did Bing search for some time and found the solution and the same I want to post here, so that it may be useful for some one.

Solution: Make sure that the logged in user account has db_owner and SharePoint_Shell_Access rights to SharePoint_Config database

Granting rights to the user account

Granting rights to the user account

SharePoint 2010 Site Templates

11 May, 2010 (16:55) | Sharepoint 2010 | By: G Vijai Kumar

The following are the site templates shipped with SharePoint 2010 Beta and available for creating top-level sites

Collaboration

List of templates under Collaboration

List of templates under Collaboration

Team Site
Blank Site
Document Workspace
Blog
Group Work Site
Visio Process Repository
Meetings

List of templates under Meetings

List of templates under Meetings

Basic Meeting Workspace
Blank Meeting Workspace
Decision Meeting Workspace
Social Meeting Workspace
Multipage Meeting Workspace
Enterprise

List of template under Enterprise

List of template under Enterprise

Document Center
Records Center
Business Intelligence Center
Enterprise Search Center
My Site Host
Basic Search Center
FAST Search Center
Publishing

List of template under Publishing

List of template under Publishing

Publishing Portal
Enterprise Wiki

The following is the list site templates available in SharePoint 2010

SharePoint 2010 – Site Templates
Team Site
Blank Site
Document Workspace
Basic Meeting Workspace
Blank Meeting Workspace
Decision Meeting Workspace
Social Meeting Workspace
Multipage Meeting Workspace
Blog
Group Work Site New
Assets Web Database New
Charitable Contributions Web New
Contacts Web Database New
Issues Web Database New
Projects Web Database New
Document center
Records Center
Personalization Site
Enterprise Search Center New
Basic Search Center New
FAST Search Center New
Visio Process Repository New
Business Intelligence Center New
My Site Host
Enterprise Wiki New
Publishing Portal
Publishing Site
Publishing Site With Workflow
SharePoint 2010 - List of available site templates

SharePoint 2010 - List of available site templates

The following is the list of deprecated site templates

Wiki Site
Site Directory
Report Center
Search Center With Tabs
Search Center
Collaboration Portal
News Site

SharePoint 2010 and Office 2010 Launch

4 May, 2010 (15:15) | Announcements, MOSS - General | By: G Vijai Kumar

Microsoft officially announced that 12th May, 2010 is the date of launch for SharePoint 2010 and Office 2010
All of can virtually join for the event on 12th May, at 11 a.m EST to listen to Stephen Elop, President of the Microsoft Business Division, please register for the event on the following link
http://sharepoint.microsoft.com/businessproductivity/proof/pages/2010-launch-events.aspx