Class DefaultGalleryViewController

    • Constructor Detail

      • DefaultGalleryViewController

        public DefaultGalleryViewController​(@Nonnull
                                            NodeContainerView view,
                                            @Nonnull
                                            SiteNode siteNode,
                                            @Nonnull
                                            RequestLocaleManager requestLocaleManager,
                                            @Nonnull
                                            org.springframework.beans.factory.BeanFactory beanFactory)
    • Method Detail

      • initialize

        public void initialize()
                        throws java.lang.Exception
        Initializes the component. If the class has a superclass, remember to call super.initialize(). This method must execute quickly, as it is called whenever a new instance is created - consider that some components, such as the one rendering a site map, are likely to instantiate lots of controllers.
        Specified by:
        initialize in interface ViewController
        Throws:
        java.lang.Exception - in case of problems
      • findVirtualSiteNodes

        @Nonnull
        public it.tidalwave.util.Finder<SiteNode> findVirtualSiteNodes()
        Controllers which manage composite site nodes must override this method and return a collection of SiteNodes, one for each composite content. For instance, the controller of a gallery should return the relative paths of all the media pages in the gallery; the controller of a blog should return the relative paths of all the posts. See VirtualSiteNode for a convenient implementation of SiteNode to return.
        Specified by:
        findVirtualSiteNodes in interface ViewController
        Returns:
        the virtual nodes
        See Also:
        VirtualSiteNode