OrganisationUnitTree

Properties

Link copied to clipboard
val DELIMITER: String = "/"

Functions

Link copied to clipboard
open fun findRoots(organisationUnits: List<OrganisationUnit>): Set<OrganisationUnit>
Extract a set of root uid's of OrganisationUnits, accessible by the user, from a list of OrganisationUnits and a list of Assigned OrganisationUnits.
Link copied to clipboard
open fun findRootsOutsideSearchScope(allRootCaptureOrgUnits: Set<OrganisationUnit>, rootSearchOrgUnits: Set<OrganisationUnit>): Set<OrganisationUnit>
Link copied to clipboard
open fun getCaptureOrgUnitsInSearchScope(allSearchOrgUnits: List<OrganisationUnit>, allRootCaptureOrgUnits: Set<OrganisationUnit>, rootCaptureOrgUnitsOutsideSearchScope: Set<OrganisationUnit>): Set<OrganisationUnit>