Class CountableLoadableModel<T>

java.lang.Object
com.evolveum.midpoint.gui.api.model.LoadableModel<List<T>>
com.evolveum.midpoint.gui.api.model.CountableLoadableModel<T>
All Implemented Interfaces:
Serializable, org.apache.wicket.model.IDetachable, org.apache.wicket.model.IModel<List<T>>, org.apache.wicket.util.io.IClusterable

public abstract class CountableLoadableModel<T> extends LoadableModel<List<T>>
A loadable model of a list that knows how to provide count of list items without having to retrieve the actual data. Useful e.g. to implement MID-3938 (Optimize midPoint for many focus assignments).
See Also:
  • Constructor Details

    • CountableLoadableModel

      public CountableLoadableModel()
    • CountableLoadableModel

      public CountableLoadableModel(boolean alwaysReload)
  • Method Details

    • count

      public int count()
    • countInternal

      public int countInternal()