diff --git a/catalog-rest-service/src/main/java/org/openmetadata/catalog/events/AuditEventHandler.java b/catalog-rest-service/src/main/java/org/openmetadata/catalog/events/AuditEventHandler.java index 878471f7681..7e2dd4de7e9 100644 --- a/catalog-rest-service/src/main/java/org/openmetadata/catalog/events/AuditEventHandler.java +++ b/catalog-rest-service/src/main/java/org/openmetadata/catalog/events/AuditEventHandler.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.openmetadata.catalog.events; import org.openmetadata.catalog.CatalogApplicationConfig; diff --git a/catalog-rest-service/src/main/java/org/openmetadata/catalog/events/ElasticSearchEventHandler.java b/catalog-rest-service/src/main/java/org/openmetadata/catalog/events/ElasticSearchEventHandler.java index a03ffc9fd14..e765f4139e9 100644 --- a/catalog-rest-service/src/main/java/org/openmetadata/catalog/events/ElasticSearchEventHandler.java +++ b/catalog-rest-service/src/main/java/org/openmetadata/catalog/events/ElasticSearchEventHandler.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.openmetadata.catalog.events; import org.apache.http.HttpHost; @@ -12,8 +28,6 @@ import org.openmetadata.catalog.ElasticSearchConfiguration; import org.openmetadata.catalog.Entity; import org.openmetadata.catalog.entity.data.Table; import org.openmetadata.catalog.type.Column; -import org.openmetadata.catalog.type.TagLabel; -import org.openmetadata.catalog.util.JsonUtils; import org.skife.jdbi.v2.DBI; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/catalog-rest-service/src/main/java/org/openmetadata/catalog/events/EventFilter.java b/catalog-rest-service/src/main/java/org/openmetadata/catalog/events/EventFilter.java index dc7a718ce21..b25474ea9b6 100644 --- a/catalog-rest-service/src/main/java/org/openmetadata/catalog/events/EventFilter.java +++ b/catalog-rest-service/src/main/java/org/openmetadata/catalog/events/EventFilter.java @@ -41,7 +41,7 @@ public class EventFilter implements ContainerResponseFilter { private CatalogApplicationConfig config; private DBI jdbi; private final ForkJoinPool forkJoinPool; - List eventHandlers; + private List eventHandlers; public EventFilter(CatalogApplicationConfig config, DBI jdbi) { this.config = config; diff --git a/catalog-rest-service/src/main/java/org/openmetadata/catalog/events/EventHandler.java b/catalog-rest-service/src/main/java/org/openmetadata/catalog/events/EventHandler.java index 7a1f32a7519..a60f827af44 100644 --- a/catalog-rest-service/src/main/java/org/openmetadata/catalog/events/EventHandler.java +++ b/catalog-rest-service/src/main/java/org/openmetadata/catalog/events/EventHandler.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.openmetadata.catalog.events; import org.openmetadata.catalog.CatalogApplicationConfig; diff --git a/catalog-rest-service/src/main/java/org/openmetadata/catalog/util/ParallelStreamUtil.java b/catalog-rest-service/src/main/java/org/openmetadata/catalog/util/ParallelStreamUtil.java index 04184881ba3..5eb2d3df69e 100644 --- a/catalog-rest-service/src/main/java/org/openmetadata/catalog/util/ParallelStreamUtil.java +++ b/catalog-rest-service/src/main/java/org/openmetadata/catalog/util/ParallelStreamUtil.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.openmetadata.catalog.util; import com.google.common.base.Stopwatch;