Class CmsSitemapCategoryData

  • All Implemented Interfaces:
    com.google.gwt.user.client.rpc.IsSerializable

    public class CmsSitemapCategoryData
    extends java.lang.Object
    implements com.google.gwt.user.client.rpc.IsSerializable
    The category data for the current sitemap.

    • Method Detail

      • add

        public void add​(CmsCategoryTreeEntry item)
        Adds a new category entry.

        Parameters:
        item - the category entry
      • getEntriesIndexedByLocality

        public com.google.common.collect.Multimap<java.lang.Boolean,​CmsCategoryTreeEntrygetEntriesIndexedByLocality()
        Gets a multimap of the top-level entries, indexed by whether they are local categories or not.

        A category counts as local if all of its parent categories are defined in the current sitemap.

        Returns:
        the multimap of entries
      • getEntryById

        public CmsCategoryTreeEntry getEntryById​(CmsUUID id)
        Gets the category bean by id.

        Parameters:
        id - a structure id
        Returns:
        the entry with the given id, or null if no such entry was found
      • setBasePath

        public void setBasePath​(java.lang.String basePath)
        Sets the base path.

        Parameters:
        basePath - the base path