Chapter 11. File Locking

Table of Contents

About File Locking
Mandatory File Locking
Automatic File Locking
Manual File Locking
Stream Locking
Tracking Developer Changes and Deleting File Locks

About File Locking

File Lock

File locks are used to prevent multiple users editing the same file at the same time. There are four ways in which file locking can be achieved:

  1. Disable the 'Multiple Checkouts' policy to lock a file whenever it is being edited. This will prevent two users editing the same file at the same time. This is described in the section called “Mandatory File Locking”.
  2. Set the 'Automatically lock when checking out' flag on the file type. This will warn the user when attempting to edit a file which someone else has locked. The user will not be able to submit a change to the file until the lock has been released. This is described in the section called “Automatic File Locking”.
  3. Let the user manually lock a file. Other users will not be able to submit a change to the file until then lock has been released. This is described in the section called “Manual File Locking”.
  4. Let the user lock the stream. Other users will not be able to submit any changes to the stream until the lock has been released. This is described in the section called “Stream Locking”.