@Test public void testGetParentCommunity() throws Exception { assertThat("testGetParentCommunity 0", c.getParentCommunities().size(), equalTo(0)); context.turnOffAuthorisationSystem(); Community son = communityService.create(c, context); context.restoreAuthSystemState(); assertThat("testGetParentCommunity 1", son.getParentCommunities().size(), not(0)); assertThat("testGetParentCommunity 2", son.getParentCommunities().get(0), equalTo(c)); }
public List<Community> getParentCommunities() { Community[] output = parentCommunities.toArray(new Community[] {}); Arrays.sort(output, new NameAscendingComparator()); return Arrays.asList(output); }
Community extends DSpaceObject implements DSpaceObjectLegacySupport { public List<Community> getParentCommunities() { Community[] output = parentCommunities.toArray(new Community[] {}); Arrays.sort(output, new NameAscendingComparator()); return Arrays.asList(output); } }
Community extends DSpaceObject implements DSpaceObjectLegacySupport { public List<Community> getParentCommunities() { Community[] output = parentCommunities.toArray(new Community[] {}); Arrays.sort(output, new NameAscendingComparator()); return Arrays.asList(output); } protected  Community(); }
Community extends DSpaceObject implements DSpaceObjectLegacySupport { public List<Community> getParentCommunities() { Community[] output = parentCommunities.toArray(new Community[] {}); Arrays.sort(output, new NameAscendingComparator()); return Arrays.asList(output); } protected  Community(); void removeSubCommunity(Community subCommunity); Bitstream getLogo(); Group getAdministrators(); List<Collection> getCollections(); List<Community> getSubcommunities(); List<Community> getParentCommunities(); void removeParentCommunity(Community parentCommunity); @Override boolean equals(Object other); @Override int hashCode(); @Override int getType(); @Override String getName(); @Override Integer getLegacyId(); }
Community extends DSpaceObject implements DSpaceObjectLegacySupport { public List<Community> getParentCommunities() { Community[] output = parentCommunities.toArray(new Community[] {}); Arrays.sort(output, new NameAscendingComparator()); return Arrays.asList(output); } protected  Community(); void removeSubCommunity(Community subCommunity); Bitstream getLogo(); Group getAdministrators(); List<Collection> getCollections(); List<Community> getSubcommunities(); List<Community> getParentCommunities(); void removeParentCommunity(Community parentCommunity); @Override boolean equals(Object other); @Override int hashCode(); @Override int getType(); @Override String getName(); @Override Integer getLegacyId(); static final String COPYRIGHT_TEXT; static final String INTRODUCTORY_TEXT; static final String SHORT_DESCRIPTION; static final String SIDEBAR_TEXT; }