Last change
on this file since 5522 was
5522,
checked in by Twan Goosen, 10 years ago
|
Added a 'creator provider' interface and SAML + chaining implementations. Added an 'add me' action link to add the current user as a creator.
Refs #595
|
File size:
625 bytes
|
Line | |
---|
1 | package eu.clarin.cmdi.virtualcollectionregistry.service.impl; |
---|
2 | |
---|
3 | import eu.clarin.cmdi.virtualcollectionregistry.service.CreatorProvider; |
---|
4 | import java.util.Arrays; |
---|
5 | import org.springframework.context.annotation.Bean; |
---|
6 | import org.springframework.context.annotation.Configuration; |
---|
7 | |
---|
8 | /** |
---|
9 | * |
---|
10 | * @author twagoo |
---|
11 | */ |
---|
12 | @Configuration |
---|
13 | public class SAMLCreatorProviderConfiguration { |
---|
14 | |
---|
15 | @Bean |
---|
16 | public CreatorProvider creatorProvider() { |
---|
17 | return new ChaningCreatorProvider( |
---|
18 | Arrays.<CreatorProvider>asList(new SAMLCreatorProvider()) |
---|
19 | //TODO: add db provider with fallback to saml |
---|
20 | ); |
---|
21 | } |
---|
22 | |
---|
23 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.