@ProviderType
public interface LockManager
Modifier and Type | Method and Description |
---|---|
void |
clear() |
Lock |
createLock(long lockId,
long companyId,
long userId,
String userName) |
Lock |
fetchLock(String className,
long key) |
Lock |
fetchLock(String className,
String key) |
Lock |
getLock(String className,
long key) |
Lock |
getLock(String className,
String key) |
Lock |
getLockByUuidAndCompanyId(String uuid,
long companyId) |
boolean |
hasLock(long userId,
String className,
long key) |
boolean |
hasLock(long userId,
String className,
String key) |
boolean |
isLocked(String className,
long key) |
boolean |
isLocked(String className,
String key) |
Lock |
lock(long userId,
String className,
long key,
String owner,
boolean inheritable,
long expirationTime) |
Lock |
lock(long userId,
String className,
long key,
String owner,
boolean inheritable,
long expirationTime,
boolean renew) |
Lock |
lock(long userId,
String className,
String key,
String owner,
boolean inheritable,
long expirationTime) |
Lock |
lock(long userId,
String className,
String key,
String owner,
boolean inheritable,
long expirationTime,
boolean renew) |
Lock |
lock(String className,
String key,
String owner) |
Lock |
lock(String className,
String key,
String expectedOwner,
String updatedOwner) |
Lock |
refresh(String uuid,
long companyId,
long expirationTime) |
void |
unlock(String className,
long key) |
void |
unlock(String className,
String key) |
void |
unlock(String className,
String key,
String owner) |
void clear()
Lock createLock(long lockId, long companyId, long userId, String userName)
Lock fetchLock(String className, long key)
Lock fetchLock(String className, String key)
Lock getLock(String className, long key) throws PortalException
PortalException
Lock getLock(String className, String key) throws PortalException
PortalException
Lock getLockByUuidAndCompanyId(String uuid, long companyId) throws PortalException
PortalException
boolean hasLock(long userId, String className, long key)
boolean hasLock(long userId, String className, String key)
boolean isLocked(String className, long key)
boolean isLocked(String className, String key)
Lock lock(long userId, String className, long key, String owner, boolean inheritable, long expirationTime) throws PortalException
PortalException
Lock lock(long userId, String className, long key, String owner, boolean inheritable, long expirationTime, boolean renew) throws PortalException
PortalException
Lock lock(long userId, String className, String key, String owner, boolean inheritable, long expirationTime) throws PortalException
PortalException
Lock lock(long userId, String className, String key, String owner, boolean inheritable, long expirationTime, boolean renew) throws PortalException
PortalException
Lock lock(String className, String key, String owner)
Lock lock(String className, String key, String expectedOwner, String updatedOwner)
Lock refresh(String uuid, long companyId, long expirationTime) throws PortalException
PortalException
void unlock(String className, long key)
void unlock(String className, String key)
void unlock(String className, String key, String owner)