Package com.day.cq.personalization
Interface AreaService
-
public interface AreaServiceThe 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 aSetof area resources for the specifiedbrandResourceor an emptySetif no areas where found for that brand.java.util.Set<Resource>getAreasForPage(Resource pageResource)Returns aSetof area resources for the specifiedpageResourceor an emptySetif no areas where referenced via propertyPersonalizationConstants.PN_TARGET_AMBITSon that page.
-
-
-
Method Detail
-
getAreasForBrand
java.util.Set<Resource> getAreasForBrand(Resource brandResource)
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
java.util.Set<Resource> getAreasForPage(Resource pageResource)
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.
-
-