Skip to content
Snippets Groups Projects
Commit ea75eaf6 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-5849 add file mapper config

parent 9dae16f2
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,6 @@ import org.springframework.context.ApplicationContext; ...@@ -12,7 +12,6 @@ import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import; import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.Primary;
import de.ozgcloud.apilib.alfa.AlfaService; import de.ozgcloud.apilib.alfa.AlfaService;
import de.ozgcloud.apilib.alfa.CommandAlfaService; import de.ozgcloud.apilib.alfa.CommandAlfaService;
...@@ -25,6 +24,7 @@ import de.ozgcloud.apilib.common.command.grpc.CommandMapper; ...@@ -25,6 +24,7 @@ import de.ozgcloud.apilib.common.command.grpc.CommandMapper;
import de.ozgcloud.apilib.common.command.grpc.GrpcOzgCloudCommandService; import de.ozgcloud.apilib.common.command.grpc.GrpcOzgCloudCommandService;
import de.ozgcloud.apilib.file.dummy.DummyOzgCloudFileService; import de.ozgcloud.apilib.file.dummy.DummyOzgCloudFileService;
import de.ozgcloud.apilib.file.grpc.GrpcOzgCloudFileService; import de.ozgcloud.apilib.file.grpc.GrpcOzgCloudFileService;
import de.ozgcloud.apilib.file.grpc.OzgCloudFileMapper;
import de.ozgcloud.apilib.user.UserProfileMapper; import de.ozgcloud.apilib.user.UserProfileMapper;
import de.ozgcloud.apilib.vorgang.OzgCloudVorgangIdMapper; import de.ozgcloud.apilib.vorgang.OzgCloudVorgangIdMapper;
import de.ozgcloud.apilib.vorgang.OzgCloudVorgangService; import de.ozgcloud.apilib.vorgang.OzgCloudVorgangService;
...@@ -198,6 +198,12 @@ public class OzgCloudClientAutoConfiguration { ...@@ -198,6 +198,12 @@ public class OzgCloudClientAutoConfiguration {
return new DummyAlfaService(); return new DummyAlfaService();
} }
@Bean
@ConditionalOnProperty("ozgcloud.file-manager.address")
OzgCloudFileMapper fileMapper() {
return Mappers.getMapper(OzgCloudFileMapper.class);
}
// @Bean // @Bean
// @ConditionalOnProperty("ozgcloud.user-manager.address") // @ConditionalOnProperty("ozgcloud.user-manager.address")
// OzgCloudUserProfileService grpcOzgCloudUserProfileService(@GrpcClient("ozgcloud-user-manager") UserProfileServiceBlockingStub grpcStub, // OzgCloudUserProfileService grpcOzgCloudUserProfileService(@GrpcClient("ozgcloud-user-manager") UserProfileServiceBlockingStub grpcStub,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment