@Test(expected = IllegalStateException.class) public void testMembersInternalError() { throwing.members(); }
@NotNull @Override public Enumeration<? extends Principal> members() { final Iterator<Authorizable> members; try { members = getMembers(); } catch (RepositoryException e) { String msg = "Unable to retrieve Group members: " + e.getMessage(); log.error(msg); throw new IllegalStateException(msg, e); } Iterator<Principal> principals = Iterators.transform(members, authorizable -> { if (authorizable == null) { return null; } try { return authorizable.getPrincipal(); } catch (RepositoryException e) { String msg = "Internal error while retrieving principal: " + e.getMessage(); log.error(msg); throw new IllegalStateException(msg, e); } }); return Iterators.asEnumeration(Iterators.filter(principals, Predicates.<Object>notNull())); }
AbstractGroupPrincipal extends TreeBasedPrincipal implements GroupPrincipal { @NotNull @Override public Enumeration<? extends Principal> members() { final Iterator<Authorizable> members; try { members = getMembers(); } catch (RepositoryException e) { String msg = "Unable to retrieve Group members: " + e.getMessage(); log.error(msg); throw new IllegalStateException(msg, e); } Iterator<Principal> principals = Iterators.transform(members, authorizable -> { if (authorizable == null) { return null; } try { return authorizable.getPrincipal(); } catch (RepositoryException e) { String msg = "Internal error while retrieving principal: " + e.getMessage(); log.error(msg); throw new IllegalStateException(msg, e); } }); return Iterators.asEnumeration(Iterators.filter(principals, Predicates.<Object>notNull())); } }
AbstractGroupPrincipal extends TreeBasedPrincipal implements GroupPrincipal { @NotNull @Override public Enumeration<? extends Principal> members() { final Iterator<Authorizable> members; try { members = getMembers(); } catch (RepositoryException e) { String msg = "Unable to retrieve Group members: " + e.getMessage(); log.error(msg); throw new IllegalStateException(msg, e); } Iterator<Principal> principals = Iterators.transform(members, authorizable -> { if (authorizable == null) { return null; } try { return authorizable.getPrincipal(); } catch (RepositoryException e) { String msg = "Internal error while retrieving principal: " + e.getMessage(); log.error(msg); throw new IllegalStateException(msg, e); } }); return Iterators.asEnumeration(Iterators.filter(principals, Predicates.<Object>notNull())); } AbstractGroupPrincipal(@NotNull String principalName, @NotNull Tree groupTree, @NotNull NamePathMapper namePathMapper);   AbstractGroupPrincipal(@NotNull String principalName, @NotNull String groupPath, @NotNull NamePathMapper namePathMapper); }
AbstractGroupPrincipal extends TreeBasedPrincipal implements GroupPrincipal { @NotNull @Override public Enumeration<? extends Principal> members() { final Iterator<Authorizable> members; try { members = getMembers(); } catch (RepositoryException e) { String msg = "Unable to retrieve Group members: " + e.getMessage(); log.error(msg); throw new IllegalStateException(msg, e); } Iterator<Principal> principals = Iterators.transform(members, authorizable -> { if (authorizable == null) { return null; } try { return authorizable.getPrincipal(); } catch (RepositoryException e) { String msg = "Internal error while retrieving principal: " + e.getMessage(); log.error(msg); throw new IllegalStateException(msg, e); } }); return Iterators.asEnumeration(Iterators.filter(principals, Predicates.<Object>notNull())); } AbstractGroupPrincipal(@NotNull String principalName, @NotNull Tree groupTree, @NotNull NamePathMapper namePathMapper);   AbstractGroupPrincipal(@NotNull String principalName, @NotNull String groupPath, @NotNull NamePathMapper namePathMapper); @Override boolean isMember(@NotNull Principal principal); @NotNull @Override Enumeration<? extends Principal> members(); }
AbstractGroupPrincipal extends TreeBasedPrincipal implements GroupPrincipal { @NotNull @Override public Enumeration<? extends Principal> members() { final Iterator<Authorizable> members; try { members = getMembers(); } catch (RepositoryException e) { String msg = "Unable to retrieve Group members: " + e.getMessage(); log.error(msg); throw new IllegalStateException(msg, e); } Iterator<Principal> principals = Iterators.transform(members, authorizable -> { if (authorizable == null) { return null; } try { return authorizable.getPrincipal(); } catch (RepositoryException e) { String msg = "Internal error while retrieving principal: " + e.getMessage(); log.error(msg); throw new IllegalStateException(msg, e); } }); return Iterators.asEnumeration(Iterators.filter(principals, Predicates.<Object>notNull())); } AbstractGroupPrincipal(@NotNull String principalName, @NotNull Tree groupTree, @NotNull NamePathMapper namePathMapper);   AbstractGroupPrincipal(@NotNull String principalName, @NotNull String groupPath, @NotNull NamePathMapper namePathMapper); @Override boolean isMember(@NotNull Principal principal); @NotNull @Override Enumeration<? extends Principal> members();  }