Class KeywordJCRProvider
- 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.workspaces.keywords.KeywordJCRProvider
-
- All Implemented Interfaces:
TagProvider<DefaultTag>
,PluginAware
,Configurable
,Contextualizable
,LogEnabled
,Serviceable
public class KeywordJCRProvider extends AbstractJCRTagProvider<DefaultTag> implements Serviceable
Class representing a project jcr keyword provider.
-
-
Field Summary
Fields Modifier and Type Field Description protected KeywordProviderExtensionPoint
_projectTagProviderEP
The projet tag provider extension pointprotected AmetysObjectResolver
_resolver
The ametys object resolverstatic String
PROJECT_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 KeywordJCRProvider()
-
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 cacheModifiableTraversableAmetysObject
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
_getCache, _getOrCreateNode, 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
-
PROJECT_PLUGIN_NODE_NAME
public static final String PROJECT_PLUGIN_NODE_NAME
Constant for plugin node name- See Also:
- Constant Field Values
-
_resolver
protected AmetysObjectResolver _resolver
The ametys object resolver
-
_projectTagProviderEP
protected KeywordProviderExtensionPoint _projectTagProviderEP
The projet tag provider extension point
-
-
Constructor Detail
-
KeywordJCRProvider
public KeywordJCRProvider()
-
-
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
-
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.
-
-