39 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/log4j-catalog/log4j-catalog-editor/src/site/markdown/index.md:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 | # Log4j Audit Catalog Editor
20 |
21 | The Log4j Audit Catalog Editor module generates the web application used to edit the Log4j Audit Catalog.
22 |
23 | ## Requirements
24 |
25 | Log4j Audit requires Java 8.
--------------------------------------------------------------------------------
/log4j-catalog/log4j-catalog-git/src/main/java/org/apache/logging/log4j/catalog/git/config/ServiceConfig.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to you under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.logging.log4j.catalog.git.config;
18 |
19 | import org.springframework.context.annotation.Configuration;
20 |
21 | @Configuration
22 | public class ServiceConfig {}
23 |
--------------------------------------------------------------------------------
/log4j-catalog/log4j-catalog-git/src/main/java/org/apache/logging/log4j/catalog/git/config/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2001-2005 The Apache Software Foundation.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | /**
17 | * Git configuration classes.
18 | */
19 | package org.apache.logging.log4j.catalog.git.config;
20 |
--------------------------------------------------------------------------------
/log4j-catalog/log4j-catalog-git/src/main/java/org/apache/logging/log4j/catalog/git/dao/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2001-2005 The Apache Software Foundation.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | /**
17 | * DAOs to access the Catalog in GIT.
18 | */
19 | package org.apache.logging.log4j.catalog.git.dao;
20 |
--------------------------------------------------------------------------------
/log4j-catalog/log4j-catalog-git/src/main/java/org/apache/logging/log4j/catalog/git/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2001-2005 The Apache Software Foundation.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | /**
17 | * Catalog storage and retrieval in GIT.
18 | */
19 | package org.apache.logging.log4j.catalog.git;
20 |
--------------------------------------------------------------------------------
/log4j-catalog/log4j-catalog-git/src/site/markdown/index.md:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 | # Log4j Audit Catalog Git DAO
20 |
21 | This module provides the DAO used to retrieve and store the JSON catalog in a Git repository.
22 |
23 | ## Requirements
24 |
25 | Log4j Audit requires Java 8.
--------------------------------------------------------------------------------
/log4j-catalog/log4j-catalog-jpa/src/main/java/org/apache/logging/log4j/catalog/jpa/config/DataSourceConfig.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to you under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.logging.log4j.catalog.jpa.config;
18 |
19 | import javax.sql.DataSource;
20 |
21 | /**
22 | * Create the DataSource.
23 | */
24 | public interface DataSourceConfig {
25 |
26 | DataSource dataSource();
27 | }
28 |
--------------------------------------------------------------------------------
/log4j-catalog/log4j-catalog-jpa/src/main/java/org/apache/logging/log4j/catalog/jpa/config/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2001-2005 The Apache Software Foundation.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | /**
17 | * Configuration for JPA access to catalog.
18 | */
19 | package org.apache.logging.log4j.catalog.jpa.config;
20 |
--------------------------------------------------------------------------------
/log4j-catalog/log4j-catalog-jpa/src/main/java/org/apache/logging/log4j/catalog/jpa/converter/DataTypeConverter.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to you under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.logging.log4j.catalog.jpa.converter;
18 |
19 | import javax.persistence.AttributeConverter;
20 | import javax.persistence.Converter;
21 | import org.apache.logging.log4j.catalog.api.DataType;
22 |
23 | /**
24 | * Converter to convert between a DataType and a String.
25 | */
26 | @Converter(autoApply = true)
27 | public class DataTypeConverter implements AttributeConverter {
28 | @Override
29 | public String convertToDatabaseColumn(DataType value) {
30 | return value != null ? value.getTypeName() : null;
31 | }
32 |
33 | @Override
34 | public DataType convertToEntityAttribute(String value) {
35 | return DataType.fromName(value);
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/log4j-catalog/log4j-catalog-jpa/src/main/java/org/apache/logging/log4j/catalog/jpa/converter/DateTimeConverter.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to you under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.logging.log4j.catalog.jpa.converter;
18 |
19 | import java.sql.Timestamp;
20 | import java.time.LocalDateTime;
21 | import javax.persistence.AttributeConverter;
22 | import javax.persistence.Converter;
23 |
24 | /**
25 | * Utility class to convert LocalDate to DB timestamp and vice versa.
26 | */
27 | @Converter(autoApply = true)
28 | public class DateTimeConverter implements AttributeConverter {
29 |
30 | @Override
31 | public Timestamp convertToDatabaseColumn(LocalDateTime localDateTime) {
32 | return localDateTime == null ? null : Timestamp.valueOf(localDateTime);
33 | }
34 |
35 | @Override
36 | public LocalDateTime convertToEntityAttribute(Timestamp timestamp) {
37 | return timestamp == null ? null : timestamp.toLocalDateTime();
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/log4j-catalog/log4j-catalog-jpa/src/main/java/org/apache/logging/log4j/catalog/jpa/converter/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2001-2005 The Apache Software Foundation.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | /**
17 | * Catalog converters.
18 | */
19 | package org.apache.logging.log4j.catalog.jpa.converter;
20 |
--------------------------------------------------------------------------------
/log4j-catalog/log4j-catalog-jpa/src/main/java/org/apache/logging/log4j/catalog/jpa/dao/AttributeRepository.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to you under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.logging.log4j.catalog.jpa.dao;
18 |
19 | import org.apache.logging.log4j.catalog.jpa.model.AttributeModel;
20 |
21 | public interface AttributeRepository extends PagingAndSortingRepository {}
22 |
--------------------------------------------------------------------------------
/log4j-catalog/log4j-catalog-jpa/src/main/java/org/apache/logging/log4j/catalog/jpa/dao/CatalogRepository.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to you under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.logging.log4j.catalog.jpa.dao;
18 |
19 | import org.apache.logging.log4j.catalog.jpa.model.CatalogModel;
20 |
21 | public interface CatalogRepository extends BaseRepository {}
22 |
--------------------------------------------------------------------------------
/log4j-catalog/log4j-catalog-jpa/src/main/java/org/apache/logging/log4j/catalog/jpa/dao/CategoryRepository.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to you under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.logging.log4j.catalog.jpa.dao;
18 |
19 | import java.util.Optional;
20 | import org.apache.logging.log4j.catalog.jpa.model.CategoryModel;
21 |
22 | public interface CategoryRepository extends PagingAndSortingRepository {
23 | Optional findByName(String name);
24 | }
25 |
--------------------------------------------------------------------------------
/log4j-catalog/log4j-catalog-jpa/src/main/java/org/apache/logging/log4j/catalog/jpa/dao/ConstraintRepository.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to you under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.logging.log4j.catalog.jpa.dao;
18 |
19 | import org.apache.logging.log4j.catalog.jpa.model.ConstraintModel;
20 |
21 | public interface ConstraintRepository extends BaseRepository {}
22 |
--------------------------------------------------------------------------------
/log4j-catalog/log4j-catalog-jpa/src/main/java/org/apache/logging/log4j/catalog/jpa/dao/EventRepository.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to you under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.logging.log4j.catalog.jpa.dao;
18 |
19 | import org.apache.logging.log4j.catalog.jpa.model.EventModel;
20 |
21 | public interface EventRepository extends PagingAndSortingRepository {}
22 |
--------------------------------------------------------------------------------
/log4j-catalog/log4j-catalog-jpa/src/main/java/org/apache/logging/log4j/catalog/jpa/dao/PagingAndSortingRepository.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to you under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.logging.log4j.catalog.jpa.dao;
18 |
19 | import java.io.Serializable;
20 | import java.util.List;
21 | import java.util.Optional;
22 | import org.springframework.data.domain.Page;
23 | import org.springframework.data.domain.Pageable;
24 | import org.springframework.data.domain.Sort;
25 | import org.springframework.data.repository.NoRepositoryBean;
26 |
27 | @NoRepositoryBean
28 | public interface PagingAndSortingRepository extends BaseRepository {
29 |
30 | Iterable findAll(Sort sort);
31 |
32 | Page findAll(Pageable pageable);
33 |
34 | List findByCatalogId(String catalogId);
35 |
36 | Page findByCatalogId(String catalogId, Pageable pageable);
37 |
38 | Optional findByCatalogIdAndName(String catalogId, String name);
39 | }
40 |
--------------------------------------------------------------------------------
/log4j-catalog/log4j-catalog-jpa/src/main/java/org/apache/logging/log4j/catalog/jpa/dao/ProductRepository.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to you under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.logging.log4j.catalog.jpa.dao;
18 |
19 | import org.apache.logging.log4j.catalog.jpa.model.ProductModel;
20 |
21 | public interface ProductRepository extends PagingAndSortingRepository {}
22 |
--------------------------------------------------------------------------------
/log4j-catalog/log4j-catalog-jpa/src/main/java/org/apache/logging/log4j/catalog/jpa/dao/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2001-2005 The Apache Software Foundation.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | /**
17 | * Catalog data access objects.
18 | */
19 | package org.apache.logging.log4j.catalog.jpa.dao;
20 |
--------------------------------------------------------------------------------
/log4j-catalog/log4j-catalog-jpa/src/main/java/org/apache/logging/log4j/catalog/jpa/model/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2001-2005 The Apache Software Foundation.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | /**
17 | * Catalog model objects.
18 | */
19 | package org.apache.logging.log4j.catalog.jpa.model;
20 |
--------------------------------------------------------------------------------
/log4j-catalog/log4j-catalog-jpa/src/main/java/org/apache/logging/log4j/catalog/jpa/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2001-2005 The Apache Software Foundation.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | /**
17 | * Support storing the catalog using JPA.
18 | */
19 | package org.apache.logging.log4j.catalog.jpa;
20 |
--------------------------------------------------------------------------------
/log4j-catalog/log4j-catalog-jpa/src/main/java/org/apache/logging/log4j/catalog/jpa/service/CatalogService.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to you under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.logging.log4j.catalog.jpa.service;
18 |
19 | import org.apache.logging.log4j.catalog.api.CatalogData;
20 | import org.apache.logging.log4j.catalog.jpa.model.CatalogModel;
21 |
22 | /**
23 | * Catalog Service methods.
24 | */
25 | public interface CatalogService {
26 | CatalogData getCatalogData();
27 |
28 | CatalogModel getCatalogModel();
29 |
30 | void saveCatalog(CatalogModel catalogModel);
31 | }
32 |
--------------------------------------------------------------------------------
/log4j-catalog/log4j-catalog-jpa/src/main/java/org/apache/logging/log4j/catalog/jpa/service/ConstraintService.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to you under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.logging.log4j.catalog.jpa.service;
18 |
19 | import java.util.List;
20 | import java.util.Optional;
21 | import java.util.Set;
22 | import org.apache.logging.log4j.catalog.jpa.model.ConstraintModel;
23 |
24 | /**
25 | *
26 | */
27 | public interface ConstraintService {
28 | Set getConstraintTypes();
29 |
30 | List getConstraints();
31 |
32 | Optional getConstraint(Long constraintId);
33 |
34 | ConstraintModel saveConstraint(ConstraintModel constraint);
35 |
36 | void deleteConstraint(Long constraintId);
37 | }
38 |
--------------------------------------------------------------------------------
/log4j-catalog/log4j-catalog-jpa/src/main/java/org/apache/logging/log4j/catalog/jpa/service/ProductService.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to you under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.logging.log4j.catalog.jpa.service;
18 |
19 | import java.util.List;
20 | import java.util.Optional;
21 | import org.apache.logging.log4j.catalog.jpa.model.ProductModel;
22 |
23 | public interface ProductService {
24 | List getProducts(int startPage, int itemsPerPage, String sortColumn, String direction);
25 |
26 | List getProducts(
27 | String catalogId, int startPage, int itemsPerPage, String sortColumn, String direction);
28 |
29 | List getProducts();
30 |
31 | List getProducts(String catalogId);
32 |
33 | Optional getProduct(Long productId);
34 |
35 | Optional getProduct(String catalogId, String name);
36 |
37 | ProductModel saveProduct(ProductModel product);
38 |
39 | void deleteProduct(Long productId);
40 | }
41 |
--------------------------------------------------------------------------------
/log4j-catalog/log4j-catalog-jpa/src/test/java/org/apache/logging/log4j/catalog/jpa/config/ApplicationConfiguration.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to you under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.logging.log4j.catalog.jpa.config;
18 |
19 | import org.apache.logging.log4j.catalog.jpa.service.CatalogService;
20 | import org.apache.logging.log4j.catalog.jpa.service.CatalogServiceImpl;
21 | import org.springframework.context.annotation.Bean;
22 | import org.springframework.context.annotation.ComponentScan;
23 | import org.springframework.context.annotation.Configuration;
24 | import org.springframework.context.annotation.Import;
25 |
26 | @Configuration
27 | @ComponentScan(basePackages = {"org.apache.logging.log4j.catalog"})
28 | @Import(HibernateConfig.class)
29 | public class ApplicationConfiguration {
30 | @Bean
31 | public CatalogService catalogService() {
32 | return new CatalogServiceImpl();
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/log4j-catalog/log4j-catalog-jpa/src/test/resources/sql/hsql/afterTestRun.sql:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2001-2005 The Apache Software Foundation.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | DELETE FROM PRODUCT_EVENTS;
17 | DELETE FROM CATEGORY_EVENTS;
18 | DELETE FROM EVENT_ATTRIBUTES;
19 | DELETE FROM CATALOG_PRODUCT;
20 | DELETE FROM CATALOG_CATEGORY;
21 | DELETE FROM CATALOG_EVENT;
22 | DELETE FROM ATTRIBUTE_CONSTRAINT;
23 | DELETE FROM ATTRIBUTE_EXAMPLES;
24 | DELETE FROM EVENT_ATTRIBUTE;
25 |
--------------------------------------------------------------------------------
/src/changelog/.1.x.x/update_apache_logging_parent.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Update `apache/logging-parent` to version ``
8 |
9 |
--------------------------------------------------------------------------------
/src/changelog/.1.x.x/update_com_ethlo_persistence_tools_eclipselink_maven_plugin.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | Update `com.ethlo.persistence.tools:eclipselink-maven-plugin` to version `2.7.9.1`
7 |
8 |
--------------------------------------------------------------------------------
/src/changelog/.1.x.x/update_com_fasterxml_jackson_core_jackson_databind.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 | Update `com.fasterxml.jackson.core:jackson-databind` to version `2.12.7.1`
9 |
10 |
--------------------------------------------------------------------------------
/src/changelog/.1.x.x/update_com_google_guava_guava.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Update `com.google.guava:guava` to version `33.1.0-jre`
8 |
9 |
--------------------------------------------------------------------------------
/src/changelog/.1.x.x/update_com_google_jimfs_jimfs.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Update `com.google.jimfs:jimfs` to version `1.3.0`
8 |
9 |
--------------------------------------------------------------------------------
/src/changelog/.1.x.x/update_commons_beanutils_commons_beanutils.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Update `commons-beanutils:commons-beanutils` to version `1.9.4`
8 |
9 |
--------------------------------------------------------------------------------
/src/changelog/.1.x.x/update_commons_codec_commons_codec.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Update `commons-codec:commons-codec` to version `1.16.1`
8 |
9 |
--------------------------------------------------------------------------------
/src/changelog/.1.x.x/update_commons_io_commons_io.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Update `commons-io:commons-io` to version `2.16.1`
8 |
9 |
--------------------------------------------------------------------------------
/src/changelog/.1.x.x/update_commons_logging_commons_logging.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Update `commons-logging:commons-logging` to version `1.3.1`
8 |
9 |
--------------------------------------------------------------------------------
/src/changelog/.1.x.x/update_commons_validator_commons_validator.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Update `commons-validator:commons-validator` to version `1.8.0`
8 |
9 |
--------------------------------------------------------------------------------
/src/changelog/.1.x.x/update_io_springfox_springfox_swagger2.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Update `io.springfox:springfox-swagger2` to version `2.10.5`
8 |
9 |
--------------------------------------------------------------------------------
/src/changelog/.1.x.x/update_io_swagger_swagger_annotations.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Update `io.swagger:swagger-annotations` to version `1.6.14`
8 |
9 |
--------------------------------------------------------------------------------
/src/changelog/.1.x.x/update_javax_cache_cache_api.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Update `javax.cache:cache-api` to version `1.1.1`
8 |
9 |
--------------------------------------------------------------------------------
/src/changelog/.1.x.x/update_javax_javaee_api.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Update `javax:javaee-api` to version `8.0.1`
8 |
9 |
--------------------------------------------------------------------------------
/src/changelog/.1.x.x/update_javax_servlet_javax_servlet_api.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Update `javax.servlet:javax.servlet-api` to version `4.0.1`
8 |
9 |
--------------------------------------------------------------------------------
/src/changelog/.1.x.x/update_junit_junit.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 | Update `junit:junit` to version `4.13.2`
9 |
10 |
--------------------------------------------------------------------------------
/src/changelog/.1.x.x/update_net_sf_jopt_simple_jopt_simple.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Update `net.sf.jopt-simple:jopt-simple` to version `5.0.4`
8 |
9 |
--------------------------------------------------------------------------------
/src/changelog/.1.x.x/update_nz_net_ultraq_thymeleaf_thymeleaf_layout_dialect.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Update `nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect` to version `3.3.0`
8 |
9 |
--------------------------------------------------------------------------------
/src/changelog/.1.x.x/update_org_apache_commons_commons_lang3.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Update `org.apache.commons:commons-lang3` to version `3.14.0`
8 |
9 |
--------------------------------------------------------------------------------
/src/changelog/.1.x.x/update_org_apache_httpcomponents_httpclient.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Update `org.apache.httpcomponents:httpclient` to version `4.5.14`
8 |
9 |
--------------------------------------------------------------------------------
/src/changelog/.1.x.x/update_org_apache_logging_log4j_log4j_core.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 | Update `org.apache.logging.log4j:log4j-core` to version `2.17.1`
9 |
10 |
--------------------------------------------------------------------------------
/src/changelog/.1.x.x/update_org_apache_logging_logging_parent.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Update `org.apache.logging:logging-parent` to version `10.6.0`
8 |
9 |
--------------------------------------------------------------------------------
/src/changelog/.1.x.x/update_org_apache_maven_maven_artifact.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Update `org.apache.maven:maven-artifact` to version `3.9.6`
8 |
9 |
--------------------------------------------------------------------------------
/src/changelog/.1.x.x/update_org_apache_maven_maven_model.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Update `org.apache.maven:maven-model` to version `3.9.6`
8 |
9 |
--------------------------------------------------------------------------------
/src/changelog/.1.x.x/update_org_apache_maven_maven_plugin_api.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Update `org.apache.maven:maven-plugin-api` to version `3.9.6`
8 |
9 |
--------------------------------------------------------------------------------
/src/changelog/.1.x.x/update_org_apache_maven_plugin_tools_maven_plugin_annotations.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Update `org.apache.maven.plugin-tools:maven-plugin-annotations` to version `3.11.0`
8 |
9 |
--------------------------------------------------------------------------------
/src/changelog/.1.x.x/update_org_apache_maven_plugin_tools_maven_plugin_tools_api.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Update `org.apache.maven.plugin-tools:maven-plugin-tools-api` to version `3.11.0`
8 |
9 |
--------------------------------------------------------------------------------
/src/changelog/.1.x.x/update_org_apache_maven_wagon_wagon_ssh.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Update `org.apache.maven.wagon:wagon-ssh` to version `3.5.3`
8 |
9 |
--------------------------------------------------------------------------------
/src/changelog/.1.x.x/update_org_aspectj_aspectjweaver.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Update `org.aspectj:aspectjweaver` to version `1.9.22`
8 |
9 |
--------------------------------------------------------------------------------
/src/changelog/.1.x.x/update_org_checkerframework_checker_qual.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Update `org.checkerframework:checker-qual` to version `3.42.0`
8 |
9 |
--------------------------------------------------------------------------------
/src/changelog/.1.x.x/update_org_codehaus_plexus_plexus_utils.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Update `org.codehaus.plexus:plexus-utils` to version `4.0.1`
8 |
9 |
--------------------------------------------------------------------------------
/src/changelog/.1.x.x/update_org_easymock_easymock.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Update `org.easymock:easymock` to version `5.2.0`
8 |
9 |
--------------------------------------------------------------------------------
/src/changelog/.1.x.x/update_org_eclipse_jgit_org_eclipse_jgit.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Update `org.eclipse.jgit:org.eclipse.jgit` to version `6.9.0.202403050737-r`
8 |
9 |
--------------------------------------------------------------------------------
/src/changelog/.1.x.x/update_org_eclipse_jgit_org_eclipse_jgit_ssh_jsch.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Update `org.eclipse.jgit:org.eclipse.jgit.ssh.jsch` to version `6.7.0.202309050840-r`
8 |
9 |
--------------------------------------------------------------------------------
/src/changelog/.1.x.x/update_org_eclipse_persistence_org_eclipse_persistence_jpa.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Update `org.eclipse.persistence:org.eclipse.persistence.jpa` to version `2.7.14`
8 |
9 |
--------------------------------------------------------------------------------
/src/changelog/.1.x.x/update_org_hibernate_hibernate_core.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 | Update `org.hibernate:hibernate-core` to version `5.6.15.Final`
9 |
10 |
--------------------------------------------------------------------------------
/src/changelog/.1.x.x/update_org_hsqldb_hsqldb.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Update `org.hsqldb:hsqldb` to version `2.7.2`
8 |
9 |
--------------------------------------------------------------------------------
/src/changelog/.1.x.x/update_org_json_json.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Update `org.json:json` to version `20240303`
8 |
9 |
--------------------------------------------------------------------------------
/src/changelog/.1.x.x/update_org_mockito_mockito_core.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Update `org.mockito:mockito-core` to version `5.11.0`
8 |
9 |
--------------------------------------------------------------------------------
/src/changelog/.1.x.x/update_org_modelmapper_extensions_modelmapper_jackson.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Update `org.modelmapper.extensions:modelmapper-jackson` to version `3.2.0`
8 |
9 |
--------------------------------------------------------------------------------
/src/changelog/.1.x.x/update_org_modelmapper_extensions_modelmapper_spring.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Update `org.modelmapper.extensions:modelmapper-spring` to version `3.2.0`
8 |
9 |
--------------------------------------------------------------------------------
/src/changelog/.1.x.x/update_org_modelmapper_modelmapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Update `org.modelmapper:modelmapper` to version `3.2.0`
8 |
9 |
--------------------------------------------------------------------------------
/src/changelog/.1.x.x/update_org_postgresql_postgresql.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Update `org.postgresql:postgresql` to version `42.7.3`
8 |
9 |
--------------------------------------------------------------------------------
/src/changelog/.1.x.x/update_org_springframework_boot_spring_boot_dependencies.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 | Update `org.springframework.boot:spring-boot-dependencies` to version `2.7.18`
8 |
9 |
--------------------------------------------------------------------------------
/src/changelog/.1.x.x/upgrade_spring-framework-bom.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
22 |
23 |
24 | Upgrade Spring Framework to version 5.3.30 and Spring Boot to version 2.7.17.
25 |
26 |
27 |
--------------------------------------------------------------------------------
/src/site/markdown/changelog.md:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 | # Release Changelog
20 |
21 | [JIRA-generated changelog](jira-report.html)
22 |
23 | [Manual change log](changes-report.html)
24 |
25 |
--------------------------------------------------------------------------------
/src/site/resources/images/IntelliJ-IDEA-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/logging-log4j-audit/f56a72d86fc77d7ad78447458a72d85554f0fb4f/src/site/resources/images/IntelliJ-IDEA-logo.png
--------------------------------------------------------------------------------
/src/site/resources/images/YourKitLogo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/logging-log4j-audit/f56a72d86fc77d7ad78447458a72d85554f0fb4f/src/site/resources/images/YourKitLogo.png
--------------------------------------------------------------------------------
/src/site/resources/images/attributes.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/logging-log4j-audit/f56a72d86fc77d7ad78447458a72d85554f0fb4f/src/site/resources/images/attributes.png
--------------------------------------------------------------------------------
/src/site/resources/images/collapsed.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/logging-log4j-audit/f56a72d86fc77d7ad78447458a72d85554f0fb4f/src/site/resources/images/collapsed.gif
--------------------------------------------------------------------------------
/src/site/resources/images/events.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/logging-log4j-audit/f56a72d86fc77d7ad78447458a72d85554f0fb4f/src/site/resources/images/events.png
--------------------------------------------------------------------------------
/src/site/resources/images/expanded.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/logging-log4j-audit/f56a72d86fc77d7ad78447458a72d85554f0fb4f/src/site/resources/images/expanded.gif
--------------------------------------------------------------------------------
/src/site/resources/images/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/logging-log4j-audit/f56a72d86fc77d7ad78447458a72d85554f0fb4f/src/site/resources/images/logo.png
--------------------------------------------------------------------------------
/src/site/resources/images/ls-logo.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/logging-log4j-audit/f56a72d86fc77d7ad78447458a72d85554f0fb4f/src/site/resources/images/ls-logo.jpg
--------------------------------------------------------------------------------
/src/site/resources/images/maven-feather.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/logging-log4j-audit/f56a72d86fc77d7ad78447458a72d85554f0fb4f/src/site/resources/images/maven-feather.png
--------------------------------------------------------------------------------
/src/site/resources/images/request-context.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/logging-log4j-audit/f56a72d86fc77d7ad78447458a72d85554f0fb4f/src/site/resources/images/request-context.png
--------------------------------------------------------------------------------
/src/site/resources/img/glyphicons-halflings-white.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/logging-log4j-audit/f56a72d86fc77d7ad78447458a72d85554f0fb4f/src/site/resources/img/glyphicons-halflings-white.png
--------------------------------------------------------------------------------
/src/site/resources/img/glyphicons-halflings.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/logging-log4j-audit/f56a72d86fc77d7ad78447458a72d85554f0fb4f/src/site/resources/img/glyphicons-halflings.png
--------------------------------------------------------------------------------