The locks functionality in Control/ECS GUI provides a mechanism to ensure exclusive access to detectors during operations. This prevents conflicts when multiple users attempt to configure or control the same detector simultaneously.
All LOCKs operations require an authenticated user session and moreover:
Role.DETECTOR.ALL detectors require a minimum role of Role.GLOBAL.Role.GLOBAL.ALL detectors require a minimum role of Role.ADMIN.Each detector can be in one of the following lock states:
Acquires a lock on a detector for the current user.
Parameters:
detectorId: The individual detector identifier or ALL to lock all detectors (excluding TST)action: TAKEshouldForce (optional): Boolean flag to force taking the lock even if held by another userBehavior:
detectorId is ALL and the user has a role of at least GLOBAL, locks all detectors except TSTshouldForce is false, the request will fail.shouldForce is true and the user has a role of at least GLOBAL for individual detector and at least ADMIN for detector ALL, the lock will be taken regardless of current ownershipReleases a lock on a detector. If the detector is currently reported as Active by ECS, the release lock button will prompt the user to confirm the action is indeed correct.
Parameters:
detectorId: The detector identifier or ALL to release all locks (excluding TST)action: RELEASEshouldForce (optional): Boolean flag to force releasing the lock even if held by another userBehavior:
detectorId is ALL and the user has a role of at least GLOBAL, releases locks on all detectors except TSTshouldForce is false, the request will fail.shouldForce is true and the user has a role of at least GLOBAL for individual detector and at least ADMIN for detector ALL, the lock will be released regardless of current ownershipThe TST (test) detector is treated specially:
ALL as the detector ID, TST is excluded from both TAKE and RELEASE operationsTST as the detector IDGlobal page+Create or Locks pagesThe lock controller handles the following error cases:
detectorId parameter → Returns InvalidInputErroraction parameter → Returns InvalidInputError