question: public void handleOrganisationUnits ( ) { if ( user != null && isOrganisationUnitMode ( OrganisationUnitSelectionMode . ACCESSIBLE ) ) { setOrganisationUnits ( user . getTeiSearchOrganisationUnitsWithFallback ( ) ) ; setOrganisationUnitMode ( OrganisationUnitSelectionMode . DESCENDANTS ) ; } else if ( isOrganisationUnitMode ( CHILDREN ) ) { Set < OrganisationUnit > organisationUnits = new HashSet < > ( getOrganisationUnits ( ) ) ; for ( OrganisationUnit organisationUnit : getOrganisationUnits ( ) ) { organisationUnits . addAll ( organisationUnit . getChildren ( ) ) ; } setOrganisationUnits ( organisationUnits ) ; setOrganisationUnitMode ( OrganisationUnitSelectionMode . SELECTED ) ; } }
target:  Prepares the organisation units of the given parameters to simplify querying. Mode ACCESSIBLE is converted to DESCENDANTS for organisation units linked to the given user, and mode CHILDREN is converted to CHILDREN for organisation units including all their children. Mode can be DESCENDANTS, SELECTED, ALL only after invoking this method.