public class CategoryProviderExtensionPoint extends AbstractThreadSafeComponentExtensionPoint<CategoryProvider>
Modifier and Type | Field and Description |
---|---|
static String |
ROLE
Avalon Role
|
_cocoonManager, _context, _manager
Constructor and Description |
---|
CategoryProviderExtensionPoint() |
Modifier and Type | Method and Description |
---|---|
Collection<Category> |
getCategories(String siteName,
String language)
Get all the categories for a given siteName and language.
|
Category |
getCategory(String categoryId)
Get a category by its ID.
|
CategoryProvider |
getCategoryProvider(String categoryId)
Get a category's provider.
|
boolean |
hasCategory(String categoryId)
Tests if a category exists.
|
addComponent, addExtension, contextualize, dispose, getExtension, getExtensionsIds, hasExtension, initialize, initializeExtensions, service
getLogger, setLogger
public CategoryProviderExtensionPoint()
public Collection<Category> getCategories(String siteName, String language)
siteName
- the site name.language
- the language.public Category getCategory(String categoryId)
categoryId
- the category ID.public boolean hasCategory(String categoryId)
categoryId
- the category ID.public CategoryProvider getCategoryProvider(String categoryId)
categoryId
- the category ID.