Class CategoryCMSTag

java.lang.Object
org.ametys.cms.tag.CMSTag
org.ametys.plugins.workspaces.categories.CategoryCMSTag
All Implemented Interfaces:
Tag

public class CategoryCMSTag extends CMSTag
This class represent a project category as a CMS Tag
  • Field Details

  • Constructor Details

    • CategoryCMSTag

      public CategoryCMSTag(Category category, CMSTag parent, TagTargetType targetType)
      Constructor
      Parameters:
      category - the category
      parent - the parent CMS tag
      targetType - the target type
  • Method Details

    • getTag

      public CMSTag getTag(String tagId)
      Description copied from interface: Tag
      Try to get a child tag by its id
      Specified by:
      getTag in interface Tag
      Overrides:
      getTag in class CMSTag
      Parameters:
      tagId - The id of the child tag
      Returns:
      The child tag or null if not existing
    • getTags

      public Map<String,CMSTag> getTags()
      Description copied from interface: Tag
      Retrieves the Set of child tags
      Specified by:
      getTags in interface Tag
      Overrides:
      getTags in class CMSTag
      Returns:
      The child tags in a Map