management:principal

This taglib gets you a principal either by userName or through the contentVersion.

Parameters

Name

Required

Default

Type

Description

id

true

 

String

The result is stored in this variable.

userName

false

 

Object/String

The userName of the principal we want to load.

contentVersion

false

 

Object/String

You can load the principal that modified this version last.

 

ID-result variable contains:
A org.infoglue.cms.security.InfoGluePrincipal-object.

Examples

The following example gets the latest content version object based on the content object previously fetched. It then gets the latest editor and presents his/her name.

<content:contentVersion id="articleContentVersion" content="${articleContent}"/>
<management:principal id="articleModifyer" contentVersion="${articleContentVersion}"/>
The article was last changed by <c:out value="${articleModifyer.firstName}"/> <c:out value="${articleModifyer.lastName}"/>



comments powered by Disqus