This project has moved. For the latest updates, please go here.

Graffiti Events

Similar to widgets, events also support editable forms.

Listed below are the current Graffiti events:

ASP.Net Application

BeginRequest
Wires up an event with a standard event handler. This event allows you to wire up an event to the ASP.Net BeginRequest event without deploying your own HttpModule or editing the Global.asax.

EndRequest
Wires up an event with a standard event handler. This event allows you to wire up an event to the ASP.Net EndRequest event without deploying your own HttpModule or editing the Global.asax.

Data Objects

The Data object events are fired during the life cycle of any Graffiti data which is stored and managed by Graffiti. This includes Category, Comment, Log, Post, ObjectStore, User, and VersionStore.

All of these events use the same signature/delegate: DataObjectEventHandler(DataBuddyBase dataObject, EventArgs e). DataBuddyBase is base object for all Graffiti data objects.

BeforeValidate
Fires before BeforeInsert and BeforeUpdate. It is generally used to perform any data validation before processing the commit.

BeforeInsert
Fires an event before a new data object is inserted into the database.

BeforeUpdate
Fires an event before any existing data object is updated in the database.

AfterCommit
Fires after any data object is inserted or updated in the database. In other words, it fires after both BeforeInsert and BeforeUpdate.

Email

BeforeEmailSent
Fires before Graffiti sends an email. Uses the EmailTemplateHandler signature and provides you a reference to the email template that will be used to send the email.

AfterEmailSent
Fires after Graffiti sends an email. Uses the EmailTemplateHandler signature and provides a reference to the email template that was used to send the email.

RSS

RssItem
Fires after a new Post has been added to an RssFeed. This event allows you to add new elements and/or update an existing element. The event signature is RssEventHandler(RssItem item, EventArgs e). The item property is an instance of RssToolkit.Rss.RssItem.

Users

UserIsKnown
An event which fires the first time during a request the user (IGraffitiUser) is known.

AfterNewUser
An event which is raises after Graffiti creates a new IGraffitiUser.

BeforeUserUpdate
An event which is raised before any updates to an IGraffitiUser.

AfterUserUpdate
An event which is raised after any updates to an IGraffitiUser.

Last edited Mar 31, 2010 at 5:28 AM by jkillebrew, version 1

Comments

No comments yet.