public interface OrgUnitHierarchyService
path attribute of
OrgUnitModel objects. The path attribute of an OrgUnitModel is a flat
String representation of the path of traversal to reach the unit from the root of its organization and
contains the UIDs of all units on this path separated by a delimiter.| Modifier and Type | Method and Description |
|---|---|
<T extends OrgUnitModel> |
generateUnitPaths(java.lang.Class<T> unitType)
Generates the
path value of all OrgUnitModel objects of the given unit type. |
void |
saveChangesAndUpdateUnitPath(OrgUnitModel unit)
Saves all changes to the given
OrgUnitModel and updates its path value as well as the
path values for all its descendants of the same type subsequently. |
<T extends OrgUnitModel> void generateUnitPaths(java.lang.Class<T> unitType)
path value of all OrgUnitModel objects of the given unit type. The
process starts with the root units, i.e. the ones that don't have a parent of the same type, and will traverse the
hierarchy tree for each of them. All changes to affected items are persisted.unitType - Determines the type to generate path values for. Sub-types will be ignored. May not be
null.java.lang.IllegalArgumentException - In case the passed unitType is null.OrgUnitHierarchyException - In case inconsistencies are discovered during the path generation process or the process failed for
other reasons.void saveChangesAndUpdateUnitPath(OrgUnitModel unit)
OrgUnitModel and updates its path value as well as the
path values for all its descendants of the same type subsequently. All changes to affected
items are persisted.unit - The OrgUnitModel to update. May not be null.java.lang.IllegalArgumentException - In case the passed unit is null.OrgUnitHierarchyException - In case inconsistencies are discovered during the path generation process or the process failed for
other reasons.Copyright © 2018 SAP SE. All Rights Reserved.