Web store events
First Claim
1. In a system including a server having a store, wherein one or more clients have access to the store using a plurality of different protocols, a method of executing application logic upon client access of an item within the store, the method comprising the steps for:
- registering the application logic with one or more store events that abstract the plurality of different protocols from the application logic such that client communication using any of the plurality of different protocols can cause the application logic to execute;
firing an event that the application logic registered with in response to the client access to the item in store;
if the fired event is a synchronous event, then suspending client access to the item;
providing complete control of the item to the application logic, wherein the application logic executes; and
if the application logic does not abort, resuming client access to the item and committing the item to the store, if the fired event is an asynchronous event, then committing the item to the store; and
calling the application logic, wherein the application logic does not have complete control of the item.
2 Assignments
0 Petitions
Accused Products
Abstract
Systems and methods for web store events. A web store event occurs whenever an item is accessed. When an item is accessed, both synchronous and asynchronous events can fire. If a synchronous event fires, then an event object that has registered for the synchronous event is called and executed before the transaction involving the item is allowed to complete. The synchronous event also has the ability to either commit or abort the transaction. Importantly, the synchronous event has complete control over the item. An asynchronous event is called and executed after the transaction involving the item is already committed to the store and after any synchronous events have executed. Because more than one event object can register for a web store event, synchronous event objects are called according to their priority. Synchronous events fire before asynchronous events and synchronous event objects execute before asynchronous event objects.
-
Citations
6 Claims
-
1. In a system including a server having a store, wherein one or more clients have access to the store using a plurality of different protocols, a method of executing application logic upon client access of an item within the store, the method comprising the steps for:
-
registering the application logic with one or more store events that abstract the plurality of different protocols from the application logic such that client communication using any of the plurality of different protocols can cause the application logic to execute;
firing an event that the application logic registered with in response to the client access to the item in store;
if the fired event is a synchronous event, then suspending client access to the item;
providing complete control of the item to the application logic, wherein the application logic executes; and
if the application logic does not abort, resuming client access to the item and committing the item to the store, if the fired event is an asynchronous event, then committing the item to the store; and
calling the application logic, wherein the application logic does not have complete control of the item. - View Dependent Claims (2, 3, 4, 5, 6)
-
Specification