Class ProjectTagsDAO
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.ametys.cms.tag.AbstractTagsDAO
org.ametys.plugins.workspaces.tags.ProjectTagsDAO
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
DAO for manipulating project's tags
-
Field Summary
Modifier and TypeFieldDescriptionprotected ProjectJCRTagsDAO
The project JCR tags DAOprotected ProjectManager
The project managerprotected RightManager
The right managerprotected WorkspaceModuleExtensionPoint
The workspace module extension pointstatic final String
The avalon roleFields inherited from class org.ametys.cms.tag.AbstractTagsDAO
_i18nUtils, _tagProviderExtPt
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractJCRTagsDAO
Get the tag JCR DAOprotected List<TagProvider<? extends Tag>>
Get the list of custom tag providergetProjectTags
(String moduleId, String projectName) Get existing project tagsGet the tag provider extension point rolevoid
service
(ServiceManager manager) Methods 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 -
_rightManager
The right manager -
_projectJCRDAO
The project JCR tags DAO -
_workspaceModuleEP
The workspace module extension point -
_projectManager
The project manager
-
-
Constructor Details
-
ProjectTagsDAO
public ProjectTagsDAO()
-
-
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
-
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
-
getProjectTags
Get existing project tags- Parameters:
moduleId
- the module idprojectName
- the project name- Returns:
- the tags (id and label)
-
_getTagJCRDAO
Description copied from class:AbstractTagsDAO
Get the tag JCR DAO- Specified by:
_getTagJCRDAO
in classAbstractTagsDAO
- Returns:
- the tag JCR DAO
-