/** * This file is auto generated from JavaDoc. Do not modify it manually. */ import type { String } from "../../types/java/lang/String"; import type { Node } from "../../types/javax/jcr/Node"; /** * Simple user utility interface. * *

* This interface handles nodes with primary node type sv:simpleUser. *

* *

* An instance of the Sitevision class implementing this interface can be obtained via {@link UserFactory#getSimpleUserUtil()}. * See {@link senselogic.sitevision.api.user.UserFactory} for how to obtain an instance of the UserFactory interface. *

* @author Magnus Lövgren * @since Sitevision 4.0.1 */ export interface SimpleUserUtil { /** * Checks if current user is member of a virtual group with a specific id. * *

* This is a convenience for {@link #isMemberOfVirtualGroup(javax.jcr.Node, String)} using current user * (as of {@link senselogic.sitevision.api.context.PortletContextUtil#getCurrentUser()}). *

* @param aVirtualGroupId id of a virtual group (sv:virtualGroup). Note! The id of a virtual group does not always match the name of the virtual group. * @return true if current user is member of the virtual group resolved via aVirtualGroupId, false otherwise * @see senselogic.sitevision.api.user.UserUtil#isMemberOfGroup(javax.jcr.Node) */ isMemberOfVirtualGroup(aVirtualGroupId: String | string): boolean; /** * Checks if a simple user is member of a virtual group with a specific id. * @param aSimpleUser a simple user node (sv:simpleUser) * @param aVirtualGroupId id of a virtual group (sv:virtualGroup). Note! The id of a virtual group does not always match the name of the virtual group. * @return true if aSimpleUser is member of the virtual group resolved via aVirtualGroupId, false otherwise * @see senselogic.sitevision.api.user.UserUtil#isMemberOfGroup(javax.jcr.Node, javax.jcr.Node) */ isMemberOfVirtualGroup( aSimpleUser: Node, aVirtualGroupId: String | string ): boolean; } declare namespace SimpleUserUtil {} declare var simpleUserUtil: SimpleUserUtil; export default simpleUserUtil;