Package org.opencms.ade.galleries.shared
Class CmsSitemapEntryBean
java.lang.Object
org.opencms.gwt.shared.CmsIconBean
org.opencms.ade.galleries.shared.CmsSitemapEntryBean
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable,I_CmsGalleryTreeEntry<CmsSitemapEntryBean>,I_CmsHasIconClasses
public class CmsSitemapEntryBean
extends CmsIconBean
implements I_CmsGalleryTreeEntry<CmsSitemapEntryBean>
A sitemap entry bean.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChild(CmsSitemapEntryBean child) Adds a new child to the node.Returns the children of this entry ornullif not loaded.Gets the name which should be displayed in the widget representing this VFS entry.Gets the root path of the sitemap entry.Returns the site path of this VFS tree.Gets the site root.Returns the entry structure id.getType()Returns the type.booleanReturns if the children of this entry have been loaded.booleanisFolder()Returns the isFolder.booleanReturns if this is a hidden entry.booleanisRoot()Returns true if this entry is a top-level entry.booleanReturns true if this is a search match.voidsetChildren(List<CmsSitemapEntryBean> children) Sets the children of this entry.voidsetSearchMatch(boolean isSearchMatch) Marks this entry as a search match.voidsetSiteRoot(String siteRoot) Sets the site root for this bean.toString()Methods inherited from class org.opencms.gwt.shared.CmsIconBean
getBigIconClasses, getSmallIconClasses, setBigIconClasses, setSmallIconClasses
-
Constructor Details
-
CmsSitemapEntryBean
public CmsSitemapEntryBean(String rootPath, String sitePath, CmsUUID structureId, String title, String type, boolean isFolder, boolean isRoot, boolean isHiddenEntry) Constructor.- Parameters:
rootPath- the root pathsitePath- the site pathstructureId- the entry idtitle- the titletype- the resource typeisFolder-trueif this entry represents a folderisRoot-trueif this is a site root entryisHiddenEntry-trueif this is a hidden entry
-
CmsSitemapEntryBean
protected CmsSitemapEntryBean()Constructor for serialization only.
-
-
Method Details
-
getChildren
Returns the children of this entry ornullif not loaded.- Specified by:
getChildrenin interfaceI_CmsGalleryTreeEntry<CmsSitemapEntryBean>- Returns:
- the children of the entry
-
getDisplayName
Gets the name which should be displayed in the widget representing this VFS entry.- Returns:
- the name to display
-
getRootPath
Gets the root path of the sitemap entry.- Returns:
- the root path of the sitemap entry
-
getSitePath
Returns the site path of this VFS tree.- Returns:
- the site path
-
getSiteRoot
Gets the site root.- Returns:
- the site root
-
getStructureId
Returns the entry structure id.- Returns:
- the entry structure id
-
getType
Returns the type.- Returns:
- the type
-
hasChildren
Returns if the children of this entry have been loaded.- Returns:
trueif the children of this entry have been loaded
-
isFolder
Returns the isFolder.- Returns:
- the isFolder
-
isHiddenEntry
Returns if this is a hidden entry.- Returns:
trueif this is a hidden entry
-
isRoot
Returns true if this entry is a top-level entry.- Returns:
- true if this is a top-level entry
-
isSearchMatch
Returns true if this is a search match.- Returns:
- true if this is a search match
-
setChildren
Sets the children of this entry.- Parameters:
children- the children
-
setSearchMatch
Marks this entry as a search match.- Parameters:
isSearchMatch- true if this is a search match
-
setSiteRoot
Sets the site root for this bean.- Parameters:
siteRoot- the site root
-
toString