Copyright© 2008-2024 Sitevision AB, all rights reserved.
@Requireable(value="TargetAudienceUtil") public interface TargetAudienceUtil
An instance of the Sitevision class implementing this interface can be obtained via
Utils.getTargetAudienceUtil()
.
See Utils
for how to obtain an instance of the Utils
interface.
Modifier and Type | Method and Description |
---|---|
List<Node> |
resolve()
Resolves target audiences (sv:targetAudience) for the current user.
|
List<Node> |
resolveForUser(Node aUser)
Resolves target audiences (sv:targetAudience) for the provided user.
|
List<Node> |
resolveForUserFrom(Node aUser,
List<Node> aTargetAudiences)
Resolves specific target audiences (sv:targetAudience) for the provided user.
|
List<Node> |
resolveFrom(List<Node> aTargetAudiences)
Resolves specific target audiences (sv:targetAudience) for the current user.
|
List<Node> resolve()
List<Node> resolveForUser(Node aUser)
aUser
- the user to evaluate target audiences forList<Node> resolveFrom(List<Node> aTargetAudiences)
aTargetAudiences
- the list of target audiences to evaluate against the current userIllegalArgumentException
- if aTargetAudiences is null or contains other than sv:targetAudience NodesList<Node> resolveForUserFrom(Node aUser, List<Node> aTargetAudiences)
aUser
- the user to evaluate target audiences foraTargetAudiences
- the list of target audiences to evaluate against the provided userIllegalArgumentException
- if aTargetAudiences is null or contains other than sv:targetAudience NodesSitevision - Portal and Content Management Made Easy
Sitevision is an advanced Java enterprise portal product and a portlet container (JSR 286) that implements Java Content Repository (JSR 283).
Copyright© 2008-2024 Sitevision AB, all rights reserved.