Tasks data source
The tasks data source provides a list of tasks of a given type via info.magnolia.task.TasksManager. For more information, see Tasks.
The tasks data source is part of the Magnolia 6 UI framework. The
fully qualified class name is
If you work with the Magnolia 5 UI framework, see Content connector instead. |
Example definition
datasource:
class: info.magnolia.task.app.TasksDataSourceDefinition
sortBy:
mgnl:lastModified: descending # default order
List of properties
Property | Description |
---|---|
|
required Fully qualified name of the definition class. Use |
|
optional, default is Name of the data source. |
|
optional List of properties the data source sorts by. Possible values for
|
Data source components
Module component mappings can be defined in the context of the current
data source (a component section should have an id in the form of
<id>datasource-<ds-name></id>
, where <ds-name>
is configured in the
definition).
Type | Implementation | Description |
---|---|---|
|
|
Reads and writes properties from/to item in form. |
|
|
Converts path to actual item and back. |
|
|
Displays description for selected item(s) at the bottom of app. |
|
|
Checks whether item is available for interaction (selection, editing, etc). |
|
|
Observation utility wrapper used in UI framework. |
|
|
Displays items as list. |
<components>
<id>datasource-tasks</id>
<component>
<type>info.magnolia.ui.datasource.PropertySetFactory</type>
<implementation>info.magnolia.task.app.TasksPropertySetFactory</implementation>
</component>
<component>
<type>info.magnolia.ui.datasource.ItemResolver</type>
<implementation>info.magnolia.task.app.TasksItemResolver</implementation>
</component>
<component>
<type>info.magnolia.ui.contentapp.ItemDescriber</type>
<implementation>info.magnolia.task.app.TasksItemDescriber</implementation>
</component>
<component>
<type>info.magnolia.ui.contentapp.browser.ItemInteractionAvailability</type>
<implementation>info.magnolia.task.app.TaskInteractionAvailability</implementation>
</component>
<component>
<type>info.magnolia.ui.observation.DatasourceObservation</type>
<implementation>info.magnolia.task.app.TaskDataSourceObservation</implementation>
</component>
<type-mapping>
<type>info.magnolia.ui.contentapp.browser.ListPresenter</type>
<implementation>info.magnolia.task.app.TaskListPresenter</implementation>
</type-mapping>
</components>