Package org.ametys.cms.tag
Class GroupTagProvider<T extends CMSTag>
- Type Parameters:
T
- the tag class
- All Implemented Interfaces:
TagProvider<CMSTag>
,PluginAware
,Configurable
,LogEnabled
,Serviceable
- Direct Known Subclasses:
GroupTagProvider
public class GroupTagProvider<T extends CMSTag>
extends AbstractTagProvider<CMSTag>
implements Serviceable
Class representing a group tag provider.
-
Field Summary
Modifier and TypeFieldDescriptionprotected GroupDirectoryContextHelper
The group directory context helperprotected GroupDirectoryDAO
The group directory DAOprotected GroupManager
The group managerprotected TagTargetTypeExtensionPoint
The tag target type extension pointstatic final String
The Avalon roleFields inherited from class org.ametys.cms.tag.AbstractTagProvider
_description, _featureName, _id, _label, _pluginName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the set of context to get group directoriesgetGroupDirectoryTagId
(String groupDirectoryTagId) Get tag id if from group directorygetGroupTagId
(String groupDirectoryTagId, GroupIdentity groupIdentity) Get tag id if from the group and its group directoryReturns the provider's tag.Returns the direct children of the provider's tag.Returns the provider's tags.boolean
Determines if the tag exists.void
service
(ServiceManager manager) Methods inherited from class org.ametys.cms.tag.AbstractTagProvider
configure, configureDescription, configureLabel, getDescription, getId, getLabel, getPluginName, setPluginInfo
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
ROLE
The Avalon role -
_groupManager
The group manager -
_groupDirectoryDAO
The group directory DAO -
_targetTypeEP
The tag target type extension point -
_groupDirectoryContextHelper
The group directory context helper
-
-
Constructor Details
-
GroupTagProvider
public GroupTagProvider()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
getTags
Description copied from interface:TagProvider
Returns the provider's tags.- Specified by:
getTags
in interfaceTagProvider<T extends CMSTag>
- Parameters:
contextualParameters
- contextual parameters- Returns:
- the provider's tags.
-
getTag
Description copied from interface:TagProvider
Returns the provider's tag.- Specified by:
getTag
in interfaceTagProvider<T extends CMSTag>
- Parameters:
tagName
- The tag namecontextualParameters
- contextual parameters- Returns:
- the provider's tag.
-
getTags
Description copied from interface:TagProvider
Returns the direct children of the provider's tag.- Specified by:
getTags
in interfaceTagProvider<T extends CMSTag>
- Parameters:
tagName
- The tag namecontextualParameters
- contextual parameters- Returns:
- the provider's tag.
-
hasTag
Description copied from interface:TagProvider
Determines if the tag exists.- Specified by:
hasTag
in interfaceTagProvider<T extends CMSTag>
- Parameters:
tagName
- The tag unique namecontextualParameters
- contextual parameters- Returns:
- true if the tag exists.
-
_getContexts
Get the set of context to get group directories- Returns:
- the set of context
-
getGroupDirectoryTagId
Get tag id if from group directory- Parameters:
groupDirectoryTagId
- the group directory id- Returns:
- the tag id
-
getGroupTagId
Get tag id if from the group and its group directory- Parameters:
groupDirectoryTagId
- the group directory tag idgroupIdentity
- the group identity- Returns:
- the tag id
-