public final class SetupPermissions extends Object
| Modifier and Type | Field and Description |
|---|---|
static String[] |
PERMISSION_RO |
static String[] |
PERMISSION_RW |
| Modifier and Type | Method and Description |
|---|---|
static void |
addPermission(String roleName,
String name,
String primaryKey,
int scope,
String[] permission) |
static void |
addPermission(String roleName,
String className,
String primaryKey,
String[] permission) |
static void |
addPermissionToPage(eu.lundegaard.liferay.db.setup.domain.Role role,
String primaryKey,
String[] actionKeys) |
static void |
addReadRight(String roleName,
String className,
String primaryKey) |
static void |
addReadWrightRight(String roleName,
String className,
String primaryKey) |
static void |
clearPagePermissions(String primaryKey) |
static void |
removePermission(long companyId,
String name,
String primKey) |
static void |
setupPortletPermissions(eu.lundegaard.liferay.db.setup.domain.PortletPermissions portletPermissions) |
static void |
updatePermission(String locationHint,
long groupId,
long companyId,
long elementId,
Class clazz,
eu.lundegaard.liferay.db.setup.domain.RolePermissions rolePermissions,
HashMap<String,List<String>> defaultPermissions) |
static void |
updatePermission(String locationHint,
long groupId,
long companyId,
long elementId,
String className,
eu.lundegaard.liferay.db.setup.domain.RolePermissions rolePermissions,
HashMap<String,List<String>> defaultPermissions) |
public static final String[] PERMISSION_RO
public static final String[] PERMISSION_RW
public static void setupPortletPermissions(eu.lundegaard.liferay.db.setup.domain.PortletPermissions portletPermissions)
public static void addReadRight(String roleName, String className, String primaryKey) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemExceptioncom.liferay.portal.kernel.exception.PortalExceptionpublic static void addReadWrightRight(String roleName, String className, String primaryKey) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemExceptioncom.liferay.portal.kernel.exception.PortalExceptionpublic static void removePermission(long companyId,
String name,
String primKey)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static void addPermission(String roleName, String name, String primaryKey, int scope, String[] permission) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemExceptioncom.liferay.portal.kernel.exception.PortalExceptionpublic static void addPermission(String roleName, String className, String primaryKey, String[] permission) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemExceptioncom.liferay.portal.kernel.exception.PortalExceptionpublic static void addPermissionToPage(eu.lundegaard.liferay.db.setup.domain.Role role,
String primaryKey,
String[] actionKeys)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static void clearPagePermissions(String primaryKey) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static void updatePermission(String locationHint, long groupId, long companyId, long elementId, Class clazz, eu.lundegaard.liferay.db.setup.domain.RolePermissions rolePermissions, HashMap<String,List<String>> defaultPermissions)
Copyright © 2016–2022 Lundegaard a.s.. All rights reserved.