Class SingleVariantProvider

java.lang.Object
org.apache.wicket.model.LoadableDetachableModel<List<Node>>
org.hippoecm.frontend.plugins.standards.list.SingleVariantProvider
All Implemented Interfaces:
Serializable, org.apache.wicket.model.IDetachable, org.apache.wicket.model.IModel<List<Node>>, org.apache.wicket.util.io.IClusterable

public class SingleVariantProvider extends org.apache.wicket.model.LoadableDetachableModel<List<Node>>
Load a single representative for each set of variants of a document. Different documents can share a name, so the comparison is based on the handle that contains the variants. The first document (lowest sns index in resultset) is used.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    SingleVariantProvider(org.apache.wicket.model.IModel<Iterator> documents)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected List<Node>
     
    protected void
     

    Methods inherited from class org.apache.wicket.model.LoadableDetachableModel

    detach, getObject, isAttached, of, onAttach, setObject, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.wicket.model.IModel

    as, combineWith, filter, flatMap, isPresent, map, orElse, orElseGet
  • Constructor Details

    • SingleVariantProvider

      public SingleVariantProvider(org.apache.wicket.model.IModel<Iterator> documents)
  • Method Details

    • load

      protected List<Node> load()
      Specified by:
      load in class org.apache.wicket.model.LoadableDetachableModel<List<Node>>
    • onDetach

      protected void onDetach()
      Overrides:
      onDetach in class org.apache.wicket.model.LoadableDetachableModel<List<Node>>