Interface AreaService


public interface AreaService
The AreaService defines an interface to retrieve areas for certain types of resources.
  • Method Summary

    Modifier and Type
    Method
    Description
    getAreasForBrand(Resource brandResource)
    Returns a Set of area resources for the specified brandResource or an empty Set if no areas where found for that brand.
    getAreasForPage(Resource pageResource)
    Returns a Set of area resources for the specified pageResource or an empty Set if no areas where referenced via property PersonalizationConstants.PN_TARGET_AMBITS on that page.
  • Method Details

    • getAreasForBrand

      Set<Resource> getAreasForBrand(Resource brandResource)
      Returns a Set of area resources for the specified brandResource or an empty Set 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

      Set<Resource> getAreasForPage(Resource pageResource)
      Returns a Set of area resources for the specified pageResource or an empty Set if no areas where referenced via property PersonalizationConstants.PN_TARGET_AMBITS on that page.
      Parameters:
      pageResource - Resource representing a page.
      Returns:
      Area resources for specified pageResource or an empty set.