Class BaseSortableDataProvider<T extends Serializable>

java.lang.Object
org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider<T,String>
com.evolveum.midpoint.gui.impl.component.data.provider.BaseSortableDataProvider<T>
All Implemented Interfaces:
Serializable, org.apache.wicket.extensions.markup.html.repeater.data.sort.ISortStateLocator<String>, org.apache.wicket.extensions.markup.html.repeater.data.table.ISortableDataProvider<T,String>, org.apache.wicket.markup.repeater.data.IDataProvider<T>, org.apache.wicket.model.IDetachable, org.apache.wicket.util.io.IClusterable
Direct Known Subclasses:
ActivationContainerProvider, BaseSearchDataProvider, CertCaseDtoProvider, CertWorkItemDtoProvider, ListDataProvider, LoggedInUsersProvider, RoleMiningProvider, SelectableListDataProvider

public abstract class BaseSortableDataProvider<T extends Serializable> extends org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider<T,String>
Author:
lazyman
See Also:
  • Constructor Details

    • BaseSortableDataProvider

      public BaseSortableDataProvider(org.apache.wicket.Component component)
    • BaseSortableDataProvider

      public BaseSortableDataProvider(org.apache.wicket.Component component, boolean useCache)
    • BaseSortableDataProvider

      public BaseSortableDataProvider(org.apache.wicket.Component component, boolean useCache, boolean useDefaultSortingField)
  • Method Details

    • getDefaultSortParam

      protected String getDefaultSortParam()
    • getDefaultSortOrder

      protected org.apache.wicket.extensions.markup.html.repeater.data.sort.SortOrder getDefaultSortOrder()
    • getModelService

      protected ModelService getModelService()
    • getTaskManager

      protected com.evolveum.midpoint.task.api.TaskManager getTaskManager()
    • getPrismContext

      protected PrismContext getPrismContext()
    • getSchemaService

      protected SchemaService getSchemaService()
    • getOperationOptionsBuilder

      protected GetOperationOptionsBuilder getOperationOptionsBuilder()
    • getOperationOptionsBuilder

      protected GetOperationOptionsBuilder getOperationOptionsBuilder(Collection<SelectorOptions<GetOperationOptions>> createFrom)
    • getRelationRegistry

      protected RelationRegistry getRelationRegistry()
    • getModelInteractionService

      protected ModelInteractionService getModelInteractionService()
    • getAuditService

      protected ModelAuditService getAuditService()
    • getAvailableData

      public List<T> getAvailableData()
    • model

      public org.apache.wicket.model.IModel<T> model(T object)
    • getPageBase

      protected PageBase getPageBase()
    • getQuery

      public ObjectQuery getQuery()
    • setQuery

      public void setQuery(ObjectQuery query)
    • isSizeAvailableModel

      public org.apache.wicket.model.IModel<Boolean> isSizeAvailableModel()
      Flag method for TablePanel. If true navigation panel with paging "X to Y from Z results is shown", otherwise only "previous and next" simple paging is used.
      Returns:
      By defaults it returns true.
    • checkOrderingSettings

      protected boolean checkOrderingSettings()
    • isDistinct

      public boolean isDistinct()
    • getDefaultOptionsBuilder

      protected GetOperationOptionsBuilder getDefaultOptionsBuilder()
    • getDistinctRelatedOptions

      @NotNull protected @NotNull Collection<SelectorOptions<GetOperationOptions>> getDistinctRelatedOptions()
    • getDistinctRelatedOptionsBuilder

      @NotNull protected @NotNull GetOperationOptionsBuilder getDistinctRelatedOptionsBuilder()
    • isOrderingDisabled

      public boolean isOrderingDisabled()
    • createPaging

      protected ObjectPaging createPaging(long offset, long pageSize)
    • createObjectOrderings

      @NotNull protected @NotNull List<ObjectOrdering> createObjectOrderings(org.apache.wicket.extensions.markup.html.repeater.util.SortParam<String> sortParam)
      Could be overridden in subclasses.
    • clearCache

      public void clearCache()
    • iterator

      public Iterator<? extends T> iterator(long first, long count)
    • saveProviderPaging

      protected void saveProviderPaging(ObjectQuery query, ObjectPaging paging)
    • getPageStorage

      protected PageStorage getPageStorage()
    • internalIterator

      public abstract Iterator<? extends T> internalIterator(long first, long count)
    • size

      public long size()
    • internalSize

      protected abstract int internalSize()
    • getCachedSize

    • addCachedSize

    • setExportSize

      public void setExportSize(boolean exportSize)
    • isUseCache

      public boolean isUseCache()
    • detach

      public void detach()