Copyright© 2008-2022 Sitevision AB, all rights reserved.
@Requireable(value="RoleAssignmentBuilder") public interface RoleAssignmentBuilder extends Builder<RoleAssignment>
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.getRoleAssignmentBuilder().
See RoleUtil for how to obtain an instance of the RoleUtil interface.
RoleAssignment| Modifier and Type | Method and Description |
|---|---|
RoleAssignment |
build()
Creates a read-only RoleAssignment instance using current state of this builder.
|
RoleAssignmentBuilder |
clear()
Clears the state of this builder.
|
RoleAssignmentBuilder |
setPrincipal(Node aPrincipal)
Sets the principal (sv:user, sv:simpleUser, sv:userGroup or sv:virtualGroup).
|
RoleAssignmentBuilder |
setRole(Node aRole)
Sets the role (sv:role).
|
RoleAssignmentBuilder setPrincipal(Node aPrincipal)
aPrincipal - the principalRoleAssignmentBuilder setRole(Node aRole)
aRole - the roleRoleAssignmentBuilder clear()
Sets the principal and the role to null.
RoleAssignment build() throws IllegalStateException
build in interface Builder<RoleAssignment>IllegalStateException - if role and/or principal is not properly setSitevision - 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.