Gets a redirect to a default view for the data set associated with this controller.
Gets a redirect to a default view for the data set associated with this controller. Default view is flagged with "default: true". If more than one exists redirects to the first one.
The most important controller trait in Ada defining functionality of each data set, in particular its "data" presentation part.
It contains actions to handle: views (
getView,getViewElementsAndWidgetsCallback), analytics (getDistribution,calcDistribution,calcPearsonCorrelations), and exporting (exportViewRecordsAsCsv,exportTableRecordsAsJson).To access/call the actions two routes are available:
DataSetRouterandDataSetJsRouter. These can be used typically through the web context passed around as an implicit (DataSetWebContext).Handling of the access permissions and dispatching based on a provided data set id is done in
DataSetDispatcher, which by default uses a default implementationDataSetControllerImplunless specified otherwise.Note that each associated meta-data type has its own controller such as
CategoryControllerandDictionaryController, which are linked to the data set controller by a data set id.2016