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 JCRThemesDAOThe JCR Themes DAOstatic final StringThe avalon roleFields inherited from class org.ametys.cms.tag.AbstractTagsDAO
_i18nUtils, _tagProviderExtPt -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractJCRTagsDAOGet 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 namevoidservice(ServiceManager manager) booleanthemeExists(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, tagToJSONMethods 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:
servicein interfaceServiceable- Overrides:
servicein classAbstractTagsDAO- Throws:
ServiceException
-
getTagProviderEPRole
Description copied from class:AbstractTagsDAOGet the tag provider extension point role- Specified by:
getTagProviderEPRolein classAbstractTagsDAO- Returns:
- the tag provider extension point role
-
_getTagJCRDAO
Description copied from class:AbstractTagsDAOGet the tag JCR DAO- Specified by:
_getTagJCRDAOin classAbstractTagsDAO- Returns:
- the tag JCR DAO
-
getCustomTagProvider
Description copied from class:AbstractTagsDAOGet the list of custom tag provider- Specified by:
getCustomTagProviderin 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
-