Copyright© 2008-2022 Sitevision AB, all rights reserved.
@Requireable(value="RoleUtil") public interface RoleUtil
An instance of the Sitevision class implementing this interface can be obtained via Utils.getRoleUtil().
See Utils for how to obtain an instance of the Utils interface.
PermissionUtil| Modifier and Type | Method and Description |
|---|---|
boolean |
containsPermission(Node aRole,
PermissionUtil.Permission aPermission)
Checks if a role contains a specific permission.
|
RoleAssignmentBuilder |
getRoleAssignmentBuilder()
Creates a RoleAssignmentBuilder instance.
|
Node |
getRoleByName(String aRoleName)
Gets a role by name.
|
RoleMatcherBuilder |
getRoleMatcherBuilder()
Creates a RoleMatcherBuilder instance.
|
RoleAssignmentBuilder getRoleAssignmentBuilder()
RoleMatcherBuilder getRoleMatcherBuilder()
Node getRoleByName(String aRoleName)
aRoleName - the name of the roleboolean containsPermission(Node aRole, PermissionUtil.Permission aPermission)
aRole - the role (sv:role)aPermission - the permissionSitevision - Portal and Content Management Made Easy
Sitevision is an advanced Java enterprise portal product and a portlet container (JSR 286) that implements Java Content Repository (JSR 283).
Copyright© 2008-2022 Sitevision AB, all rights reserved.