Patent ID: 9229611
Filing Date: 2016-01-05
CPC Classification: G06F

Claim Text:
1. A non-transitory computer-readable medium having instructions stored thereon that, when executed by a processor, cause the processor to automatically manage data consistency of a web application, the automatically managing comprising: receiving a request for a resource of the web application from a user interface component, wherein a data entity is associated with the resource; determining that the user interface component is an updatable user interface component; retrieving a version indicator for the data entity from a data store, wherein the version indicator indicates a version of the data entity; storing separately from the data store a mapping of an identity of the data entity and the version indicator within a resource scope, wherein the resource scope comprises a data repository associated with the resource, and wherein the resource scope is associated with a web browser session; sending the data entity to the user interface component; receiving a request to update the data entity from the user interface component, wherein the data entity is modified within the user interface component; comparing the version indicator stored within the resource scope with the version indicator stored within the data store; updating the data entity within the data store when the version indicator stored within the resource scope is identical to the version indicator stored within the data store; and raising an exception when the version indicator stored within the resource scope is not identical to the version indicator stored within the data store, wherein the exception prevents updating of the data entity within the data store and is sent to the user interface component, and wherein the user interface component displays an error message or requests refreshing of the data entity in response to the received exception.