public final class SetupRoles extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
deleteRoles(List<eu.lundegaard.liferay.db.setup.domain.Role> roles,
String deleteMethod,
long companyId)
Deletes roles based on the delete method provided.
|
static void |
setupRoles(List<eu.lundegaard.liferay.db.setup.domain.Role> roles,
long runAsUserId,
long groupId,
long company) |
public static void setupRoles(List<eu.lundegaard.liferay.db.setup.domain.Role> roles, long runAsUserId, long groupId, long company)
public static void deleteRoles(List<eu.lundegaard.liferay.db.setup.domain.Role> roles, String deleteMethod, long companyId)
including only the listed roles.
roles - List of Role
objects to be deleted.deleteMethod - Specifies the method of deletion. Possible values are
"excludeListed" or "onlyListed".companyId - The identifier of the company that the roles belong to.Copyright © 2016–2023 Lundegaard a.s.. All rights reserved.