Copyright© 2008-2022 Sitevision AB, all rights reserved.
@Requireable(value="RoleMatcherBuilder") public interface RoleMatcherBuilder extends Builder<RoleMatcher>
Tip! The Builder interface documentation
contains
more information about Builders and how to work with them!
An instance of the Sitevision class implementing this interface can be obtained via
RoleUtil.getRoleMatcherBuilder()
.
See RoleUtil
for how to obtain an instance of the RoleUtil
interface.
Modifier and Type | Method and Description |
---|---|
RoleMatcherBuilder |
addRole(Node aRole)
Adds a role (sv:role).
|
RoleMatcher |
build()
Creates a read-only RoleMatcher instance using current state of this builder.
|
RoleMatcherBuilder |
clear()
Clears the state of this builder.
|
RoleMatcherBuilder |
setUser(Node aUser)
Sets the user (sv:user, sv:simpleUser).
|
RoleMatcherBuilder setUser(Node aUser)
aUser
- the userRoleMatcherBuilder addRole(Node aRole)
aRole
- the role to addRoleMatcherBuilder clear()
Sets the user and the roles to null.
RoleMatcher build() throws IllegalStateException
build
in interface Builder<RoleMatcher>
IllegalStateException
- if user is not properly set or if no roles are addedSitevision - 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.