Class SingleVariantProvider

  • All Implemented Interfaces:
    Serializable, org.apache.wicket.model.IDetachable, org.apache.wicket.model.IModel<List<javax.jcr.Node>>, org.apache.wicket.util.io.IClusterable

    public class SingleVariantProvider
    extends org.apache.wicket.model.LoadableDetachableModel<List<javax.jcr.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:
    Serialized Form
    • Constructor Detail

      • SingleVariantProvider

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

      • load

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

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