Method and implementation of session-based file locking for network applications
First Claim
1. A system for managing document access, comprising:
- file storage means adapted for storing and manipulating files and file folders;
communication means adapted to communicate with an external computer; and
control means adapted to control access to the file storage means by the communication means;
wherein the control means creates a lock for controlling access to at least one of a file and a folder stored on the file storage means, the lock having attributes, the attributes including a date-time stamp.
1 Assignment
0 Petitions
Accused Products
Abstract
A file locking method and implementation are disclosed which allows a plurality of user sessions to open and read a file, but at any one time, only one session will be allowed to change the data displayed in the browser window and to update the file. This file locking method sets up a file access priority by using file locks that are date-time stamped and session stamped. The types of lock associated with the present invention include read lock, authority lock, write lock, and folder lock. When a session/user requests access to a file, the application will check a lock table associated with the requested file. For each lock on the file, there is an entry in the lock table for each of the attributes of the lock: lock type, session owner, date-time stamp. Depending on the lock and the existing locks on the file, the requesting session may be granted a lock. After the access request is fulfilled, the file lock may be removed. When a session expires, all the locks owned by this session will be invalidated and removed.
61 Citations
26 Claims
-
1. A system for managing document access, comprising:
-
file storage means adapted for storing and manipulating files and file folders;
communication means adapted to communicate with an external computer; and
control means adapted to control access to the file storage means by the communication means;
wherein the control means creates a lock for controlling access to at least one of a file and a folder stored on the file storage means, the lock having attributes, the attributes including a date-time stamp. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A method to manage access, comprising
receiving a request to initiate a lock on a resource, the resource selected from the group consisting of a file and a folder, by a session having a session identification; -
creating a temporary file having a file name with a lock attribute encoded therein;
granting the lock request when the resource is available; and
updating the file name by pre-appending the session identification and a date-time stamp indicative of the date and time when the lock was placed. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17, 18, 19, 20)
-
-
21. A computer-readable medium of instructions, comprising:
-
means for receiving a request to initiate a lock on a resource, the resource selected from the group consisting of a file and a folder, by a session having a session identification;
means for creating a temporary file having a file name with a lock attribute encoded therein;
means for granting the lock request when the resource is available; and
means for updating the file name by pre-appending the session identification and a date-time stamp indicative of the date and time when the lock was placed. - View Dependent Claims (22, 23)
-
-
24. A computer readable medium having stored thereon instructions which when executed by a processor, cause the processor to perform the steps of:
-
receiving a request to initiate a lock on a resource, the resource selected from the group consisting of a file and a folder, by a session having a session identification;
creating a temporary file having a file name with a lock attribute encoded therein;
granting the lock request when the resource is available; and
updating the file name by pre-appending the session identification and a date-time stamp indicative of the date and time when the lock was placed. - View Dependent Claims (25, 26)
-
Specification