public class LockManagerUtil
extends Object
Constructor and Description |
---|
LockManagerUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
clear() |
static Lock |
createLock(long lockId,
long companyId,
long userId,
String userName) |
static Lock |
fetchLock(String className,
long key) |
static Lock |
fetchLock(String className,
String key) |
static Lock |
getLock(String className,
long key) |
static Lock |
getLock(String className,
String key) |
static Lock |
getLockByUuidAndCompanyId(String uuid,
long companyId) |
static boolean |
hasLock(long userId,
String className,
long key) |
static boolean |
hasLock(long userId,
String className,
String key) |
static boolean |
isLocked(String className,
long key) |
static boolean |
isLocked(String className,
String key) |
static Lock |
lock(long userId,
String className,
long key,
String owner,
boolean inheritable,
long expirationTime) |
static Lock |
lock(long userId,
String className,
String key,
String owner,
boolean inheritable,
long expirationTime) |
static Lock |
lock(String className,
String key,
String owner) |
static Lock |
lock(String className,
String key,
String expectedOwner,
String updatedOwner) |
static Lock |
refresh(String uuid,
long companyId,
long expirationTime) |
static void |
unlock(String className,
long key) |
static void |
unlock(String className,
String key) |
static void |
unlock(String className,
String key,
String owner) |
public static void clear()
public static Lock createLock(long lockId, long companyId, long userId, String userName)
public static Lock fetchLock(String className, long key)
public static Lock fetchLock(String className, String key)
public static Lock getLock(String className, long key) throws PortalException
PortalException
public static Lock getLock(String className, String key) throws PortalException
PortalException
public static Lock getLockByUuidAndCompanyId(String uuid, long companyId) throws PortalException
PortalException
public static boolean hasLock(long userId, String className, long key)
public static boolean hasLock(long userId, String className, String key)
public static boolean isLocked(String className, long key)
public static boolean isLocked(String className, String key)
public static Lock lock(long userId, String className, long key, String owner, boolean inheritable, long expirationTime) throws PortalException
PortalException
public static Lock lock(long userId, String className, String key, String owner, boolean inheritable, long expirationTime) throws PortalException
PortalException
public static Lock lock(String className, String key, String owner)
public static Lock lock(String className, String key, String expectedOwner, String updatedOwner)
public static Lock refresh(String uuid, long companyId, long expirationTime) throws PortalException
PortalException
public static void unlock(String className, long key)
public static void unlock(String className, String key)
public static void unlock(String className, String key, String owner)