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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addChild
(CmsSitemapEntryBean child) Adds a new child to the node.Returns the children of this entry ornull
if 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.boolean
Returns if the children of this entry have been loaded.boolean
isFolder()
Returns the isFolder.boolean
Returns if this is a hidden entry.boolean
isRoot()
Returns true if this entry is a top-level entry.boolean
Returns true if this is a search match.void
setChildren
(List<CmsSitemapEntryBean> children) Sets the children of this entry.void
setSearchMatch
(boolean isSearchMatch) Marks this entry as a search match.void
setSiteRoot
(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
-true
if this entry represents a folderisRoot
-true
if this is a site root entryisHiddenEntry
-true
if this is a hidden entry
-
CmsSitemapEntryBean
protected CmsSitemapEntryBean()Constructor for serialization only.
-
-
Method Details
-
getChildren
Returns the children of this entry ornull
if not loaded.- Specified by:
getChildren
in 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:
true
if the children of this entry have been loaded
-
isFolder
Returns the isFolder.- Returns:
- the isFolder
-
isHiddenEntry
Returns if this is a hidden entry.- Returns:
true
if 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