| 
									
										
										
										
											2023-09-21 22:00:14 -05:00
										 |  |  | package config;
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-01-02 17:25:23 -06:00
										 |  |  | import com.datahub.authentication.AuthenticationConfiguration;
 | 
					
						
							| 
									
										
										
										
											2024-02-28 16:57:26 -06:00
										 |  |  | import com.datahub.authorization.AuthorizationConfiguration;
 | 
					
						
							| 
									
										
										
										
											2024-01-22 11:46:04 -06:00
										 |  |  | import com.linkedin.metadata.config.VisualConfiguration;
 | 
					
						
							| 
									
										
										
										
											2023-09-21 22:00:14 -05:00
										 |  |  | import com.linkedin.metadata.config.cache.CacheConfiguration;
 | 
					
						
							| 
									
										
										
										
											2023-10-29 16:26:05 -05:00
										 |  |  | import com.linkedin.metadata.config.kafka.KafkaConfiguration;
 | 
					
						
							| 
									
										
										
										
											2023-09-21 22:00:14 -05:00
										 |  |  | import com.linkedin.metadata.spring.YamlPropertySourceFactory;
 | 
					
						
							|  |  |  | import lombok.Data;
 | 
					
						
							|  |  |  | import org.springframework.boot.context.properties.ConfigurationProperties;
 | 
					
						
							|  |  |  | import org.springframework.boot.context.properties.EnableConfigurationProperties;
 | 
					
						
							|  |  |  | import org.springframework.context.annotation.PropertySource;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /**
 | 
					
						
							| 
									
										
										
										
											2023-12-06 11:02:42 +05:30
										 |  |  |  * Minimal sharing between metadata-service and frontend Does not use the factories module to avoid
 | 
					
						
							|  |  |  |  * transitive dependencies.
 | 
					
						
							| 
									
										
										
										
											2023-09-21 22:00:14 -05:00
										 |  |  |  */
 | 
					
						
							|  |  |  | @EnableConfigurationProperties
 | 
					
						
							| 
									
										
										
										
											2024-04-16 13:50:41 -05:00
										 |  |  | @PropertySource(value = "classpath:/application.yaml", factory = YamlPropertySourceFactory.class)
 | 
					
						
							| 
									
										
										
										
											2023-09-21 22:00:14 -05:00
										 |  |  | @ConfigurationProperties
 | 
					
						
							|  |  |  | @Data
 | 
					
						
							|  |  |  | public class ConfigurationProvider {
 | 
					
						
							| 
									
										
										
										
											2023-12-06 11:02:42 +05:30
										 |  |  |   /** Kafka related configs. */
 | 
					
						
							|  |  |  |   private KafkaConfiguration kafka;
 | 
					
						
							| 
									
										
										
										
											2023-09-21 22:00:14 -05:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-12-06 11:02:42 +05:30
										 |  |  |   /** Configuration for caching */
 | 
					
						
							|  |  |  |   private CacheConfiguration cache;
 | 
					
						
							| 
									
										
										
										
											2024-01-22 11:46:04 -06:00
										 |  |  | 
 | 
					
						
							|  |  |  |   /** Configuration for the view layer */
 | 
					
						
							|  |  |  |   private VisualConfiguration visualConfig;
 | 
					
						
							| 
									
										
										
										
											2024-02-28 16:57:26 -06:00
										 |  |  | 
 | 
					
						
							|  |  |  |   /** Configuration for authorization */
 | 
					
						
							|  |  |  |   private AuthorizationConfiguration authorization;
 | 
					
						
							| 
									
										
										
										
											2025-01-02 17:25:23 -06:00
										 |  |  | 
 | 
					
						
							|  |  |  |   /** Configuration for authentication */
 | 
					
						
							|  |  |  |   private AuthenticationConfiguration authentication;
 | 
					
						
							| 
									
										
										
										
											2023-09-21 22:00:14 -05:00
										 |  |  | }
 |