Class CategoryProviderExtensionPoint

    • Field Detail

      • ROLE

        public static final String ROLE
        Avalon Role
    • Method Detail

      • getCategories

        public Collection<CategorygetCategories​(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

        public CategoryProvider getCategoryProvider​(String categoryId)
        Get a category's provider.
        Parameters:
        categoryId - the category ID.
        Returns:
        the CategoryProvider or null if not found.