Note |
---|
title | Documentation Work In Progress |
---|
|
Warning: You may see some periodical changes as we are working hard to reorganize the content. If you have any concerns please submit feedback to the uportal-user@lists.ja-sig.org mailing list. Thank you so much for your patience. |
Each <dlm:fragment> element can contain from zero to many <dlm:audience> elements. Each audience element defines a group of users who will receive that fragment. If a fragment has more than one audience element then the set of users that get that fragment is the union of all nested audience elements.
...
Define audiences using:
...
GuestUserEvaluatorFactory
AllUsersEvaluatorFactory
PersonEvaluatorFactory
GroupMembershipEvaluatorFactory
The 'evaluatorFactory' Attribute
...
The following evaluator factories are provided. All are found in the org.jasig.portal.layout.dlm.providers package.
Anchor |
---|
| GuestUserEvaluatorFactory |
---|
| GuestUserEvaluatorFactory |
---|
|
The GuestUserEvaluatorFactory
...
Code Block |
---|
|
<dlm:fragment name='Guests' ownerID='guest-lo' precedence='10'>
<dlm:audience evaluatorFactory='org.jasig.portal.layout.dlm.providers.GuestUserEvaluatorFactory'/>
</dlm:fragment>
|
Anchor |
---|
| AllUsersEvaluatorFactory |
---|
| AllUsersEvaluatorFactory |
---|
|
The AllUsersEvaluatorFactory
This factory produces and evaluator that always returns true. This can be used to push a fragment to all portal users including the guest user. Like GuestUserEvaluatorFactory it requires no content within the audience element and hence the element can be empty.
Anchor |
---|
| PersonEvaluatorFactory |
---|
| PersonEvaluatorFactory |
---|
|
The PersonEvaluatorFactory
...
Code Block |
---|
|
<dlm:fragment name='Entertainment' ownerID='ent-lo' precedence='100'>
<dlm:audience evaluatorFactory='org.jasig.portal.layout.dlm.providers.PersonEvaluatorFactory'>
<paren mode="NOT">
<attribute name="username" mode='equals' value='guest'/>
</paren>
</dlm:audience>
</dlm:fragment>
|
Anchor |
---|
| GroupMembershipEvaluatorFactory |
---|
| GroupMembershipEvaluatorFactory |
---|
|
The GroupMembershipEvaluatorFactory
...
Code Block |
---|
|
<dlm:fragment name='News' ownerID='news-lo' precedence='80'>
<dlm:audience evaluatorFactory='org.jasig.portal.layout.dlm.providers.GroupMembershipEvaluatorFactory'>
<paren mode="AND">
<attribute mode='memberOf' name='Students'/>
<paren mode="NOT">
<attribute mode='memberOf' name='Faculty'/>
</paren>
</paren>
</dlm:audience>
</dlm:fragment>
|
Info |
---|
|
Additional References |
Warning |
---|
icon | false |
---|
title | Having problems with these instructions? |
---|
|
Please send us feedback at uportal-user@lists.ja-sig.org |