Class RepoAssignmentListProvider
java.lang.Object
org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider<T,String>
com.evolveum.midpoint.gui.impl.component.data.provider.BaseSortableDataProvider<T>
com.evolveum.midpoint.gui.impl.component.data.provider.BaseSearchDataProvider<C,PrismContainerValueWrapper<C>>
com.evolveum.midpoint.gui.impl.component.data.provider.ContainerListDataProvider<AssignmentType>
com.evolveum.midpoint.gui.impl.component.data.provider.RepoAssignmentListProvider
- All Implemented Interfaces:
ISelectableDataProvider<PrismContainerValueWrapper<AssignmentType>>,Serializable,org.apache.wicket.extensions.markup.html.repeater.data.sort.ISortStateLocator<String>,org.apache.wicket.extensions.markup.html.repeater.data.table.ISortableDataProvider<PrismContainerValueWrapper<AssignmentType>,,String> org.apache.wicket.markup.repeater.data.IDataProvider<PrismContainerValueWrapper<AssignmentType>>,org.apache.wicket.model.IDetachable,org.apache.wicket.util.io.IClusterable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.evolveum.midpoint.gui.impl.component.data.provider.BaseSortableDataProvider
BaseSortableDataProvider.CachedSize -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRepoAssignmentListProvider(org.apache.wicket.Component component, @NotNull org.apache.wicket.model.IModel<Search<AssignmentType>> search, org.apache.wicket.model.IModel<List<PrismContainerValueWrapper<AssignmentType>>> model, Class<? extends Objectable> objectType, String oid, ItemPath path) -
Method Summary
Modifier and TypeMethodDescriptionprotected @NotNull List<ObjectOrdering>createObjectOrderings(org.apache.wicket.extensions.markup.html.repeater.util.SortParam<String> sortParam) Could be overridden in subclasses.protected PrismContainerValueWrapper<AssignmentType>createWrapper(AssignmentType object, com.evolveum.midpoint.task.api.Task task, OperationResult result) voiddetach()protected QNamegetQuery()Returns query for Data Provider This implementation rewrites query a bit: - Adds ownedBy filter for parent object - Optionally adds id filter if AssignmentPanel has postFilter implementedgetType()Iterator<? extends PrismContainerValueWrapper<AssignmentType>>internalIterator(long first, long count) protected intprotected List<PrismContainerValueWrapper<AssignmentType>>postFilter(List<PrismContainerValueWrapper<AssignmentType>> assignmentList) protected ObjectFilterprotected voidpostProcessWrapper(PrismContainerValueWrapper<AssignmentType> valueWrapper) Methods inherited from class com.evolveum.midpoint.gui.impl.component.data.provider.ContainerListDataProvider
doRepositoryIterationMethods inherited from class com.evolveum.midpoint.gui.impl.component.data.provider.BaseSearchDataProvider
addQueryVariables, getCompiledObjectCollectionView, getCustomizeContentQuery, getSearchModel, getVariables, setCompiledObjectCollectionView, setupUserFriendlyMessage, sizeMethods inherited from class com.evolveum.midpoint.gui.impl.component.data.provider.BaseSortableDataProvider
addCachedSize, checkOrderingSettings, clearCache, createPaging, getAuditService, getAvailableData, getCachedSize, getDefaultOptionsBuilder, getDefaultSortOrder, getDefaultSortParam, getDistinctRelatedOptions, getDistinctRelatedOptionsBuilder, getModelInteractionService, getModelService, getOperationOptionsBuilder, getOperationOptionsBuilder, getPageBase, getPrismContext, getRelationRegistry, getSchemaService, getTaskManager, isDistinct, isOrderingDisabled, isSizeAvailableModel, isUseCache, iterator, model, setExportSize, setQueryMethods inherited from class org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider
getSort, getSortState, setSort, setSortMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.wicket.markup.repeater.data.IDataProvider
iterator, model, sizeMethods inherited from interface com.evolveum.midpoint.gui.api.component.data.provider.ISelectableDataProvider
canCountBeforeExport, setQueryMethods inherited from interface org.apache.wicket.extensions.markup.html.repeater.data.sort.ISortStateLocator
getSortState
-
Field Details
-
TARGET_NAME_STRING
- See Also:
-
-
Constructor Details
-
RepoAssignmentListProvider
public RepoAssignmentListProvider(org.apache.wicket.Component component, @NotNull @NotNull org.apache.wicket.model.IModel<Search<AssignmentType>> search, org.apache.wicket.model.IModel<List<PrismContainerValueWrapper<AssignmentType>>> model, Class<? extends Objectable> objectType, String oid, ItemPath path)
-
-
Method Details
-
getType
- Overrides:
getTypein classBaseSearchDataProvider<AssignmentType,PrismContainerValueWrapper<AssignmentType>>
-
postFilter
protected List<PrismContainerValueWrapper<AssignmentType>> postFilter(List<PrismContainerValueWrapper<AssignmentType>> assignmentList) -
postFilterIds
-
internalIterator
public Iterator<? extends PrismContainerValueWrapper<AssignmentType>> internalIterator(long first, long count) - Overrides:
internalIteratorin classContainerListDataProvider<AssignmentType>
-
internalSize
protected int internalSize()- Overrides:
internalSizein classContainerListDataProvider<AssignmentType>
-
createWrapper
protected PrismContainerValueWrapper<AssignmentType> createWrapper(AssignmentType object, com.evolveum.midpoint.task.api.Task task, OperationResult result) throws SchemaException - Overrides:
createWrapperin classContainerListDataProvider<AssignmentType>- Throws:
SchemaException
-
postProcessWrapper
-
createObjectOrderings
@NotNull protected @NotNull List<ObjectOrdering> createObjectOrderings(org.apache.wicket.extensions.markup.html.repeater.util.SortParam<String> sortParam) Description copied from class:BaseSortableDataProviderCould be overridden in subclasses.- Overrides:
createObjectOrderingsin classBaseSortableDataProvider<PrismContainerValueWrapper<AssignmentType>>
-
getQuery
Returns query for Data Provider This implementation rewrites query a bit: - Adds ownedBy filter for parent object - Optionally adds id filter if AssignmentPanel has postFilter implemented- Overrides:
getQueryin classBaseSearchDataProvider<AssignmentType,PrismContainerValueWrapper<AssignmentType>>
-
determineTargetRefType
-
detach
public void detach()- Specified by:
detachin interfaceorg.apache.wicket.markup.repeater.data.IDataProvider<PrismContainerValueWrapper<AssignmentType>>- Specified by:
detachin interfaceorg.apache.wicket.model.IDetachable- Overrides:
detachin classBaseSearchDataProvider<AssignmentType,PrismContainerValueWrapper<AssignmentType>>
-