defaultSelections

fun defaultSelections(preselectedDocuments: List<Document> = emptyList()): List<List<Int>>

Returns the default selection of solution indices for each use-case.

For each use-case, if PresentmentUseCase.allowMultiple is true, all compatible solutions from the first option are selected by default; otherwise only the first solution (0) is selected. If preselectedDocuments is non-empty, solutions matching preselectedDocuments are preferred.

Return

a list of selected solution index lists, one per use-case.

Parameters

preselectedDocuments

either empty or a list of documents the user already selected.