public class OrganizationMembershipPolicyUtil
extends java.lang.Object
| Constructor and Description |
|---|
OrganizationMembershipPolicyUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkMembership(long[] userIds,
long[] addOrganizationIds,
long[] removeOrganizationIds) |
static void |
checkRoles(java.util.List<UserGroupRole> addUserGroupRoles,
java.util.List<UserGroupRole> removeUserGroupRoles) |
static boolean |
isMembershipAllowed(long userId,
long organizationId) |
static boolean |
isMembershipProtected(PermissionChecker permissionChecker,
long userId,
long organizationId) |
static boolean |
isMembershipRequired(long userId,
long organizationId) |
static boolean |
isRoleAllowed(long userId,
long organizationId,
long roleId) |
static boolean |
isRoleProtected(PermissionChecker permissionChecker,
long userId,
long organizationId,
long roleId) |
static boolean |
isRoleRequired(long userId,
long organizationId,
long roleId) |
static void |
propagateMembership(long[] userIds,
long[] addOrganizationIds,
long[] removeOrganizationIds) |
static void |
propagateRoles(java.util.List<UserGroupRole> addUserGroupRoles,
java.util.List<UserGroupRole> removeUserGroupRoles) |
static void |
verifyPolicy() |
static void |
verifyPolicy(Organization organization) |
static void |
verifyPolicy(Organization organization,
Organization oldOrganization,
java.util.List<AssetCategory> oldAssetCategories,
java.util.List<AssetTag> oldAssetTags,
java.util.Map<java.lang.String,java.io.Serializable> oldExpandoAttributes) |
static void |
verifyPolicy(Role role) |
static void |
verifyPolicy(Role role,
Role oldRole,
java.util.Map<java.lang.String,java.io.Serializable> oldExpandoAttributes) |
public static void checkMembership(long[] userIds,
long[] addOrganizationIds,
long[] removeOrganizationIds)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static void checkRoles(java.util.List<UserGroupRole> addUserGroupRoles, java.util.List<UserGroupRole> removeUserGroupRoles) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static boolean isMembershipAllowed(long userId,
long organizationId)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static boolean isMembershipProtected(PermissionChecker permissionChecker, long userId, long organizationId) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static boolean isMembershipRequired(long userId,
long organizationId)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static boolean isRoleAllowed(long userId,
long organizationId,
long roleId)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static boolean isRoleProtected(PermissionChecker permissionChecker, long userId, long organizationId, long roleId) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static boolean isRoleRequired(long userId,
long organizationId,
long roleId)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static void propagateMembership(long[] userIds,
long[] addOrganizationIds,
long[] removeOrganizationIds)
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static void propagateRoles(java.util.List<UserGroupRole> addUserGroupRoles, java.util.List<UserGroupRole> removeUserGroupRoles) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static void verifyPolicy()
throws PortalException,
SystemException
PortalExceptionSystemExceptionpublic static void verifyPolicy(Organization organization) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static void verifyPolicy(Organization organization, Organization oldOrganization, java.util.List<AssetCategory> oldAssetCategories, java.util.List<AssetTag> oldAssetTags, java.util.Map<java.lang.String,java.io.Serializable> oldExpandoAttributes) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static void verifyPolicy(Role role) throws PortalException, SystemException
PortalExceptionSystemExceptionpublic static void verifyPolicy(Role role, Role oldRole, java.util.Map<java.lang.String,java.io.Serializable> oldExpandoAttributes) throws PortalException, SystemException
PortalExceptionSystemException