@Test public void testDeleteParents() throws Exception { try { context.turnOffAuthorisationSystem(); b = bundleService.find(context, b.getID()); if (b != null) { itemService.removeBundle(context, item, b); } item = itemService.find(context, item.getID()); collection = collectionService.find(context, collection.getID()); owningCommunity = communityService.find(context, owningCommunity.getID()); collectionService.removeItem(context, collection, item); communityService.removeCollection(context, owningCommunity, collection); communityService.delete(context, owningCommunity); context.restoreAuthSystemState(); } catch (SQLException | AuthorizeException | IOException ex) { log.error("SQL Error in destroy", ex); fail("SQL Error in destroy: " + ex.getMessage()); } }
void removeItem(Item item) { getItems().remove(item); }
Bundle extends DSpaceObject implements DSpaceObjectLegacySupport { void removeItem(Item item) { getItems().remove(item); } }
Bundle extends DSpaceObject implements DSpaceObjectLegacySupport { void removeItem(Item item) { getItems().remove(item); } protected  Bundle(); }
Bundle extends DSpaceObject implements DSpaceObjectLegacySupport { void removeItem(Item item) { getItems().remove(item); } protected  Bundle(); @Override Integer getLegacyId(); @Override String getName(); void setName(Context context, String name); Bitstream getPrimaryBitstream(); void setPrimaryBitstreamID(Bitstream bitstream); void unsetPrimaryBitstreamID(); List<Bitstream> getBitstreams(); void clearBitstreams(); void removeBitstream(Bitstream bitstream); List<Item> getItems(); @Override boolean equals(Object obj); @Override int hashCode(); @Override int getType(); }
Bundle extends DSpaceObject implements DSpaceObjectLegacySupport { void removeItem(Item item) { getItems().remove(item); } protected  Bundle(); @Override Integer getLegacyId(); @Override String getName(); void setName(Context context, String name); Bitstream getPrimaryBitstream(); void setPrimaryBitstreamID(Bitstream bitstream); void unsetPrimaryBitstreamID(); List<Bitstream> getBitstreams(); void clearBitstreams(); void removeBitstream(Bitstream bitstream); List<Item> getItems(); @Override boolean equals(Object obj); @Override int hashCode(); @Override int getType();  }