Security Member Name And Avatar
Introduction
This component is used to display the name and avatar of a security member in the ivy security system. It is also integrated in User Selection and Role Selection.
How to Use
You can insert this component into any page.
Code example using the top-level role (Everybody):
<pc:securityMemberNameAndAvatar displayName="#{ivy.security.roles().topLevel().displayName}"
securityMember="#{ivy.security.roles().topLevel()}" />
Code example using the current session user:
<pc:securityMemberNameAndAvatar displayName="#{ivy.session.sessionUser.displayName}"
securityMember="#{ivy.session.sessionUser}" />
This component offers the following attributes:
Name |
Default |
Type |
Required |
Description |
---|---|---|---|---|
id |
String |
false |
Id of component. |
|
securityMember |
null |
ISecurityMember |
true |
Security member in the ivy security system. |
isShowAvatar |
Boolean |
false |
Boolean value to specify avatar showing. Set to true to show avatar.
The setting will detect Portal setting Portal.ShowAvatar as its default value, refer to HowTo: Update HowTo: Update Portal Settings for more details.
If the Portal setting is not available, defaults to true.
|
|
displayNameId |
username |
String |
false |
Id of display name element. |
displayName |
null |
String |
true |
The security member name is displayed. |
displayNameRendered |
true |
Boolean |
false |
If false, the security member name is hidden. |
displayNameStyleClass |
null |
String |
false |
The style class is applied for display name element. |
containerStyleClass |
null |
String |
false |
The style class is applied for container element. |
isStandAlone |
true |
Boolean |
false |
Set to false when you use this component in User Selection and Role Selection. |
isShowTechnicalDisplayNameOnTooltip |
false |
Boolean |
false |
Enable to show users’ technical name on tooltips. |
Refer to process SecurityMemberNameAndAvatarExample
in project portal-components-examples
for more details.