Interface ContainerValueDataProviderFactory<T extends Containerable,C extends GuiListDataProviderType>
-
- All Known Implementing Classes:
InMemoryAssignmentDataProviderFactory
,RepositoryAssignmentDataProviderFactory
public interface ContainerValueDataProviderFactory<T extends Containerable,C extends GuiListDataProviderType>
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ContainerValueDataProviderFactory.Customization<T extends Containerable>
Allows customization of postFilter, pageStore and contentQuery for data providers
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ISelectableDataProvider<PrismContainerValueWrapper<T>>
create(org.apache.wicket.Component component, @NotNull org.apache.wicket.model.IModel<Search<T>> search, org.apache.wicket.model.IModel<List<PrismContainerValueWrapper<T>>> model, Class<? extends Objectable> objectType, String oid, ItemPath path)
Creates data provider instanceISelectableDataProvider<PrismContainerValueWrapper<T>>
create(org.apache.wicket.Component component, @NotNull org.apache.wicket.model.IModel<Search<T>> search, org.apache.wicket.model.IModel<List<PrismContainerValueWrapper<T>>> model, Class<? extends Objectable> objectType, String oid, ItemPath path, CompiledObjectCollectionView compiledObjectCollectionView, ContainerValueDataProviderFactory.Customization<T> customization)
Creates data provider instanceClass<C>
getConfigurationType()
Class<T>
getDataType()
boolean
isRepositorySearchEnabled()
default boolean
isSupported(Class<?> type)
Checks if provided type class is supported by this data provider.default <T2 extends Containerable,C2 extends GuiListDataProviderType>
ContainerValueDataProviderFactory<T2,C2>specializedFor(Class<T2> data, Class<C2> configuration)
Returns factory specialized for supplied concrete data type and configuration type.
-
-
-
Method Detail
-
getConfigurationType
Class<C> getConfigurationType()
- Returns:
- Class of supported configuration element
-
isSupported
default boolean isSupported(Class<?> type)
Checks if provided type class is supported by this data provider.- Parameters:
type
- Type to check- Returns:
- true, if data type is supported by factory
-
create
ISelectableDataProvider<PrismContainerValueWrapper<T>> create(org.apache.wicket.Component component, @NotNull @NotNull org.apache.wicket.model.IModel<Search<T>> search, org.apache.wicket.model.IModel<List<PrismContainerValueWrapper<T>>> model, Class<? extends Objectable> objectType, String oid, ItemPath path)
Creates data provider instance- Parameters:
component
- Parent componentsearch
- Search modelmodel
- List of Prism Container ValuesobjectType
- Parent object Typeoid
- Parent oidpath
- Path on which prism container values are located- Returns:
- Data Provider instance
-
create
ISelectableDataProvider<PrismContainerValueWrapper<T>> create(org.apache.wicket.Component component, @NotNull @NotNull org.apache.wicket.model.IModel<Search<T>> search, org.apache.wicket.model.IModel<List<PrismContainerValueWrapper<T>>> model, Class<? extends Objectable> objectType, String oid, ItemPath path, CompiledObjectCollectionView compiledObjectCollectionView, ContainerValueDataProviderFactory.Customization<T> customization)
Creates data provider instance- Parameters:
component
- Parent componentsearch
- Search modelmodel
- List of Prism Container ValuesobjectType
- Parent object Typeoid
- Parent oidpath
- Path on which prism container values are locatedcompiledObjectCollectionView
- Compiled Object collection viewcustomization
- Implementation of customization- Returns:
- Data Provider instance
-
isRepositorySearchEnabled
boolean isRepositorySearchEnabled()
- Returns:
- true if data provider uses repository for search
-
specializedFor
default <T2 extends Containerable,C2 extends GuiListDataProviderType> ContainerValueDataProviderFactory<T2,C2> specializedFor(Class<T2> data, Class<C2> configuration)
Returns factory specialized for supplied concrete data type and configuration type. Implementors may create new instance of factory, if provided arguments requires additional changes to creation. Default implementation just casts itself.- Type Parameters:
T2
- Final data typeC2
- Final confiugration Type- Parameters:
data
- Data Typeconfiguration
- Configuration Type- Returns:
- Specialized (casted) instance of data provider factory
-
-