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
-
Constructor Summary
ConstructorDescriptionRepoAssignmentListProvider
(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) void
detach()
protected QName
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 implementedgetType()
Iterator<? extends PrismContainerValueWrapper<AssignmentType>>
internalIterator
(long first, long count) protected int
protected List<PrismContainerValueWrapper<AssignmentType>>
postFilter
(List<PrismContainerValueWrapper<AssignmentType>> assignmentList) protected ObjectFilter
protected void
postProcessWrapper
(PrismContainerValueWrapper<AssignmentType> valueWrapper) Methods inherited from class com.evolveum.midpoint.gui.impl.component.data.provider.ContainerListDataProvider
doRepositoryIteration
Methods inherited from class com.evolveum.midpoint.gui.impl.component.data.provider.BaseSearchDataProvider
addQueryVariables, getCompiledObjectCollectionView, getCustomizeContentQuery, getSearchModel, getVariables, setCompiledObjectCollectionView, setupUserFriendlyMessage, size
Methods 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, setQuery
Methods inherited from class org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider
getSort, getSortState, setSort, setSort
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.wicket.markup.repeater.data.IDataProvider
iterator, model, size
Methods inherited from interface com.evolveum.midpoint.gui.api.component.data.provider.ISelectableDataProvider
setQuery
Methods 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:
getType
in 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:
internalIterator
in classContainerListDataProvider<AssignmentType>
-
internalSize
protected int internalSize()- Overrides:
internalSize
in classContainerListDataProvider<AssignmentType>
-
createWrapper
protected PrismContainerValueWrapper<AssignmentType> createWrapper(AssignmentType object, com.evolveum.midpoint.task.api.Task task, OperationResult result) throws SchemaException - Overrides:
createWrapper
in 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:BaseSortableDataProvider
Could be overridden in subclasses.- Overrides:
createObjectOrderings
in 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:
getQuery
in classBaseSearchDataProvider<AssignmentType,
PrismContainerValueWrapper<AssignmentType>>
-
determineTargetRefType
-
detach
public void detach()- Specified by:
detach
in interfaceorg.apache.wicket.markup.repeater.data.IDataProvider<PrismContainerValueWrapper<AssignmentType>>
- Specified by:
detach
in interfaceorg.apache.wicket.model.IDetachable
- Overrides:
detach
in classContainerListDataProvider<AssignmentType>
-