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