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
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 Summary
-
Method Summary
Methods inherited from class com.evolveum.midpoint.gui.api.model.LoadableModel
create, detach, getNestedModel, getObject, isLoaded, load, onDetach, onLoad, reset, revive, 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
-
CountableLoadableModel
public CountableLoadableModel() -
CountableLoadableModel
public CountableLoadableModel(boolean alwaysReload)
-
-
Method Details
-
count
public int count() -
countInternal
public int countInternal()
-