Class CategoryJCRProvider
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.ametys.cms.tag.AbstractTagProvider<T>
org.ametys.cms.tag.jcr.AbstractJCRTagProvider<Category>
org.ametys.plugins.workspaces.categories.CategoryJCRProvider
- All Implemented Interfaces:
TagProvider<Category>
,PluginAware
,Configurable
,Contextualizable
,LogEnabled
,Serviceable
Class representing a project jcr category provider.
-
Field Summary
Modifier and TypeFieldDescriptionprotected CategoryColorsComponent
The colors componentprotected CategoryProviderExtensionPoint
The projet tag provider extension pointprotected AmetysObjectResolver
The ametys object resolverstatic final String
Constant for plugin node nameFields inherited from class org.ametys.cms.tag.jcr.AbstractJCRTagProvider
_context, CACHE_REQUEST_ATTRIBUTE
Fields inherited from class org.ametys.cms.tag.AbstractTagProvider
_description, _featureName, _id, _label, _pluginName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
_fillCache
(TraversableAmetysObject parentTagNode, Category parentTag, Map<String, Category> cache) Fill cachegetCSSUrls
(Map<String, Object> contextualParameters) Get the list of CSS urls link to the providergetRootNode
(Map<String, Object> contextualParameters) Get the root node for tagsReturns the direct children of the provider's tag.void
service
(ServiceManager smanager) Methods inherited from class org.ametys.cms.tag.jcr.AbstractJCRTagProvider
_getCache, _getOrCreateNode, clearCache, configure, contextualize, getTag, getTags, hasTag
Methods inherited from class org.ametys.cms.tag.AbstractTagProvider
configureDescription, configureLabel, getDescription, getId, getLabel, getPluginName, setPluginInfo
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
PROJECT_PLUGIN_NODE_NAME
Constant for plugin node name- See Also:
-
_resolver
The ametys object resolver -
_projectTagProviderEP
The projet tag provider extension point -
_colorsComponent
The colors component
-
-
Constructor Details
-
CategoryJCRProvider
public CategoryJCRProvider()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
_fillCache
protected void _fillCache(TraversableAmetysObject parentTagNode, Category parentTag, Map<String, Category> cache) throws javax.jcr.RepositoryExceptionDescription copied from class:AbstractJCRTagProvider
Fill cache- Specified by:
_fillCache
in classAbstractJCRTagProvider<Category>
- Parameters:
parentTagNode
- The parent tag nodeparentTag
- The parent tagcache
- The cache- Throws:
javax.jcr.RepositoryException
- If an error occurred
-
getRootNode
public ModifiableTraversableAmetysObject getRootNode(Map<String, Object> contextualParameters) throws javax.jcr.RepositoryExceptionDescription copied from class:AbstractJCRTagProvider
Get the root node for tags- Specified by:
getRootNode
in classAbstractJCRTagProvider<Category>
- Parameters:
contextualParameters
- The contextual parameters- Returns:
- The root node
- Throws:
javax.jcr.RepositoryException
- if an error occurred
-
getTags
Description copied from interface:TagProvider
Returns the direct children of the provider's tag.- Specified by:
getTags
in interfaceTagProvider<Category>
- Parameters:
tagID
- The tag namecontextualParameters
- contextual parameters- Returns:
- the provider's tag.
-
getCSSUrls
Description copied from interface:TagProvider
Get the list of CSS urls link to the provider- Specified by:
getCSSUrls
in interfaceTagProvider<Category>
- Overrides:
getCSSUrls
in classAbstractTagProvider<Category>
- Parameters:
contextualParameters
- contextual parameters- Returns:
- the list of CSS urls
-