Package com.day.cq.personalization
Interface AreaService
-
public interface AreaService
The AreaService defines an interface to retrieve areas for certain types of resources.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Set<Resource>
getAreasForBrand(Resource brandResource)
Returns aSet
of area resources for the specifiedbrandResource
or an emptySet
if no areas where found for that brand.java.util.Set<Resource>
getAreasForPage(Resource pageResource)
Returns aSet
of area resources for the specifiedpageResource
or an emptySet
if no areas where referenced via propertyPersonalizationConstants.PN_TARGET_AMBITS
on that page.
-
-
-
Method Detail
-
getAreasForBrand
java.util.Set<Resource> getAreasForBrand(Resource brandResource)
Returns aSet
of area resources for the specifiedbrandResource
or an emptySet
if no areas where found for that brand.- Parameters:
brandResource
- Resource representing a brand.- Returns:
- Area resource for specified
brandResource
or an empty set.
-
getAreasForPage
java.util.Set<Resource> getAreasForPage(Resource pageResource)
Returns aSet
of area resources for the specifiedpageResource
or an emptySet
if no areas where referenced via propertyPersonalizationConstants.PN_TARGET_AMBITS
on that page.- Parameters:
pageResource
- Resource representing a page.- Returns:
- Area resources for specified
pageResource
or an empty set.
-
-