public class RoleMembershipPolicyUtil
extends Object
Constructor and Description |
---|
RoleMembershipPolicyUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
checkRoles(long[] userIds,
long[] addRoleIds,
long[] removeRoleIds) |
static boolean |
isRoleAllowed(long userId,
long roleId) |
static boolean |
isRoleRequired(long userId,
long roleId) |
static void |
propagateRoles(long[] userIds,
long[] addRoleIds,
long[] removeRoleIds) |
static void |
verifyPolicy() |
static void |
verifyPolicy(Role role) |
static void |
verifyPolicy(Role role,
Role oldRole,
Map<String,Serializable> oldExpandoAttributes) |
public static void checkRoles(long[] userIds, long[] addRoleIds, long[] removeRoleIds) throws PortalException
PortalException
public static boolean isRoleAllowed(long userId, long roleId) throws PortalException
PortalException
public static boolean isRoleRequired(long userId, long roleId) throws PortalException
PortalException
public static void propagateRoles(long[] userIds, long[] addRoleIds, long[] removeRoleIds) throws PortalException
PortalException
public static void verifyPolicy() throws PortalException
PortalException
public static void verifyPolicy(Role role) throws PortalException
PortalException
public static void verifyPolicy(Role role, Role oldRole, Map<String,Serializable> oldExpandoAttributes) throws PortalException
PortalException