ConcurrencyManager.php
aquireLock(ObjectId $oid, $type, PersistentObject $currentState=null)
Aquire a lock on an ObjectId for the current user.
releaseLock(ObjectId $oid, $type=null)
Release a lock on an ObjectId for the current user.
releaseAllLocks()
Release all locks for the current user.
releaseLocks(ObjectId $oid)
Release all locks on an ObjectId regardless of the user.
updateLock(ObjectId $oid, PersistentObject $object)
Update the current state of the lock belonging to the given object if existing and owned by the curre...
ObjectId is the unique identifier of an object.
Definition: ObjectId.php:28
getLock(ObjectId $oid)
Get the lock for an object id.
ConcurrencyManager is used to handle concurrency for objects.
Definition: ConcurrencyManager.php:32
PersistentObject defines the interface of all persistent objects.
Definition: PersistentObject.php:23
checkPersist(PersistentObject $object)
Check if the given object can be persisted.