Package org.kuali.coeus.common.api.unit
Interface UnitRepositoryService
public interface UnitRepositoryService
-
Method Summary
Modifier and TypeMethodDescriptionFinds the top unit in the hierarchy.findUnitByUnitNumber(String unitNumber) Finds a unit by unit number.
-
Method Details
-
findUnitByUnitNumber
Finds a unit by unit number. The unit number cannot be blank.- Parameters:
unitNumber- the unit number. Cannot be blank.- Returns:
- the unit or null if not found.
- Throws:
IllegalArgumentException- if the unitNumber is blank
-
findTopUnit
UnitContract findTopUnit()Finds the top unit in the hierarchy.- Returns:
- the unit or null if not found.
-