Class CategoryProviderExtensionPoint

All Implemented Interfaces:
LogEnabled, ExtensionPoint<CategoryProvider>, Disposable, Initializable, Component, Contextualizable, Serviceable, ThreadSafe

This class is in charge to load and initialize newsletter category providers.
  • Field Details

    • ROLE

      public static final String ROLE
      Avalon Role
  • Constructor Details

  • Method Details

    • getCategories

      public Collection<Category> getCategories(String siteName, String language)
      Get all the categories for a given siteName and language.
      Parameters:
      siteName - the site name.
      language - the language.
      Returns:
      a Collection containing all the categories.
    • getCategory

      public Category getCategory(String categoryId)
      Get a category by its ID.
      Parameters:
      categoryId - the category ID.
      Returns:
      the Category or null if not found.
    • hasCategory

      public boolean hasCategory(String categoryId)
      Tests if a category exists.
      Parameters:
      categoryId - the category ID.
      Returns:
      true if the category exists, false otherwise..
    • getCategoryProvider

      Get a category's provider.
      Parameters:
      categoryId - the category ID.
      Returns:
      the CategoryProvider or null if not found.