Class LockHelper
- java.lang.Object
-
- org.ametys.plugins.repository.lock.LockHelper
-
public final class LockHelper extends Object
Helper forLockAwareAmetysObject
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isLockOwner(LockAwareAmetysObject object, UserIdentity user)
Determines if the login is the same as the owner of the lock
-
-
-
Method Detail
-
isLockOwner
public static boolean isLockOwner(LockAwareAmetysObject object, UserIdentity user) throws AmetysRepositoryException
Determines if the login is the same as the owner of the lock- Parameters:
object
- The lockable Ametys objectuser
- The user to test- Returns:
- true if the login is the same as the owner of the lock
- Throws:
AmetysRepositoryException
- if a problem occurs
-
-