developer logo

sv:simpleUser

Simple user nodes are located in the external repository (sv:externalPrincipalRepository).

The data of a simple user is dynamic since it is created in SiteVision via external data for external users that is authenticated via SAML, CAS or such. SiteVision typically has no access to the backend (likely a ldap directory) of the actual external user.

Simple user nodes implement some of the functionality in JCR level 2. It is possible to change some of the properties or add properties to a user.

Node name

Name

Type and description

<user-name>

Dynamic / Model dependent


The name of the user (e.g. "John Doe").

 

The simple user is populated with the provided data (e.g. SAML ticket) when the user is authenticated/created. In other words - there are no guarantee that a specific property is available. The table below lists the properties that are commonly available.

Properties

Name

Type and description

description

javax.jcr.PropertyType.STRING


User description.



displayName

javax.jcr.PropertyType.STRING

 

The name of the user.



givenName

javax.jcr.PropertyType.STRING

 

An array of given names.



mail

javax.jcr.PropertyType.STRING

 

An array of email addresses.



sn

javax.jcr.PropertyType.STRING

 

User surname.



telephoneNumber

javax.jcr.PropertyType.STRING

 

An array of telephone numbers.



title

Multi-Value of javax.jcr.PropertyType.STRING


An array of titles.

SiteVision Utility API tip!

  • Current user can be looked up via PortletContextUtil.getCurrentUser.
  • The sv:userIdentity for a sv:simpleUser can be looked up via UserIdentityUtil.getUserIdentity.
  • The UserDataUtil can be used to manage personal user data
  • The LinkRenderer interface can be used to render a link for a sv:simpleUser (a mailto link or a link to the profile page of the sv:simpleUser's sv:userIdentity).
  • The SimpleUserUtil interface exposes a set of methods for checking a sv:simpleUser.