Package org.ametys.cms.tag
Class TagsDAO
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.ametys.cms.tag.AbstractTagsDAO
org.ametys.cms.tag.TagsDAO
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
DAO for manipulating tags
-
Field Summary
Modifier and TypeFieldDescriptionprotected JCRTagsDAO
The JCR tags DAOprotected TagTargetTypeExtensionPoint
Target typesstatic final String
The Avalon rolestatic final String
The attribute name for the target typeFields inherited from class org.ametys.cms.tag.AbstractTagsDAO
_i18nUtils, _tagProviderExtPt
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
_getFilteredTagName
(TagProvider<? extends Tag> tagProvider, String tagName, Map<String, Object> otherParameters, Map<String, Object> contextualParameters) Get filtered tag nameprotected AbstractJCRTagsDAO
Get the tag JCR DAOprotected List<TagProvider<? extends Tag>>
Get the list of custom tag providerGet the tag provider extension point roleGet the existing target typesvoid
service
(ServiceManager manager) Methods inherited from class org.ametys.cms.tag.AbstractTagsDAO
_tagsToJSON, _tagToJSON, addTags, checkTags, filterTagsByRegExp, filterTagsFromListByRegExp, getFullPath, getPath, getTag, getTagPaths, getTagsTitle, tagToJSON
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
ROLE
The Avalon role -
TARGET_TYPE_ATTRIBUTE_NAME
The attribute name for the target type- See Also:
-
_targetTypeEP
Target types -
_jcrTagsDAO
The JCR tags DAO
-
-
Constructor Details
-
TagsDAO
public TagsDAO()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classAbstractTagsDAO
- Throws:
ServiceException
-
getTagProviderEPRole
Description copied from class:AbstractTagsDAO
Get the tag provider extension point role- Specified by:
getTagProviderEPRole
in classAbstractTagsDAO
- Returns:
- the tag provider extension point role
-
_getTagJCRDAO
Description copied from class:AbstractTagsDAO
Get the tag JCR DAO- Specified by:
_getTagJCRDAO
in classAbstractTagsDAO
- Returns:
- the tag JCR DAO
-
getTargetTypes
Get the existing target types- Returns:
- the target types
-
_getFilteredTagName
protected String _getFilteredTagName(TagProvider<? extends Tag> tagProvider, String tagName, Map<String, Object> otherParameters, Map<String, Object> contextualParameters) Description copied from class:AbstractTagsDAO
Get filtered tag name- Overrides:
_getFilteredTagName
in classAbstractTagsDAO
- Parameters:
tagProvider
- the tag providertagName
- the tag nameotherParameters
- the other parameterscontextualParameters
- the contextual parameters- Returns:
- the tag name if it match
-
getCustomTagProvider
Description copied from class:AbstractTagsDAO
Get the list of custom tag provider- Specified by:
getCustomTagProvider
in classAbstractTagsDAO
- Returns:
- the list of custom tag provider
-