public class RoleUtil
extends java.lang.Object
Constructor and Description |
---|
RoleUtil() |
Modifier and Type | Method and Description |
---|---|
static com.liferay.portal.kernel.model.Role |
getRole(java.lang.String name,
int roleType,
boolean autoCreate,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static java.util.List<java.lang.Long> |
getRoleIds(com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static int |
getRoleType(java.lang.String roleType) |
public static com.liferay.portal.kernel.model.Role getRole(java.lang.String name, int roleType, boolean autoCreate, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.util.List<java.lang.Long> getRoleIds(com.liferay.portal.kernel.service.ServiceContext serviceContext)
public static int getRoleType(java.lang.String roleType)