public static List < Entry > roleStructure ( Role role ) { List < Entry > entryList = new LinkedList <> ( ) ; entryList . add ( namedObject ( DnFactory . role ( role ) ) ) ; entryList . addAll ( createRolePermissionsEntries ( role ) ) ; entryList . addAll ( createRoleSubrolesEntries ( role ) ) ; return entryList ; }
Returns a list of entries representing a role . The list should not be reordered since its order follows the tree structure of the DIT . It can be inserted into the DIT right away .