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:
1.2 KB
|
Line | |
---|
1 | package clarin.cmdi.componentregistry; |
---|
2 | |
---|
3 | import clarin.cmdi.componentregistry.model.RegistryUser; |
---|
4 | import java.security.Principal; |
---|
5 | import java.util.List; |
---|
6 | |
---|
7 | /** |
---|
8 | * |
---|
9 | * @author Twan Goosen <twan.goosen@mpi.nl> |
---|
10 | */ |
---|
11 | public interface ComponentRegistryFactory { |
---|
12 | |
---|
13 | public static final String ANONYMOUS_USER = "anonymous"; //Default shibboleth fallback. |
---|
14 | |
---|
15 | List<ComponentRegistry> getAllUserRegistries(); |
---|
16 | |
---|
17 | /** |
---|
18 | * Gets the specified registry |
---|
19 | * |
---|
20 | * @param status status of the registry |
---|
21 | * @param owner owner of the registry. Passing null will assume the authenticated user as a {@link OwnerUser} |
---|
22 | * @param credentials credentials that authenticate user, can be left null if requested registry has a public status |
---|
23 | * @return |
---|
24 | */ |
---|
25 | ComponentRegistry getComponentRegistry(RegistrySpace space, Owner owner, UserCredentials credentials, Number groupId) throws UserUnauthorizedException; |
---|
26 | |
---|
27 | ComponentRegistry getPublicRegistry(); |
---|
28 | |
---|
29 | ComponentRegistry getOtherUserComponentRegistry(Principal adminPrincipal, Owner owner); |
---|
30 | |
---|
31 | ComponentRegistry getBaseRegistry(UserCredentials credentials); |
---|
32 | |
---|
33 | RegistryUser getOrCreateUser(UserCredentials credentials); |
---|
34 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.