Class CmsSitemapTreeNodeData

    • Constructor Detail

      • CmsSitemapTreeNodeData

        public CmsSitemapTreeNodeData​(java.util.Locale mainLocale,
                                      java.util.Locale otherLocale)
        Creates a new instance.

        Parameters:
        mainLocale - the main locale
        otherLocale - the other locale
    • Method Detail

      • hasNoChildren

        public boolean hasNoChildren()
        Returns true if the node definitely has no children to load.

        Returns:
        true if there are definitely no children to load
      • isCopyable

        public boolean 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

        public boolean isDirectLink()
        Returns true if the linked resource is directly linked.

        Returns:
        true if the linked resource is directly linked
      • isLinked

        public boolean isLinked()
        Returns true if this sitemap entry has a linked resource.

        Returns:
        true if there is a linked resource
      • isMarkedNoTranslation

        public boolean isMarkedNoTranslation​(java.util.Locale locale)
        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

        public void setHasNoChildren​(boolean b)
        Sets the 'has no children' flag.

        Parameters:
        b - the new value