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 a Set of area resources for the specified brandResource or an empty Set if no areas where found for that brand.
      java.util.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.
    • Method Detail

      • getAreasForBrand

        java.util.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

        java.util.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.