Class LockHelper
java.lang.Object
org.ametys.plugins.repository.lock.LockHelper
Helper for
LockAwareAmetysObject-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisLockOwner(LockAwareAmetysObject object, UserIdentity user) Determines if the login is the same as the owner of the lock
-
Method Details
-
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
-