Package org.opencms.ade.sitemap.shared
Class CmsSitemapCategoryData
java.lang.Object
org.opencms.ade.sitemap.shared.CmsSitemapCategoryData
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
public class CmsSitemapCategoryData
extends Object
implements com.google.gwt.user.client.rpc.IsSerializable
The category data for the current sitemap.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(CmsCategoryTreeEntry item) Adds a new category entry.com.google.common.collect.Multimap<Boolean,
CmsCategoryTreeEntry> Gets a multimap of the top-level entries, indexed by whether they are local categories or not.getEntryById
(CmsUUID id) Gets the category bean by id.void
setBasePath
(String basePath) Sets the base path.
-
Constructor Details
-
CmsSitemapCategoryData
public CmsSitemapCategoryData()Default constructor.
-
-
Method Details
-
getEntriesIndexedByLocality
public com.google.common.collect.Multimap<Boolean,CmsCategoryTreeEntry> getEntriesIndexedByLocality()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
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
Sets the base path.- Parameters:
basePath
- the base path