Changeset 5549 for ComponentRegistry/trunk/ComponentRegistry/src/main/java/clarin/cmdi/componentregistry/frontend/StatisticsPage.java
- Timestamp:
- 08/11/14 16:07:55 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ComponentRegistry/trunk/ComponentRegistry/src/main/java/clarin/cmdi/componentregistry/frontend/StatisticsPage.java
r4550 r5549 14 14 import clarin.cmdi.componentregistry.ComponentRegistryException; 15 15 import clarin.cmdi.componentregistry.ComponentRegistryFactory; 16 import clarin.cmdi.componentregistry.RegistrySpace; 17 import clarin.cmdi.componentregistry.UserUnauthorizedException; 16 18 import clarin.cmdi.componentregistry.components.CMDComponentSpec; 17 19 import clarin.cmdi.componentregistry.components.CMDComponentType; … … 40 42 } 41 43 42 public StatisticsPage(final PageParameters pageParameters) throws IOException, ComponentRegistryException {44 public StatisticsPage(final PageParameters pageParameters) throws IOException, ComponentRegistryException, UserUnauthorizedException { 43 45 super(pageParameters); 44 ComponentRegistry registry = componentRegistryFactory.get PublicRegistry();46 ComponentRegistry registry = componentRegistryFactory.getComponentRegistry(RegistrySpace.PUBLISHED, null, null, null); 45 47 addLinks(); 46 48 displayStatistics(registry); 47 49 } 48 50 49 private void displayStatistics(ComponentRegistry registry) throws ComponentRegistryException {51 private void displayStatistics(ComponentRegistry registry) throws ComponentRegistryException, UserUnauthorizedException { 50 52 List<ProfileDescription> profileList = registry.getProfileDescriptions(); 51 53 RepeatingView repeating = new RepeatingView("repeating");
Note: See TracChangeset
for help on using the changeset viewer.