Copyright© 2008-2022 Sitevision AB, all rights reserved.
@Requireable(value="UserIdentityUtil") public interface UserIdentityUtil
An instance of the Sitevision class implementing this interface can be obtained via
UserFactory.getUserIdentityUtil()
.
See UserFactory
for how to obtain an instance of the UserFactory
interface.
Tip! Use PortletContextUtil.getCurrentUserIdentity()
for getting
the user identity of current user.
Modifier and Type | Method and Description |
---|---|
Node |
getOrCreateUserIdentity(Node aUserNode)
Creates the corresponding
sv:userIdentity Node for a specified sv:user Node. |
Node |
getUserIdentity(Node aUserNode)
Gets the corresponding
sv:userIdentity Node for a specified sv:user Node. |
Node getOrCreateUserIdentity(Node aUserNode)
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!
aUserNode
- a user node that presumably do not have a corresponding user identityaUserNode
, or null
if aUserNode
is null
or isn't allowed to have user identity for current site (e.g. user is anonymized).getUserIdentity(javax.jcr.Node)
Node getUserIdentity(Node aUserNode)
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 PortletContextUtil.getCurrentUserIdentity()
for getting
the user identity of current user.
aUserNode
- a user nodeaUserNode
, or null
if aUserNode
is null
or has no corresponding user identity for current site (e.g. user is anonymized).Sitevision - 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.