public Collection < SideBarSectionDescriptor > getSideBarSections ( Class < ? extends UI > uiClass ) { List < SideBarSectionDescriptor > supportedSections = new ArrayList < SideBarSectionDescriptor > ( ) ; for ( SideBarSectionDescriptor section : sections ) { if ( section . isAvailableFor ( uiClass ) ) { supportedSections . add ( section ) ; } } return supportedSections ; }
Gets all side bar sections for the specified UI class .