Interface MembershipHierarchyService
- All Known Implementing Classes:
MembershipHierarchyServiceImpl
public interface MembershipHierarchyService
-
Method Summary
Modifier and TypeMethodDescriptiongetChildAddressSet
(Entity sourceAddress) Get the pks of all addresses that are below the given address in the hierarchy (including the given address)getParentAddressList
(Entity sourceAddress) Get all addresses that are above the given address in the hierarchy (including the given address) If any address in a given hierarchy has multiple parents this method will throw a runtime exception.void
Call Action to recalculate hierarchies on all addresses Call Syntax: nice2_optional_membershiphierarchy_MembershipHierarchyService.migrateHierarchies This method callssubmitRecalculateHierarchiesTask(Set)
with all address keysvoid
submitRecalculateHierarchiesTask
(Set<PrimaryKey> addressKeys) Initialises the RecalculateHierarchyTask and submits it into the task queue
-
Method Details
-
getParentAddressList
Get all addresses that are above the given address in the hierarchy (including the given address) If any address in a given hierarchy has multiple parents this method will throw a runtime exception. -
getChildAddressSet
Get the pks of all addresses that are below the given address in the hierarchy (including the given address) -
submitRecalculateHierarchiesTask
Initialises the RecalculateHierarchyTask and submits it into the task queue -
migrateHierarchies
void migrateHierarchies()Call Action to recalculate hierarchies on all addresses Call Syntax: nice2_optional_membershiphierarchy_MembershipHierarchyService.migrateHierarchies This method callssubmitRecalculateHierarchiesTask(Set)
with all address keys
-