Class JCRThemeProvider
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.ametys.cms.tag.AbstractTagProvider<T>
-
- org.ametys.cms.tag.jcr.AbstractJCRTagProvider<DefaultTag>
-
- org.ametys.plugins.linkdirectory.theme.JCRThemeProvider
-
- All Implemented Interfaces:
TagProvider<DefaultTag>
,PluginAware
,Configurable
,Contextualizable
,LogEnabled
,Serviceable
public class JCRThemeProvider extends AbstractJCRTagProvider<DefaultTag> implements Serviceable
Class representing a JCR themes provider for links.
-
-
Field Summary
Fields Modifier and Type Field Description protected AmetysObjectResolver
_resolver
The ametys object resolverprotected SiteManager
_siteManager
Site Managerprotected ThemeProviderExtensionPoint
_themeProviderEP
The theme provider extension pointstatic String
LINKDIRECTORY_PLUGIN_NODE_NAME
Constant for plugin node name-
Fields 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
Constructors Constructor Description JCRThemeProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
_fillCache(TraversableAmetysObject parentTagNode, DefaultTag parentTag, Map<String,DefaultTag> cache)
Fill cacheprotected Map<String,DefaultTag>
_getCache(Map<String,Object> contextualParameters)
Get the Map of tags by their unique nameModifiableTraversableAmetysObject
getRootNode(Map<String,Object> contextualParameters)
Get the root node for tagsCollection<DefaultTag>
getTags(String tagID, Map<String,Object> contextualParameters)
Returns the direct children of the provider's tag.void
service(ServiceManager smanager)
-
Methods inherited from class org.ametys.cms.tag.jcr.AbstractJCRTagProvider
_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 Detail
-
LINKDIRECTORY_PLUGIN_NODE_NAME
public static final String LINKDIRECTORY_PLUGIN_NODE_NAME
Constant for plugin node name- See Also:
- Constant Field Values
-
_resolver
protected AmetysObjectResolver _resolver
The ametys object resolver
-
_themeProviderEP
protected ThemeProviderExtensionPoint _themeProviderEP
The theme provider extension point
-
_siteManager
protected SiteManager _siteManager
Site Manager
-
-
Constructor Detail
-
JCRThemeProvider
public JCRThemeProvider()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
_fillCache
protected void _fillCache(TraversableAmetysObject parentTagNode, DefaultTag parentTag, Map<String,DefaultTag> cache) throws RepositoryException
Description copied from class:AbstractJCRTagProvider
Fill cache- Specified by:
_fillCache
in classAbstractJCRTagProvider<DefaultTag>
- Parameters:
parentTagNode
- The parent tag nodeparentTag
- The parent tagcache
- The cache- Throws:
RepositoryException
- If an error occurred
-
_getCache
protected Map<String,DefaultTag> _getCache(Map<String,Object> contextualParameters) throws RepositoryException
Description copied from class:AbstractJCRTagProvider
Get the Map of tags by their unique name- Overrides:
_getCache
in classAbstractJCRTagProvider<DefaultTag>
- Parameters:
contextualParameters
- The contextual parameters- Returns:
- The non null cache
- Throws:
RepositoryException
- If the cache cannot be filled
-
getRootNode
public ModifiableTraversableAmetysObject getRootNode(Map<String,Object> contextualParameters) throws RepositoryException
Description copied from class:AbstractJCRTagProvider
Get the root node for tags- Specified by:
getRootNode
in classAbstractJCRTagProvider<DefaultTag>
- Parameters:
contextualParameters
- The contextual parameters- Returns:
- The root node
- Throws:
RepositoryException
- if an error occurred
-
getTags
public Collection<DefaultTag> getTags(String tagID, Map<String,Object> contextualParameters)
Description copied from interface:TagProvider
Returns the direct children of the provider's tag.- Specified by:
getTags
in interfaceTagProvider<DefaultTag>
- Parameters:
tagID
- The tag namecontextualParameters
- contextual parameters- Returns:
- the provider's tag.
-
-