@Test public void testAllMembers() throws Exception { Repository hosted1 = hostedRepository("hosted1"); Repository group1 = groupRepository("group1", hosted1); underTest.attach(group1); for (Repository repo : underTest.allMembers()) { System.out.println(repo.getName()); } assertThat(underTest.allMembers(), contains(group1, hosted1)); }
@Override public List<Repository> allMembers() { return allMembers(new ArrayList<>(), getRepository()); }
GroupFacetImpl extends FacetSupport implements GroupFacet { @Override public List<Repository> allMembers() { return allMembers(new ArrayList<>(), getRepository()); } }
GroupFacetImpl extends FacetSupport implements GroupFacet { @Override public List<Repository> allMembers() { return allMembers(new ArrayList<>(), getRepository()); } @Inject  GroupFacetImpl(final RepositoryManager repositoryManager,
                        final ConstraintViolationFactory constraintViolationFactory,
                        @Named(GroupType.NAME) final Type groupType); }
GroupFacetImpl extends FacetSupport implements GroupFacet { @Override public List<Repository> allMembers() { return allMembers(new ArrayList<>(), getRepository()); } @Inject  GroupFacetImpl(final RepositoryManager repositoryManager,
                        final ConstraintViolationFactory constraintViolationFactory,
                        @Named(GroupType.NAME) final Type groupType); @Override @Guarded(by = STARTED) boolean member(final String repositoryName); @Override @Guarded(by = STARTED) boolean member(final Repository repository); @Override @Guarded(by = STARTED) List<Repository> members(); @Override List<Repository> leafMembers(); @Override List<Repository> allMembers(); @Override void invalidateGroupCaches(); @Override boolean isStale(@Nullable final Content content); @Override void maintainCacheInfo(final AttributesMap attributesMap); }
GroupFacetImpl extends FacetSupport implements GroupFacet { @Override public List<Repository> allMembers() { return allMembers(new ArrayList<>(), getRepository()); } @Inject  GroupFacetImpl(final RepositoryManager repositoryManager,
                        final ConstraintViolationFactory constraintViolationFactory,
                        @Named(GroupType.NAME) final Type groupType); @Override @Guarded(by = STARTED) boolean member(final String repositoryName); @Override @Guarded(by = STARTED) boolean member(final Repository repository); @Override @Guarded(by = STARTED) List<Repository> members(); @Override List<Repository> leafMembers(); @Override List<Repository> allMembers(); @Override void invalidateGroupCaches(); @Override boolean isStale(@Nullable final Content content); @Override void maintainCacheInfo(final AttributesMap attributesMap); static final String CONFIG_KEY; }