Class NotFoundPageServiceImpl

java.lang.Object
ch.tocco.nice2.optional.cms.impl.publish.exception.notfound.NotFoundPageServiceImpl
All Implemented Interfaces:
NotFoundPageService

@Component public class NotFoundPageServiceImpl extends Object implements NotFoundPageService
  • Constructor Details

    • NotFoundPageServiceImpl

      public NotFoundPageServiceImpl()
  • Method Details

    • getNotFoundPage

      public Optional<PageNode> getNotFoundPage(ContentTreeNode fallbackNode)
      Description copied from interface: NotFoundPageService
      Resolve the notfound page for any fallback node. You can pass any ContentTreeNode. Then the root node of this ContentTreeNode is resolved. If the root node is a CmsDomainNode, the notfound page that is selected on the domain will be returned.
      Specified by:
      getNotFoundPage in interface NotFoundPageService
      Parameters:
      fallbackNode - Any ContentTreeNode.
      Returns:
      the notfound page that is selected on the domain.