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