com.blossomproject.autoconfigure.ui.web.administration.WebAdministrationResponsabilityAutoConfiguration Maven / Gradle / Ivy
package com.blossomproject.autoconfigure.ui.web.administration;
import com.blossomproject.autoconfigure.ui.common.privileges.ResponsabilityPrivilegesConfiguration;
import com.blossomproject.autoconfigure.ui.web.WebInterfaceAutoConfiguration;
import com.blossomproject.core.association_user_role.AssociationUserRoleService;
import com.blossomproject.core.role.RoleService;
import com.blossomproject.core.user.UserService;
import com.blossomproject.ui.web.administration.responsability.ResponsabilitiesController;
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;
@Configuration
@ConditionalOnClass({ResponsabilitiesController.class})
@ConditionalOnBean({AssociationUserRoleService.class, UserService.class, RoleService.class})
@AutoConfigureAfter(WebInterfaceAutoConfiguration.class)
@Import(ResponsabilityPrivilegesConfiguration.class)
public class WebAdministrationResponsabilityAutoConfiguration {
@Bean
public ResponsabilitiesController responsabilityController(UserService userService, AssociationUserRoleService associationUserRoleService, RoleService roleService) {
return new ResponsabilitiesController(userService, associationUserRoleService, roleService);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy