Class ThemesDAO
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.ametys.cms.tag.AbstractTagsDAO
org.ametys.plugins.glossary.theme.ThemesDAO
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
DAO for manipulating themes
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JCRThemesDAO
The JCR Themes DAOstatic final String
The avalon roleFields inherited from class org.ametys.cms.tag.AbstractTagsDAO
_i18nUtils, _tagProviderExtPt
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractJCRTagsDAO
Get the tag JCR DAOprotected List<TagProvider<? extends Tag>>
Get the list of custom tag providerGet the tag provider extension point rolegetThemeTitle
(String themeName, String siteName, String language) Get theme's title from its namevoid
service
(ServiceManager manager) boolean
themeExists
(String themeName, String siteName, String language) Verify the existence of a themeMethods inherited from class org.ametys.cms.tag.AbstractTagsDAO
_getFilteredTagName, _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 -
_jcrThemesDAO
The JCR Themes DAO
-
-
Constructor Details
-
ThemesDAO
public ThemesDAO()
-
-
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
-
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
-
getThemeTitle
Get theme's title from its name- Parameters:
themeName
- the theme namesiteName
- the site's namelanguage
- the site's language- Returns:
- the title of the theme. Null if the theme doesn't exist
-
themeExists
Verify the existence of a theme- Parameters:
themeName
- the id of the theme to verifysiteName
- the site's namelanguage
- the site's language- Returns:
- true if the theme exists, false otherwise
-