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
public class RepoAssignmentListProvider extends ContainerListDataProvider<AssignmentType>
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.evolveum.midpoint.gui.impl.component.data.provider.BaseSortableDataProvider
BaseSortableDataProvider.CachedSize
-
-
Field Summary
Fields Modifier and Type Field Description static String
TARGET_NAME_STRING
-
Constructor Summary
Constructors Constructor Description RepoAssignmentListProvider(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected @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, Task task, OperationResult result)
void
detach()
protected QName
determineTargetRefType()
ObjectQuery
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 implementedClass<AssignmentType>
getType()
Iterator<? extends PrismContainerValueWrapper<AssignmentType>>
internalIterator(long first, long count)
protected int
internalSize()
protected List<PrismContainerValueWrapper<AssignmentType>>
postFilter(List<PrismContainerValueWrapper<AssignmentType>> assignmentList)
protected ObjectFilter
postFilterIds()
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, 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, getPageStorage, getPrismContext, getRelationRegistry, getSchemaService, getTaskManager, isDistinct, isOrderingDisabled, isSizeAvailableModel, isUseCache, iterator, model, saveProviderPaging, 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
-
-
-
-
Field Detail
-
TARGET_NAME_STRING
public static final String TARGET_NAME_STRING
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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 Detail
-
getType
public Class<AssignmentType> getType()
- Overrides:
getType
in classBaseSearchDataProvider<AssignmentType,PrismContainerValueWrapper<AssignmentType>>
-
postFilter
protected List<PrismContainerValueWrapper<AssignmentType>> postFilter(List<PrismContainerValueWrapper<AssignmentType>> assignmentList)
-
postFilterIds
protected ObjectFilter 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, Task task, OperationResult result) throws SchemaException
- Overrides:
createWrapper
in classContainerListDataProvider<AssignmentType>
- Throws:
SchemaException
-
postProcessWrapper
protected void postProcessWrapper(PrismContainerValueWrapper<AssignmentType> valueWrapper)
-
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
public ObjectQuery 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
protected QName 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 classBaseSearchDataProvider<AssignmentType,PrismContainerValueWrapper<AssignmentType>>
-
-