セキュリティメンバーの名前とアバター

概要

このコンポーネントは、ivy のセキュリティシステムでセキュリティメンバーの名前とアバターを表示するのに使用します。 コンポーネントは、ユーザーの選択ロールの選択 にも統合されています。

使用方法

このコンポーネントは任意のページに挿入できます。

session-role-security-member-name-and-avatar

最上位のロール(Everybody)を使用したコードの例:

<pc:securityMemberNameAndAvatar displayName="#{ivy.security.roles().topLevel().displayName}"
   securityMember="#{ivy.security.roles().topLevel()}" />

session-user-security-member-name-and-avatar

現在のセッションのユーザーを使用したコードの例:

<pc:securityMemberNameAndAvatar displayName="#{ivy.session.sessionUser.displayName}"
   securityMember="#{ivy.session.sessionUser}" />

このコンポーネントには以下の属性が用意されています。

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.

詳細については、 portal-components-examples プロジェクトの SecurityMemberNameAndAvatarExample プロセスを参照してください。