Search in sources :

Example 1 with PhotoServiceImpl

use of org.springframework.security.oauth.examples.sparklr.impl.PhotoServiceImpl in project spring-security-oauth by spring-projects.

the class WebMvcConfig method photoServices.

@Bean
public PhotoServiceImpl photoServices() {
    List<PhotoInfo> photos = new ArrayList<PhotoInfo>();
    photos.add(createPhoto("1", "marissa"));
    photos.add(createPhoto("2", "paul"));
    photos.add(createPhoto("3", "marissa"));
    photos.add(createPhoto("4", "paul"));
    photos.add(createPhoto("5", "marissa"));
    photos.add(createPhoto("6", "paul"));
    PhotoServiceImpl photoServices = new PhotoServiceImpl();
    photoServices.setPhotos(photos);
    return photoServices;
}
Also used : PhotoInfo(org.springframework.security.oauth.examples.sparklr.PhotoInfo) ArrayList(java.util.ArrayList) PhotoServiceImpl(org.springframework.security.oauth.examples.sparklr.impl.PhotoServiceImpl) ContentNegotiationManagerFactoryBean(org.springframework.web.accept.ContentNegotiationManagerFactoryBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

ArrayList (java.util.ArrayList)1 Bean (org.springframework.context.annotation.Bean)1 PhotoInfo (org.springframework.security.oauth.examples.sparklr.PhotoInfo)1 PhotoServiceImpl (org.springframework.security.oauth.examples.sparklr.impl.PhotoServiceImpl)1 ContentNegotiationManagerFactoryBean (org.springframework.web.accept.ContentNegotiationManagerFactoryBean)1