/** * This file is auto generated from JavaDoc. Do not modify it manually. */ import type { Node } from "../../types/javax/jcr/Node"; import type { RoleMatcher } from "../../types/senselogic/sitevision/api/security/RoleMatcher"; import type { Builder } from "../../types/senselogic/sitevision/api/base/Builder"; /** * Builder of RoleMatcher instances. * *

* Tip! The {@link senselogic.sitevision.api.base.Builder 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 * {@link RoleUtil#getRoleMatcherBuilder()}. * See {@link RoleUtil} for how to obtain an instance of the RoleUtil interface. *

* @author Magnus Lövgren * @since Sitevision 6.1 */ export interface RoleMatcherBuilder extends Builder { /** * Sets the user (sv:user, sv:simpleUser). * @param aUser the user * @return this builder */ setUser(aUser: Node): RoleMatcherBuilder; /** * Adds a role (sv:role). * @param aRole the role to add * @return this builder */ addRole(aRole: Node): RoleMatcherBuilder; /** * Clears the state of this builder. * *

* Sets the user and the roles to null. *

* @return this builder */ clear(): RoleMatcherBuilder; /** * Creates a read-only RoleMatcher instance using current state of this builder. * @return a RoleMatcher instance * @throws IllegalStateException if user is not properly set or if no roles are added */ build(): RoleMatcher; } declare namespace RoleMatcherBuilder {} declare var roleMatcherBuilder: RoleMatcherBuilder; export default roleMatcherBuilder;