Ignore:
Timestamp:
08/11/14 16:07:55 (10 years ago)
Author:
olhsha@mpi.nl
Message:

Added group service. Tested via the tomcat on loclahots (test URI and postman), old unit tests are adjusted and work well. Todo: retest on localhost tomcat, look at run-time exceptions, add new unit tests, adjust front-end

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ComponentRegistry/trunk/ComponentRegistry/src/main/java/clarin/cmdi/componentregistry/frontend/StatisticsPage.java

    r4550 r5549  
    1414import clarin.cmdi.componentregistry.ComponentRegistryException;
    1515import clarin.cmdi.componentregistry.ComponentRegistryFactory;
     16import clarin.cmdi.componentregistry.RegistrySpace;
     17import clarin.cmdi.componentregistry.UserUnauthorizedException;
    1618import clarin.cmdi.componentregistry.components.CMDComponentSpec;
    1719import clarin.cmdi.componentregistry.components.CMDComponentType;
     
    4042    }
    4143
    42     public StatisticsPage(final PageParameters pageParameters) throws IOException, ComponentRegistryException {
     44    public StatisticsPage(final PageParameters pageParameters) throws IOException, ComponentRegistryException, UserUnauthorizedException {
    4345        super(pageParameters);
    44         ComponentRegistry registry = componentRegistryFactory.getPublicRegistry();
     46        ComponentRegistry registry = componentRegistryFactory.getComponentRegistry(RegistrySpace.PUBLISHED, null, null, null);
    4547        addLinks();
    4648        displayStatistics(registry);
    4749    }
    4850
    49     private void displayStatistics(ComponentRegistry registry) throws ComponentRegistryException {
     51    private void displayStatistics(ComponentRegistry registry) throws ComponentRegistryException, UserUnauthorizedException {
    5052        List<ProfileDescription> profileList = registry.getProfileDescriptions();
    5153        RepeatingView repeating = new RepeatingView("repeating");
Note: See TracChangeset for help on using the changeset viewer.