|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Locker
Description:
Interface to acquire Locks
(short time locks for gui locking (e.g. i am currently administrating this group)
and
long term locks for resource locking (e.g. i am editing a qti test)
Initial Date: 19.09.2007
| Method Summary | |
|---|---|
LockResult |
acquireLock(OLATResourceable ores,
Identity identity,
java.lang.String locksubkey)
|
java.util.List<LockEntry> |
adminOnlyGetLockEntries()
for admin purposes only. |
LockResult |
aquirePersistentLock(OLATResourceable ores,
Identity ident,
java.lang.String locksubkey)
acquires a persistent lock. |
boolean |
isLocked(OLATResourceable ores,
java.lang.String locksubkey)
|
void |
releaseLock(LockResult le)
releases the lock. |
void |
releasePersistentLock(LockResult le)
releases a persistent lock. |
| Method Detail |
|---|
LockResult acquireLock(OLATResourceable ores,
Identity identity,
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 locking
boolean isLocked(OLATResourceable ores,
java.lang.String locksubkey)
ores - locksubkey -
LockResult aquirePersistentLock(OLATResourceable ores,
Identity ident,
java.lang.String locksubkey)
ores - ident - locksubkey - may not be longer than 30 chars
void releasePersistentLock(LockResult le)
le - the LockResult which stems from the lock acquired previouslyjava.util.List<LockEntry> adminOnlyGetLockEntries()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||