public CollectionEntity( final Collection collection, final List<Entity> items, final List<Entity> communities, final int itemsCount) throws SQLException { super( collection.getID(), collection.getName(), collection.getType(), items, communities, itemsCount); this.canEdit = collection.canEditBoolean(); this.handle = collection.getHandle(); this.licence = collection.getLicense(); this.short_description = collection.getMetadata("short_description"); this.intro_text = collection.getMetadata("introductory_text"); this.copyright_text = collection.getMetadata("copyright_text"); this.sidebar_text = collection.getMetadata("side_bar_text"); this.provenance = collection.getMetadata("provenance_description"); if (collection.getLogo() == null) { this.logo = null; } else { this.logo = new BitstreamEntityId(collection.getLogo()); } }