Class ViewHandler

  • All Implemented Interfaces:
    Serializable

    @Named
    @RequestScoped
    public class ViewHandler
    extends Object
    implements Serializable
    The ViewHandler is a @RequestScoped CDI bean computing the result defined by a ViewController.
    Version:
    0.0.1
    Author:
    rsoika
    See Also:
    Serialized Form
    • Constructor Detail

      • ViewHandler

        public ViewHandler()
    • Method Detail

      • init

        @PostConstruct
        public void init()
      • onLoad

        public void onLoad​(ViewController viewController)
                    throws QueryException
        This method can be used in ajax forms to pre-compute the result set for further rendering.
        Parameters:
        viewController -
        Throws:
        QueryException
      • getData

        public List<ItemCollection> getData​(ViewController viewController)
                                     throws QueryException
        Returns the current view result. The returned result set is defined by the current query definition.

        The method implements a lazy loading mechanism and caches the result locally.

        Returns:
        view result
        Throws:
        QueryException