public class CmsSitemapTreeNodeData extends java.lang.Object
Constructor and Description |
---|
CmsSitemapTreeNodeData(java.util.Locale mainLocale,
java.util.Locale otherLocale)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
CmsClientSitemapEntry |
getClientEntry()
Gets the client sitemap entry.
|
CmsResource |
getLinkedResource()
Gets the linked resource.
|
CmsResource |
getResource()
Gets the sitemap entry resource.
|
boolean |
hasNoChildren()
Returns true if the node definitely has no children to load.
|
void |
initialize(CmsObject cms)
Initializes the bean.
|
boolean |
isCopyable()
Returns true if the 'Copy page' function should be offered for this entry.
|
boolean |
isDirectLink()
Returns true if the linked resource is directly linked.
|
boolean |
isLinked()
Returns true if this sitemap entry has a linked resource.
|
boolean |
isMarkedNoTranslation(java.util.Locale locale)
Checks if this entry is marked as 'do not translate' for the given locale .
|
void |
setClientEntry(CmsClientSitemapEntry entry)
Sets the client entry.
|
void |
setHasNoChildren(boolean b)
Sets the 'has no children' flag.
|
public CmsSitemapTreeNodeData(java.util.Locale mainLocale, java.util.Locale otherLocale)
mainLocale
- the main localeotherLocale
- the other localepublic CmsClientSitemapEntry getClientEntry()
public CmsResource getLinkedResource()
public CmsResource getResource()
public boolean hasNoChildren()
public void initialize(CmsObject cms) throws CmsException
cms
- the CMS context to useCmsException
- if something goes wrongpublic boolean isCopyable()
public boolean isDirectLink()
public boolean isLinked()
public boolean isMarkedNoTranslation(java.util.Locale locale)
locale
- the localepublic void setClientEntry(CmsClientSitemapEntry entry)
entry
- the client entrypublic void setHasNoChildren(boolean b)
b
- the new value