Class GroupTreeResolver
java.lang.Object
org.keycloak.storage.ldap.mappers.membership.group.GroupTreeResolver
- Author:
- Marek Posolda
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionresolveGroupTree
(List<GroupTreeResolver.Group> groups, boolean ignoreMissingGroups) Fully resolves list of group trees to be used in Keycloak.
-
Constructor Details
-
GroupTreeResolver
public GroupTreeResolver()
-
-
Method Details
-
resolveGroupTree
public List<GroupTreeResolver.GroupTreeEntry> resolveGroupTree(List<GroupTreeResolver.Group> groups, boolean ignoreMissingGroups) throws GroupTreeResolver.GroupTreeResolveException Fully resolves list of group trees to be used in Keycloak. The input is group info (usually from LDAP) where each "Group" object contains just it's name and direct children. The operation also performs validation as rules for LDAP are less strict than for Keycloak (In LDAP, the recursion is possible and multiple parents of single group is also allowed)- Parameters:
groups
-ignoreMissingGroups
-- Returns:
- Throws:
GroupTreeResolver.GroupTreeResolveException
-