Package org.opencms.ui.sitemap
Class CmsSitemapTreeNodeData
java.lang.Object
org.opencms.ui.sitemap.CmsSitemapTreeNodeData
Represents the data of a sitemap tree node.
-
Constructor Summary
ConstructorDescriptionCmsSitemapTreeNodeData
(Locale mainLocale, Locale otherLocale) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionGets the client sitemap entry.Gets the linked resource.Gets the sitemap entry resource.boolean
Returns true if the node definitely has no children to load.void
initialize
(CmsObject cms) Initializes the bean.boolean
Returns true if the 'Copy page' function should be offered for this entry.boolean
Returns true if the linked resource is directly linked.boolean
isLinked()
Returns true if this sitemap entry has a linked resource.boolean
isMarkedNoTranslation
(Locale locale) Checks if this entry is marked as 'do not translate' for the given locale .void
Sets the client entry.void
setHasNoChildren
(boolean b) Sets the 'has no children' flag.
-
Constructor Details
-
CmsSitemapTreeNodeData
Creates a new instance.- Parameters:
mainLocale
- the main localeotherLocale
- the other locale
-
-
Method Details
-
getClientEntry
Gets the client sitemap entry.- Returns:
- the client sitemap entry
-
getLinkedResource
Gets the linked resource.- Returns:
- the linked resource
-
getResource
Gets the sitemap entry resource.- Returns:
- the resource
-
hasNoChildren
Returns true if the node definitely has no children to load.- Returns:
- true if there are definitely no children to load
-
initialize
Initializes the bean.- Parameters:
cms
- the CMS context to use- Throws:
CmsException
- if something goes wrong
-
isCopyable
Returns true if the 'Copy page' function should be offered for this entry.- Returns:
- true if the 'copy pgae' function should be available
-
isDirectLink
Returns true if the linked resource is directly linked.- Returns:
- true if the linked resource is directly linked
-
isLinked
Returns true if this sitemap entry has a linked resource.- Returns:
- true if there is a linked resource
-
isMarkedNoTranslation
Checks if this entry is marked as 'do not translate' for the given locale .- Parameters:
locale
- the locale- Returns:
- true if the 'do not translate' mark for the given locale is set
-
setHasNoChildren
Sets the 'has no children' flag.- Parameters:
b
- the new value
-