public class CustomLockServiceHandler extends Object
Constructor and Description |
---|
CustomLockServiceHandler() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isLocked(String className,
long id,
com.liferay.portal.theme.ThemeDisplay display)
Check if a specific class with a given primary key is locked for the current user
|
static boolean |
lock(String className,
long id,
com.liferay.portal.theme.ThemeDisplay display)
Lock a specific class with a given primary key for the current user
|
static boolean |
unlock(String className,
long id,
com.liferay.portal.theme.ThemeDisplay display)
Unlock a specific class with a given primary key for the current user
|
public static boolean isLocked(String className, long id, com.liferay.portal.theme.ThemeDisplay display)
className
- the class nameid
- the primary keydisplay
- the current user's theme displaypublic static boolean lock(String className, long id, com.liferay.portal.theme.ThemeDisplay display)
className
- the class nameid
- the primary keydisplay
- the current user's theme displaypublic static boolean unlock(String className, long id, com.liferay.portal.theme.ThemeDisplay display)
className
- the class nameid
- the primary keydisplay
- the current user's theme displayCopyright © 2016 Fraunhofer FOKUS. All rights reserved.