com.blossomproject.autoconfigure.ui.api.administration.ApiAdministrationGroupAutoConfiguration Maven / Gradle / Ivy
package com.blossomproject.autoconfigure.ui.api.administration;
import com.blossomproject.autoconfigure.ui.api.ApiInterfaceAutoConfiguration;
import com.blossomproject.autoconfigure.ui.common.privileges.GroupPrivilegesConfiguration;
import com.blossomproject.core.common.search.SearchEngineImpl;
import com.blossomproject.core.group.GroupDTO;
import com.blossomproject.core.group.GroupService;
import com.blossomproject.ui.api.administration.GroupsApiController;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
/**
* Created by Maël Gargadennnec on 04/05/2017.
*/
@Configuration
@ConditionalOnClass({GroupService.class, GroupsApiController.class})
@ConditionalOnBean(GroupService.class)
@AutoConfigureAfter(ApiInterfaceAutoConfiguration.class)
@Import(GroupPrivilegesConfiguration.class)
public class ApiAdministrationGroupAutoConfiguration {
@Bean
public GroupsApiController groupsApiController(GroupService groupService,
SearchEngineImpl searchEngine) {
return new GroupsApiController(groupService, searchEngine);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy