User display portlet

From VYRE

Jump to: navigation, search
User display portlet
module: Users and groups module
supplier: VYRE Ltd.


The User Display portlet is used to display details of a user. It can be configured to display details of the current user or those of a user detected from parameters in the URL


Contents

Edit mode

The User display portlet

Type

This portlet can be used in one of two modes, either to:

  • edit the current user that is logged in (commonly used for user profile pages); or
  • edit a user detected from parameters passed through the URL, in the form ?userId=1&realmId=initial

Please select the radio button that corresponds to the type of edit you require.

Retrieve linked items

When this checkbox is checked then all items that are linked to the user being viewed will be returned in the output XML.

Output XML

The portlet will return the user data in XML format which will have to be styled by a XSL stylesheet. The XML is in the following format:

<user>
    <id>249</id>
    <username><![CDATA[ajmal]]></username>
    <email><![CDATA[ajmal.ramjaun@vyre.com]]></email>
    <full-name><![CDATA[Ajmal Ramjaun]]></full-name>
    <creation-date timestamp="1243505230396">28.05.2009 11:07:37</creation-date>
    <modification-date timestamp="1263230027180">11.01.2010 17:13:06</modification-date>
    <last-login-date timestamp="1269979169124">30.03.2010 20:59:23</last-login-date>
    <realm-id>initial</realm-id>
    <profile-id>249</profile-id>
    <lease-id></lease-id>
    <lease-expiry-date timestamp="1301515163622">30.03.2011 20:59:23</lease-expiry-date>
    <lease-start-date timestamp="1243505230396">28.05.2009 11:07:37</lease-start-date>
    <deactivation-date></deactivation-date>
    <active>true</active>
    <link><![CDATA[realmId=initial&userId=249]]></link>
    <default-properties>
        <property>
            <name><![CDATA[user.name.family]]></name>
            <value><![CDATA[RAMJAUN]]></value>
            <label><![CDATA[Family name]]></label>
        </property>
        <property>
            <name><![CDATA[user.name.given]]></name>
            <value><![CDATA[ajmal]]></value>
            <label><![CDATA[Given name]]></label>
        </property>
        <property>
            <name><![CDATA[user.name.middle]]></name>
            <value><![CDATA[]]></value>
            <label><![CDATA[Middle name]]></label>
        </property>
        <property>
            <name><![CDATA[user.name.prefix]]></name>
            <value><![CDATA[Mr]]></value>
            <label><![CDATA[Name prefix]]></label>
        </property>
        <property>
            <name><![CDATA[user.name.suffix]]></name>
            <value><![CDATA[]]></value>
            <label><![CDATA[Name suffix]]></label>
        </property>
        <property>
            <name><![CDATA[user.gender]]></name>
            <value><![CDATA[]]></value>
            <label><![CDATA[Gender]]></label>
        </property>
        <property>
            <name><![CDATA[user.business-info.online.email]]></name>
            <value><![CDATA[]]></value>
            <label><![CDATA[Business email address]]></label>
        </property>
        <property>
            <name><![CDATA[user.business-info.online.uri]]></name>
            <value><![CDATA[]]></value>
            <label><![CDATA[Business URL]]></label>
        </property>
        <property>
            <name><![CDATA[user.business-info.postal.city]]></name>
            <value><![CDATA[]]></value>
            <label><![CDATA[Business city]]></label>
        </property>
        <property>
            <name><![CDATA[user.business-info.postal.country]]></name>
            <value><![CDATA[]]></value>
            <label><![CDATA[Business country]]></label>
        </property>
        <property>
            <name><![CDATA[user.business-info.postal.name]]></name>
            <value><![CDATA[]]></value>
            <label><![CDATA[Business postal name]]></label>
        </property>
        <property>
            <name><![CDATA[user.business-info.postal.postalcode]]></name>
            <value><![CDATA[]]></value>
            <label><![CDATA[Business postal code]]></label>
        </property>
        <property>
            <name><![CDATA[user.business-info.postal.stateprov]]></name>
            <value><![CDATA[]]></value>
            <label><![CDATA[Business state/province]]></label>
        </property>
        <property>
            <name><![CDATA[user.business-info.postal.street]]></name>
            <value><![CDATA[]]></value>
            <label><![CDATA[Business street]]></label>
        </property>
        <property>
            <name><![CDATA[user.business-info.telecom.fax.number]]></name>
            <value><![CDATA[]]></value>
            <label><![CDATA[Business fax number]]></label>
        </property>
        <property>
            <name><![CDATA[user.business-info.telecom.mobile.number]]></name>
            <value><![CDATA[]]></value>
            <label><![CDATA[Business mobile number]]></label>
        </property>
        <property>
            <name><![CDATA[user.business-info.telecom.telephone.number]]></name>
            <value><![CDATA[]]></value>
            <label><![CDATA[Business telephone number]]></label>
        </property>
        <property>
            <name><![CDATA[user.jobtitle]]></name>
            <value><![CDATA[]]></value>
            <label><![CDATA[Job title]]></label>
        </property>
        <property>
            <name><![CDATA[user.department]]></name>
            <value><![CDATA[]]></value>
            <label><![CDATA[Department]]></label>
        </property>
        <property>
            <name><![CDATA[user.employer]]></name>
            <value><![CDATA[]]></value>
            <label><![CDATA[Employer]]></label>
        </property>
        <property>
            <name><![CDATA[user.home-info.online.email]]></name>
            <value><![CDATA[]]></value>
            <label><![CDATA[Home email address]]></label>
        </property>
        <property>
            <name><![CDATA[user.home-info.online.uri]]></name>
            <value><![CDATA[]]></value>
            <label><![CDATA[Home URL]]></label>
        </property>
        <property>
            <name><![CDATA[user.home-info.postal.city]]></name>
            <value><![CDATA[]]></value>
            <label><![CDATA[Home city]]></label>
        </property>
        <property>
            <name><![CDATA[user.home-info.postal.country]]></name>
            <value><![CDATA[]]></value>
            <label><![CDATA[Home country]]></label>
        </property>
        <property>
            <name><![CDATA[user.home-info.postal.name]]></name>
            <value><![CDATA[]]></value>
            <label><![CDATA[Home postal name]]></label>
        </property>
        <property>
            <name><![CDATA[user.home-info.postal.postalcode]]></name>
            <value><![CDATA[]]></value>
            <label><![CDATA[Home postal code]]></label>
        </property>
        <property>
            <name><![CDATA[user.home-info.postal.stateprov]]></name>
            <value><![CDATA[]]></value>
            <label><![CDATA[Home state/province]]></label>
        </property>
        <property>
            <name><![CDATA[user.home-info.postal.street]]></name>
            <value><![CDATA[]]></value>
            <label><![CDATA[Home street]]></label>
        </property>
        <property>
            <name><![CDATA[user.home-info.telecom.fax.number]]></name>
            <value><![CDATA[]]></value>
            <label><![CDATA[Home fax number]]></label>
        </property>
        <property>
            <name><![CDATA[user.home-info.telecom.mobile.number]]></name>
            <value><![CDATA[]]></value>
            <label><![CDATA[Home mobile number]]></label>
        </property>
        <property>
            <name><![CDATA[user.home-info.telecom.telephone.number]]></name>
            <value><![CDATA[]]></value>
            <label><![CDATA[Home telephone number]]></label>
        </property>
        <property>
            <name><![CDATA[user.authentication.key]]></name>
            <value><![CDATA[]]></value>
            <label><![CDATA[???user.authentication.key???]]></label>
        </property>
    </default-properties>
    <custom-properties></custom-properties>
    <external-properties>
        <property>
            <name><![CDATA[remoteAddress]]></name>
            <value><![CDATA[10.90.50.10]]></value>
        </property>
    </external-properties>
    <user-profile-picture></user-profile-picture>
    <groups>
        <group id="admins">
            <![CDATA[Admins]]></group>
    </groups>
    <profile-groups></profile-groups>
</user>

XSL Stylesheet

Select the desired XSL Stylesheet that you want to use to transform the output XML.

Message when no user is found

You can configure a message to be displayed if no user is found.

Enter manually

Use this textare input to enter a custom message to be displayed when no user if found.

Use localization key

Enter a localization key to display a message when no user is found.

See Also

Personal tools