Class RootOrgUnitProvider

    • Field Detail

      • ROLE

        public static final String ROLE
        Avalon role.
    • Method Detail

      • getRootId

        public String getRootId()
        Get the root id
        Returns:
        the root id
      • isRoot

        public boolean isRoot​(String id)
        Determines the given id is the root orgunit id
        Parameters:
        id - the id to test
        Returns:
        true if is root
      • isRoot

        public boolean isRoot​(OrgUnit orgUnit)
        Determines the given orgunit is the root orgunit
        Parameters:
        orgUnit - the orgunit to test
        Returns:
        true if is root
      • getChildOrgUnitIds

        public Set<StringgetChildOrgUnitIds​(String orgUnitId,
                                              boolean recursive)
        Get the child orgunits of an orgunit
        Parameters:
        orgUnitId - The identifier of the main orgunit
        recursive - true to children recursively
        Returns:
        A set containing all the child orgunit identifiers.