@Test public void testGetMembership() throws Exception { User user = createUser(); Group g = createGroup(); Group member = createGroup(); Group member2 = createGroup(); g.addMember(member); member.addMember(member2); member2.addMember(user); root.commit(); Iterator<String> res = mp.getMembership(getTree(user), false); assertEquals(1, Iterators.size(res)); }
@NotNull Iterator<String> getMembership(@NotNull Tree authorizableTree, final boolean includeInherited) { return getMembership(authorizableTree, includeInherited, new HashSet<>()); }
MembershipProvider extends AuthorizableBaseProvider { @NotNull Iterator<String> getMembership(@NotNull Tree authorizableTree, final boolean includeInherited) { return getMembership(authorizableTree, includeInherited, new HashSet<>()); } }
MembershipProvider extends AuthorizableBaseProvider { @NotNull Iterator<String> getMembership(@NotNull Tree authorizableTree, final boolean includeInherited) { return getMembership(authorizableTree, includeInherited, new HashSet<>()); } MembershipProvider(@NotNull Root root, @NotNull ConfigurationParameters config); }
MembershipProvider extends AuthorizableBaseProvider { @NotNull Iterator<String> getMembership(@NotNull Tree authorizableTree, final boolean includeInherited) { return getMembership(authorizableTree, includeInherited, new HashSet<>()); } MembershipProvider(@NotNull Root root, @NotNull ConfigurationParameters config);  }
MembershipProvider extends AuthorizableBaseProvider { @NotNull Iterator<String> getMembership(@NotNull Tree authorizableTree, final boolean includeInherited) { return getMembership(authorizableTree, includeInherited, new HashSet<>()); } MembershipProvider(@NotNull Root root, @NotNull ConfigurationParameters config);   }