/** * This file is auto generated from JavaDoc. Do not modify it manually. */ import type { Node } from "../../types/javax/jcr/Node"; /** * User identity utility interface. * *

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

* *

* Tip! Use {@link senselogic.sitevision.api.context.PortletContextUtil#getCurrentUserIdentity()} for getting * the user identity of current user. *

* @author Magnus Lövgren * @since Sitevision 3.6 */ export interface UserIdentityUtil { /** * Creates the corresponding sv:userIdentity Node for a specified sv:user Node. * *

* Note! When Collaboration is activated for a site, user identities are automatically created * for each user when they authenticates themselves. This method is typically used for "infrequent" users during * the startup phase of using Collaboration. *

*

* Note that neither anonymous users, the indexer or the extractor can have a user identity! *

* @param aUserNode a user node that presumably do not have a corresponding user identity * @return the existing or created sv:userIdentity Node for aUserNode, or null if aUserNode is null or isn't allowed to have user identity for current site (e.g. user is anonymized). * @see #getUserIdentity(javax.jcr.Node) */ getOrCreateUserIdentity(aUserNode: Node): Node; /** * Gets the corresponding sv:userIdentity Node for a specified sv:user Node. * *

* Note that neither anonymous users, the indexer or the extractor user has a user identity! *

*

* Tip! Use {@link senselogic.sitevision.api.context.PortletContextUtil#getCurrentUserIdentity()} for getting * the user identity of current user. *

* @param aUserNode a user node * @return the corresponding sv:userIdentity Node for aUserNode, or null if aUserNode is null or has no corresponding user identity for current site (e.g. user is anonymized). */ getUserIdentity(aUserNode: Node): Node; } declare namespace UserIdentityUtil {} declare var userIdentityUtil: UserIdentityUtil; export default userIdentityUtil;