public class SiteMembershipPolicyUtil
extends Object
| Constructor and Description |
|---|
SiteMembershipPolicyUtil() |
| Modifier and Type | Method and Description |
|---|---|
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 oldTypeSettingsUnicodeProperties) |
static void |
verifyPolicy(Role role) |
static void |
verifyPolicy(Role role,
Role oldRole,
Map<String,Serializable> oldExpandoAttributes) |
public static void checkMembership(long[] userIds,
long[] addGroupIds,
long[] removeGroupIds)
throws PortalException
PortalExceptionpublic static void checkRoles(List<UserGroupRole> addUserGroupRoles, List<UserGroupRole> removeUserGroupRoles) throws PortalException
PortalExceptionpublic static boolean isMembershipAllowed(long userId,
long groupId)
throws PortalException
PortalExceptionpublic static boolean isMembershipProtected(PermissionChecker permissionChecker, long userId, long groupId) throws PortalException
PortalExceptionpublic static boolean isMembershipRequired(long userId,
long groupId)
throws PortalException
PortalExceptionpublic static boolean isRoleAllowed(long userId,
long groupId,
long roleId)
throws PortalException
PortalExceptionpublic static boolean isRoleProtected(PermissionChecker permissionChecker, long userId, long groupId, long roleId) throws PortalException
PortalExceptionpublic static boolean isRoleRequired(long userId,
long groupId,
long roleId)
throws PortalException
PortalExceptionpublic static void propagateMembership(long[] userIds,
long[] addGroupIds,
long[] removeGroupIds)
throws PortalException
PortalExceptionpublic static void propagateRoles(List<UserGroupRole> addUserGroupRoles, List<UserGroupRole> removeUserGroupRoles) throws PortalException
PortalExceptionpublic static void verifyPolicy()
throws PortalException
PortalExceptionpublic static void verifyPolicy(Group group) throws PortalException
PortalExceptionpublic static void verifyPolicy(Group group, Group oldGroup, List<AssetCategory> oldAssetCategories, List<AssetTag> oldAssetTags, Map<String,Serializable> oldExpandoAttributes, UnicodeProperties oldTypeSettingsUnicodeProperties) throws PortalException
PortalExceptionpublic static void verifyPolicy(Role role) throws PortalException
PortalExceptionpublic static void verifyPolicy(Role role, Role oldRole, Map<String,Serializable> oldExpandoAttributes) throws PortalException
PortalException