source: VirtualCollectionRegistry/trunk/VirtualCollectionRegistry/src/main/java/eu/clarin/cmdi/virtualcollectionregistry/service/impl/SAMLCreatorProviderConfiguration.java @ 5522

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 
1package eu.clarin.cmdi.virtualcollectionregistry.service.impl;
2
3import eu.clarin.cmdi.virtualcollectionregistry.service.CreatorProvider;
4import java.util.Arrays;
5import org.springframework.context.annotation.Bean;
6import org.springframework.context.annotation.Configuration;
7
8/**
9 *
10 * @author twagoo
11 */
12@Configuration
13public 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.