org.olat.util.locks
Class DBPersistentLockManager

java.lang.Object
  extended by org.olat.util.locks.DBPersistentLockManager
All Implemented Interfaces:
PersistentLockManager, UserDataDeletable

public class DBPersistentLockManager
extends java.lang.Object
implements PersistentLockManager, UserDataDeletable

Description:
TODO: patrickb Class Description for DBPersistentLockManager

Initial Date: 21.06.2006

Author:
patrickb

Method Summary
 LockResult aquirePersistentLock(OLATResourceable ores, Identity ident, java.lang.String locksubkey)
          acquires a persistent lock
 void deleteUserData(Identity identity, java.lang.String newDeletedUserName)
          Delete all persisting-locks for certain identity.
 void releasePersistentLock(LockResult le)
          releases a persistent lock
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

aquirePersistentLock

public LockResult aquirePersistentLock(OLATResourceable ores,
                                       Identity ident,
                                       java.lang.String locksubkey)
Description copied from interface: PersistentLockManager
acquires a persistent lock

Specified by:
aquirePersistentLock in interface PersistentLockManager
locksubkey - may not be longer than 30 chars
Returns:
See Also:
org.olat.core.util.locks.PersistentLockManager#aquirePersistentLock(org.olat.core.id.OLATResourceable, org.olat.core.id.Identity, java.lang.String)

releasePersistentLock

public void releasePersistentLock(LockResult le)
Description copied from interface: PersistentLockManager
releases a persistent lock

Specified by:
releasePersistentLock in interface PersistentLockManager
See Also:
org.olat.core.util.locks.PersistentLockManager#releasePersistentLock(org.olat.core.util.locks.LockEntry)

deleteUserData

public void deleteUserData(Identity identity,
                           java.lang.String newDeletedUserName)
Delete all persisting-locks for certain identity.

Specified by:
deleteUserData in interface UserDataDeletable
Parameters:
identity - Data for this identity will be deleted
See Also:
org.olat.user.UserDataDeletable#deleteUserData(org.olat.core.id.Identity)