Liferay 6.2-ce-ga5

com.liferay.portal.security.membershippolicy
Class RoleMembershipPolicyUtil

java.lang.Object
  extended by com.liferay.portal.security.membershippolicy.RoleMembershipPolicyUtil

public class RoleMembershipPolicyUtil
extends Object


Constructor Summary
RoleMembershipPolicyUtil()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoleMembershipPolicyUtil

public RoleMembershipPolicyUtil()
Method Detail

checkRoles

public static void checkRoles(long[] userIds,
                              long[] addRoleIds,
                              long[] removeRoleIds)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

isRoleAllowed

public static boolean isRoleAllowed(long userId,
                                    long roleId)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

isRoleRequired

public static boolean isRoleRequired(long userId,
                                     long roleId)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

propagateRoles

public static void propagateRoles(long[] userIds,
                                  long[] addRoleIds,
                                  long[] removeRoleIds)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

verifyPolicy

public static void verifyPolicy()
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

verifyPolicy

public static void verifyPolicy(Role role)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

verifyPolicy

public static void verifyPolicy(Role role,
                                Role oldRole,
                                Map<String,Serializable> oldExpandoAttributes)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

Liferay 6.2-ce-ga5