public interface Locker
Initial Date: 19.09.2007
限定符和类型 | 方法和说明 |
---|---|
LockResult |
acquireLock(OLATResourceable ores,
OLATPrincipal principal,
java.lang.String locksubkey) |
java.util.List<LockEntry> |
adminOnlyGetLockEntries()
for admin purposes only.
|
LockResult |
aquirePersistentLock(OLATResourceable ores,
OLATPrincipal principal,
java.lang.String locksubkey)
acquires a persistent lock.
|
PersistentLockManager |
getPersistentLockManager()
[spring] object is not ready on startup due to circular reference so access is done via method lookup where spring is creating an instance and also an
implementation for this abstract method
|
boolean |
isLocked(OLATResourceable ores,
java.lang.String locksubkey) |
void |
releaseAllLocksForPrincipal(OLATPrincipal principal)
Delete any locks hold by this principal.
|
void |
releaseLock(LockResult le)
releases the lock. can also be called if the lock was not sucessfully acquired
|
void |
releaseLockEntry(LockEntry lock)
for admin purposes only.
|
void |
releasePersistentLock(LockResult le)
releases a persistent lock.
|
LockResult acquireLock(OLATResourceable ores, OLATPrincipal principal, java.lang.String locksubkey)
ores
- the OLATResourceable to lock upon, e.g a repositoryentry or suchidentity
- the identity who tries to acquire the lock, not nulllocksubkey
- null or any string to lock finer upon the resource (e.g. "authors", or "write", ...)void releaseLock(LockResult le)
le
- the LockResult received when lockingboolean isLocked(OLATResourceable ores, java.lang.String locksubkey)
ores
- locksubkey
- LockResult aquirePersistentLock(OLATResourceable ores, OLATPrincipal principal, java.lang.String locksubkey)
ores
- ident
- locksubkey
- may not be longer than 30 charsvoid releasePersistentLock(LockResult le)
le
- the LockResult which stems from the lock acquired previouslyjava.util.List<LockEntry> adminOnlyGetLockEntries()
PersistentLockManager getPersistentLockManager()
void releaseLockEntry(LockEntry lock)
lock
- release this lockentryvoid releaseAllLocksForPrincipal(OLATPrincipal principal)
principal
-