Last change
on this file since 5791 was
5791,
checked in by Twan Goosen, 10 years ago
|
Added the authentication required exception, thrown in the Component Registry implementation when checking access to a non-public component and handled by the REST service by throwing a 401
refs #689
|
File size:
795 bytes
|
Line | |
---|
1 | package clarin.cmdi.componentregistry.rest; |
---|
2 | |
---|
3 | import clarin.cmdi.componentregistry.AuthenticationRequiredException; |
---|
4 | import clarin.cmdi.componentregistry.ComponentRegistry; |
---|
5 | import clarin.cmdi.componentregistry.ComponentRegistryException; |
---|
6 | import clarin.cmdi.componentregistry.ItemNotFoundException; |
---|
7 | import clarin.cmdi.componentregistry.UserUnauthorizedException; |
---|
8 | import clarin.cmdi.componentregistry.model.ProfileDescription; |
---|
9 | |
---|
10 | public class ProfileClosure implements RegistryClosure<ProfileDescription> { |
---|
11 | |
---|
12 | @Override |
---|
13 | public ProfileDescription getDescription(ComponentRegistry registry, String id) throws ComponentRegistryException, UserUnauthorizedException, ItemNotFoundException, AuthenticationRequiredException { |
---|
14 | return registry.getProfileDescriptionAccessControlled(id); |
---|
15 | } |
---|
16 | |
---|
17 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.