source: ComponentRegistry/trunk/ComponentRegistry/src/main/java/clarin/cmdi/componentregistry/rest/ComponentClosure.java @ 5549

Last change on this file since 5549 was 5549, checked in by olhsha@mpi.nl, 10 years ago

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 size: 702 bytes
Line 
1package clarin.cmdi.componentregistry.rest;
2
3import clarin.cmdi.componentregistry.ComponentRegistry;
4import clarin.cmdi.componentregistry.ComponentRegistryException;
5import clarin.cmdi.componentregistry.ItemNotFoundException;
6import clarin.cmdi.componentregistry.UserUnauthorizedException;
7import clarin.cmdi.componentregistry.model.ComponentDescription;
8
9public class ComponentClosure implements RegistryClosure<ComponentDescription> {
10
11    @Override
12    public ComponentDescription getDescription(ComponentRegistry registry, String id) throws ComponentRegistryException, UserUnauthorizedException, ItemNotFoundException {
13        return registry.getComponentDescriptionAccessControlled(id);
14    }
15
16}
Note: See TracBrowser for help on using the repository browser.