DataSource API: Modify Data DataSources
If your DataSource takes an In
stream and changes the properties of the items forwarded it's called a Modify DataSource.
You can find some simple examples in our DataSources like the AttributeRename or AttributeFilter.
Warning
Modify DataSources are the most complex and require much more understanding of the internals of the EAV. As such, they are not a good starting point for learning how to create DataSources.
You will also need to use some internal APIs which are currently not documented.
Recommendations
- Inherit from the CustomDataSource base class
- Use
ProvideOut
and give it a lambda or method which returns the modified data - usually as RawEntity objects - If applicable, also use the
options
onProvideOut(..., options: ...)
to customize how the data is converted to IEntities. - Mark your sources in the VisualQuery Attribute as
DataSourceType.Modify
.
Read Also
- no additional information as of now
History
- Introduced ca. EAV / 2sxc v6