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
public class TagsDAO extends AbstractTagsDAO
DAO for manipulating tags
-
-
Field Summary
Fields Modifier and Type Field Description protected TagTargetTypeExtensionPoint
_targetTypeEP
Target typesstatic String
ROLE
The Avalon rolestatic String
TARGET_TYPE_ATTRIBUTE_NAME
The attribute name for the target type-
Fields inherited from class org.ametys.cms.tag.AbstractTagsDAO
_i18nUtils, _tagProviderExtPt
-
-
Constructor Summary
Constructors Constructor Description TagsDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
_getFilteredTagName(TagProvider<? extends Tag> tagProvider, String tagName, Map<String,Object> otherParameters, Map<String,Object> contextualParameters)
Get filtered tag nameprotected List<TagProvider<? extends Tag>>
getCustomTagProvider()
Get the list of custom tag providerString
getTagProviderEPRole()
Get the tag provider extension point roleList<Map<String,Object>>
getTargetTypes()
Get the existing target typesvoid
service(ServiceManager manager)
-
Methods inherited from class org.ametys.cms.tag.AbstractTagsDAO
checkTags, filterTagsByRegExp, filterTagsFromListByRegExp, getFullPath, getPath, getTag, getTagPaths, getTagsTitle
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
TARGET_TYPE_ATTRIBUTE_NAME
public static final String TARGET_TYPE_ATTRIBUTE_NAME
The attribute name for the target type- See Also:
- Constant Field Values
-
_targetTypeEP
protected TagTargetTypeExtensionPoint _targetTypeEP
Target types
-
-
Constructor Detail
-
TagsDAO
public TagsDAO()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classAbstractTagsDAO
- Throws:
ServiceException
-
getTagProviderEPRole
public String 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
-
getTargetTypes
public List<Map<String,Object>> 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
protected List<TagProvider<? extends Tag>> 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
-
-