com.liferay.portal.security.membershippolicy
Class SiteMembershipPolicyUtil
java.lang.Object
com.liferay.portal.security.membershippolicy.SiteMembershipPolicyUtil
public class SiteMembershipPolicyUtil
- extends Object
|
Method Summary |
static void |
checkMembership(long[] userIds,
long[] addGroupIds,
long[] removeGroupIds)
|
static void |
checkRoles(List<UserGroupRole> addUserGroupRoles,
List<UserGroupRole> removeUserGroupRoles)
|
static boolean |
isMembershipAllowed(long userId,
long groupId)
|
static boolean |
isMembershipProtected(PermissionChecker permissionChecker,
long userId,
long groupId)
|
static boolean |
isMembershipRequired(long userId,
long groupId)
|
static boolean |
isRoleAllowed(long userId,
long groupId,
long roleId)
|
static boolean |
isRoleProtected(PermissionChecker permissionChecker,
long userId,
long groupId,
long roleId)
|
static boolean |
isRoleRequired(long userId,
long groupId,
long roleId)
|
static void |
propagateMembership(long[] userIds,
long[] addGroupIds,
long[] removeGroupIds)
|
static void |
propagateRoles(List<UserGroupRole> addUserGroupRoles,
List<UserGroupRole> removeUserGroupRoles)
|
static void |
verifyPolicy()
|
static void |
verifyPolicy(Group group)
|
static void |
verifyPolicy(Group group,
Group oldGroup,
List<AssetCategory> oldAssetCategories,
List<AssetTag> oldAssetTags,
Map<String,Serializable> oldExpandoAttributes,
UnicodeProperties oldTypeSettingsProperties)
|
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 |
SiteMembershipPolicyUtil
public SiteMembershipPolicyUtil()
checkMembership
public static void checkMembership(long[] userIds,
long[] addGroupIds,
long[] removeGroupIds)
throws PortalException
- Throws:
PortalException
checkRoles
public static void checkRoles(List<UserGroupRole> addUserGroupRoles,
List<UserGroupRole> removeUserGroupRoles)
throws PortalException
- Throws:
PortalException
isMembershipAllowed
public static boolean isMembershipAllowed(long userId,
long groupId)
throws PortalException
- Throws:
PortalException
isMembershipProtected
public static boolean isMembershipProtected(PermissionChecker permissionChecker,
long userId,
long groupId)
throws PortalException
- Throws:
PortalException
isMembershipRequired
public static boolean isMembershipRequired(long userId,
long groupId)
throws PortalException
- Throws:
PortalException
isRoleAllowed
public static boolean isRoleAllowed(long userId,
long groupId,
long roleId)
throws PortalException
- Throws:
PortalException
isRoleProtected
public static boolean isRoleProtected(PermissionChecker permissionChecker,
long userId,
long groupId,
long roleId)
throws PortalException
- Throws:
PortalException
isRoleRequired
public static boolean isRoleRequired(long userId,
long groupId,
long roleId)
throws PortalException
- Throws:
PortalException
propagateMembership
public static void propagateMembership(long[] userIds,
long[] addGroupIds,
long[] removeGroupIds)
throws PortalException
- Throws:
PortalException
propagateRoles
public static void propagateRoles(List<UserGroupRole> addUserGroupRoles,
List<UserGroupRole> removeUserGroupRoles)
throws PortalException
- Throws:
PortalException
verifyPolicy
public static void verifyPolicy()
throws PortalException
- Throws:
PortalException
verifyPolicy
public static void verifyPolicy(Group group)
throws PortalException
- Throws:
PortalException
verifyPolicy
public static void verifyPolicy(Group group,
Group oldGroup,
List<AssetCategory> oldAssetCategories,
List<AssetTag> oldAssetTags,
Map<String,Serializable> oldExpandoAttributes,
UnicodeProperties oldTypeSettingsProperties)
throws PortalException
- Throws:
PortalException
verifyPolicy
public static void verifyPolicy(Role role)
throws PortalException
- Throws:
PortalException
verifyPolicy
public static void verifyPolicy(Role role,
Role oldRole,
Map<String,Serializable> oldExpandoAttributes)
throws PortalException
- Throws:
PortalException