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
Modifier and TypeMethodDescriptiongetAreasForBrand(Resource brandResource) Returns aSetof area resources for the specifiedbrandResourceor an emptySetif no areas where found for that brand.getAreasForPage(Resource pageResource) Returns aSetof area resources for the specifiedpageResourceor an emptySetif no areas where referenced via propertyPersonalizationConstants.PN_TARGET_AMBITSon that page.
-
Method Details
-
getAreasForBrand
Returns aSetof area resources for the specifiedbrandResourceor an emptySetif no areas where found for that brand.- Parameters:
brandResource- Resource representing a brand.- Returns:
- Area resource for specified
brandResourceor an empty set.
-
getAreasForPage
Returns aSetof area resources for the specifiedpageResourceor an emptySetif no areas where referenced via propertyPersonalizationConstants.PN_TARGET_AMBITSon that page.- Parameters:
pageResource- Resource representing a page.- Returns:
- Area resources for specified
pageResourceor an empty set.
-