diff --git a/Dockerfile b/Dockerfile index bb8cbdb84..2eec4e2b9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,21 @@ +# +# TermIt +# Copyright (C) 2023 Czech Technical University in Prague +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# + FROM maven:3-eclipse-temurin-17 as build WORKDIR /termit diff --git a/pom.xml b/pom.xml index 3a08b4394..afa9e7cad 100644 --- a/pom.xml +++ b/pom.xml @@ -7,11 +7,11 @@ org.springframework.boot spring-boot-starter-parent - 3.1.3 + 3.1.5 termit - 3.0.1 + 3.0.2 TermIt Terminology manager based on Semantic Web technologies. ${packaging} @@ -28,8 +28,8 @@ 2.7.0 1.5.5.Final 2.2.0 - 1.1.3 - 0.13.2 + 1.1.4 + 0.14.0 1.9.20 @@ -110,7 +110,7 @@ org.eclipse.rdf4j rdf4j-rio-rdfxml - 4.3.4 + 4.3.7 @@ -575,6 +575,32 @@ + + + com.mycila + license-maven-plugin + 3.0 + + + SLASHSTAR_STYLE + +
header.txt
+ + .github/** + src/test/resources/** + src/main/resources/** + license.txt + README.md + **/*.txt + **/*.md + **/*.yml + **/*.ttl + **/*.sh + pom.xml + .editorconfig + +
+
de.qaware.maven go-offline-maven-plugin diff --git a/src/main/java/cz/cvut/kbss/termit/TermItApplication.java b/src/main/java/cz/cvut/kbss/termit/TermItApplication.java index b0ec82aae..657a04ba2 100644 --- a/src/main/java/cz/cvut/kbss/termit/TermItApplication.java +++ b/src/main/java/cz/cvut/kbss/termit/TermItApplication.java @@ -1,15 +1,31 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit; -import cz.cvut.kbss.termit.util.Configuration; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.builder.SpringApplicationBuilder; -import org.springframework.boot.context.properties.EnableConfigurationProperties; +import org.springframework.boot.context.properties.ConfigurationPropertiesScan; import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; import org.springframework.security.core.context.SecurityContextHolder; @SpringBootApplication -@EnableConfigurationProperties({Configuration.class, Configuration.Persistence.class, Configuration.Repository.class}) +@ConfigurationPropertiesScan public class TermItApplication extends SpringBootServletInitializer { @Override diff --git a/src/main/java/cz/cvut/kbss/termit/aspect/ChangeTrackingAspect.java b/src/main/java/cz/cvut/kbss/termit/aspect/ChangeTrackingAspect.java index 0660e27fa..348f8ef31 100644 --- a/src/main/java/cz/cvut/kbss/termit/aspect/ChangeTrackingAspect.java +++ b/src/main/java/cz/cvut/kbss/termit/aspect/ChangeTrackingAspect.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.aspect; import cz.cvut.kbss.termit.model.Asset; diff --git a/src/main/java/cz/cvut/kbss/termit/aspect/RefreshLastModifiedAspect.java b/src/main/java/cz/cvut/kbss/termit/aspect/RefreshLastModifiedAspect.java index 24e00c114..a977d083b 100644 --- a/src/main/java/cz/cvut/kbss/termit/aspect/RefreshLastModifiedAspect.java +++ b/src/main/java/cz/cvut/kbss/termit/aspect/RefreshLastModifiedAspect.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.aspect; import cz.cvut.kbss.termit.asset.provenance.SupportsLastModification; diff --git a/src/main/java/cz/cvut/kbss/termit/aspect/VocabularyContentModificationAspect.java b/src/main/java/cz/cvut/kbss/termit/aspect/VocabularyContentModificationAspect.java index 3aea37448..dae9c9304 100644 --- a/src/main/java/cz/cvut/kbss/termit/aspect/VocabularyContentModificationAspect.java +++ b/src/main/java/cz/cvut/kbss/termit/aspect/VocabularyContentModificationAspect.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.aspect; import cz.cvut.kbss.termit.event.VocabularyContentModified; diff --git a/src/main/java/cz/cvut/kbss/termit/asset/provenance/ModifiesData.java b/src/main/java/cz/cvut/kbss/termit/asset/provenance/ModifiesData.java index 41b98966b..c623a42d1 100644 --- a/src/main/java/cz/cvut/kbss/termit/asset/provenance/ModifiesData.java +++ b/src/main/java/cz/cvut/kbss/termit/asset/provenance/ModifiesData.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.asset.provenance; import cz.cvut.kbss.termit.aspect.RefreshLastModifiedAspect; diff --git a/src/main/java/cz/cvut/kbss/termit/asset/provenance/SupportsLastModification.java b/src/main/java/cz/cvut/kbss/termit/asset/provenance/SupportsLastModification.java index be16c631d..9fc1675c5 100644 --- a/src/main/java/cz/cvut/kbss/termit/asset/provenance/SupportsLastModification.java +++ b/src/main/java/cz/cvut/kbss/termit/asset/provenance/SupportsLastModification.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.asset.provenance; /** diff --git a/src/main/java/cz/cvut/kbss/termit/config/AppConfig.java b/src/main/java/cz/cvut/kbss/termit/config/AppConfig.java index fdbc6873e..ec216d2a3 100644 --- a/src/main/java/cz/cvut/kbss/termit/config/AppConfig.java +++ b/src/main/java/cz/cvut/kbss/termit/config/AppConfig.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.config; diff --git a/src/main/java/cz/cvut/kbss/termit/config/CacheConfig.java b/src/main/java/cz/cvut/kbss/termit/config/CacheConfig.java index d889e1257..c29b4751d 100644 --- a/src/main/java/cz/cvut/kbss/termit/config/CacheConfig.java +++ b/src/main/java/cz/cvut/kbss/termit/config/CacheConfig.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.config; import cz.cvut.kbss.termit.persistence.dao.acl.AccessControlListDao; diff --git a/src/main/java/cz/cvut/kbss/termit/config/OAuth2SecurityConfig.java b/src/main/java/cz/cvut/kbss/termit/config/OAuth2SecurityConfig.java index 0eb2e31e6..cc5184416 100644 --- a/src/main/java/cz/cvut/kbss/termit/config/OAuth2SecurityConfig.java +++ b/src/main/java/cz/cvut/kbss/termit/config/OAuth2SecurityConfig.java @@ -1,8 +1,26 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.config; import cz.cvut.kbss.termit.security.AuthenticationSuccess; import cz.cvut.kbss.termit.security.HierarchicalRoleBasedAuthorityMapper; import cz.cvut.kbss.termit.security.SecurityConstants; +import cz.cvut.kbss.termit.util.oidc.OidcGrantedAuthoritiesExtractor; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; @@ -25,9 +43,6 @@ import org.springframework.web.cors.CorsConfigurationSource; import java.util.Collection; -import java.util.Collections; -import java.util.List; -import java.util.Map; import static org.springframework.security.web.util.matcher.AntPathRequestMatcher.antMatcher; @@ -75,21 +90,10 @@ private CorsConfigurationSource corsConfigurationSource() { private Converter grantedAuthoritiesExtractor() { return source -> { - final Collection authorities = new GrantedAuthoritiesExtractor().convert(source); - return new JwtAuthenticationToken(source, authorities); + final Collection authorities = new OidcGrantedAuthoritiesExtractor( + config.getSecurity()).convert(source); + return new JwtAuthenticationToken(source, + new HierarchicalRoleBasedAuthorityMapper().mapAuthorities(authorities)); }; } - - private class GrantedAuthoritiesExtractor implements Converter> { - public Collection convert(Jwt jwt) { - final List allAuths = ( - (Map>) jwt.getClaims().getOrDefault( - OAuth2SecurityConfig.this.config.getSecurity().getRoleClaim(), Collections.emptyMap()) - ).getOrDefault("roles", Collections.emptyList()) - .stream() - .map(Object::toString) - .map(SimpleGrantedAuthority::new).toList(); - return new HierarchicalRoleBasedAuthorityMapper().mapAuthorities(allAuths); - } - } } diff --git a/src/main/java/cz/cvut/kbss/termit/config/PersistenceConfig.java b/src/main/java/cz/cvut/kbss/termit/config/PersistenceConfig.java index 0e09150e4..329983b4d 100644 --- a/src/main/java/cz/cvut/kbss/termit/config/PersistenceConfig.java +++ b/src/main/java/cz/cvut/kbss/termit/config/PersistenceConfig.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.config; diff --git a/src/main/java/cz/cvut/kbss/termit/config/SecurityConfig.java b/src/main/java/cz/cvut/kbss/termit/config/SecurityConfig.java index 9ae7ba447..85904dce6 100644 --- a/src/main/java/cz/cvut/kbss/termit/config/SecurityConfig.java +++ b/src/main/java/cz/cvut/kbss/termit/config/SecurityConfig.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.config; diff --git a/src/main/java/cz/cvut/kbss/termit/config/ServiceConfig.java b/src/main/java/cz/cvut/kbss/termit/config/ServiceConfig.java index 246059711..7f749d9ba 100644 --- a/src/main/java/cz/cvut/kbss/termit/config/ServiceConfig.java +++ b/src/main/java/cz/cvut/kbss/termit/config/ServiceConfig.java @@ -1,27 +1,39 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.config; import com.fasterxml.jackson.databind.ObjectMapper; import cz.cvut.kbss.termit.aspect.ChangeTrackingAspect; import cz.cvut.kbss.termit.aspect.VocabularyContentModificationAspect; +import cz.cvut.kbss.termit.exception.ResourceNotFoundException; +import cz.cvut.kbss.termit.util.Utils; import org.apache.hc.client5.http.classic.HttpClient; import org.apache.hc.client5.http.impl.DefaultRedirectStrategy; import org.apache.hc.client5.http.impl.classic.HttpClientBuilder; import org.aspectj.lang.Aspects; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.core.io.ClassPathResource; +import org.springframework.core.io.FileSystemResource; +import org.springframework.core.io.Resource; import org.springframework.http.client.HttpComponentsClientHttpRequestFactory; import org.springframework.http.converter.ResourceHttpMessageConverter; import org.springframework.http.converter.StringHttpMessageConverter; @@ -37,6 +49,8 @@ @Configuration public class ServiceConfig { + private static final Logger LOG = LoggerFactory.getLogger(ServiceConfig.class); + @Bean public PasswordEncoder passwordEncoder() { return new BCryptPasswordEncoder(); @@ -71,12 +85,27 @@ public LocalValidatorFactoryBean validatorFactoryBean() { } @Bean("termTypesLanguage") - public ClassPathResource termTypesLanguageFile() { + public Resource termTypesLanguageFile(cz.cvut.kbss.termit.util.Configuration config) { + if (!Utils.isBlank(config.getLanguage().getTypes().getSource())) { + return createFileSystemResource(config.getLanguage().getTypes().getSource(), "types"); + } return new ClassPathResource("languages/types.ttl"); } + private Resource createFileSystemResource(String path, String type) { + final FileSystemResource source = new FileSystemResource(path); + if (!source.exists()) { + throw new ResourceNotFoundException(type + " language file '" + path + "' not found."); + } + LOG.info("Will load term {} from '{}'.", type, path); + return source; + } + @Bean("termStatesLanguage") - public ClassPathResource termStatesLanguageFile() { + public Resource termStatesLanguageFile(cz.cvut.kbss.termit.util.Configuration config) { + if (!Utils.isBlank(config.getLanguage().getStates().getSource())) { + return createFileSystemResource(config.getLanguage().getStates().getSource(), "states"); + } return new ClassPathResource("languages/states.ttl"); } diff --git a/src/main/java/cz/cvut/kbss/termit/config/SessionTimeoutManager.java b/src/main/java/cz/cvut/kbss/termit/config/SessionTimeoutManager.java index 4d339d30e..e4896c0ca 100644 --- a/src/main/java/cz/cvut/kbss/termit/config/SessionTimeoutManager.java +++ b/src/main/java/cz/cvut/kbss/termit/config/SessionTimeoutManager.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.config; import cz.cvut.kbss.termit.security.SecurityConstants; diff --git a/src/main/java/cz/cvut/kbss/termit/config/WebAppConfig.java b/src/main/java/cz/cvut/kbss/termit/config/WebAppConfig.java index 6f87423e2..fe961c17d 100644 --- a/src/main/java/cz/cvut/kbss/termit/config/WebAppConfig.java +++ b/src/main/java/cz/cvut/kbss/termit/config/WebAppConfig.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.config; diff --git a/src/main/java/cz/cvut/kbss/termit/dto/AggregatedChangeInfo.java b/src/main/java/cz/cvut/kbss/termit/dto/AggregatedChangeInfo.java index f9a742f38..6624d8fbd 100644 --- a/src/main/java/cz/cvut/kbss/termit/dto/AggregatedChangeInfo.java +++ b/src/main/java/cz/cvut/kbss/termit/dto/AggregatedChangeInfo.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.dto; import cz.cvut.kbss.jopa.model.annotations.*; diff --git a/src/main/java/cz/cvut/kbss/termit/dto/ConfigurationDto.java b/src/main/java/cz/cvut/kbss/termit/dto/ConfigurationDto.java index fce22c500..d8c4cb821 100644 --- a/src/main/java/cz/cvut/kbss/termit/dto/ConfigurationDto.java +++ b/src/main/java/cz/cvut/kbss/termit/dto/ConfigurationDto.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.dto; import cz.cvut.kbss.jopa.model.annotations.*; diff --git a/src/main/java/cz/cvut/kbss/termit/dto/PrefixDeclaration.java b/src/main/java/cz/cvut/kbss/termit/dto/PrefixDeclaration.java index f7bc40245..94a5f23b4 100644 --- a/src/main/java/cz/cvut/kbss/termit/dto/PrefixDeclaration.java +++ b/src/main/java/cz/cvut/kbss/termit/dto/PrefixDeclaration.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.dto; import java.util.Objects; diff --git a/src/main/java/cz/cvut/kbss/termit/dto/RdfsResource.java b/src/main/java/cz/cvut/kbss/termit/dto/RdfsResource.java index 9a1c66c80..9b21b85aa 100644 --- a/src/main/java/cz/cvut/kbss/termit/dto/RdfsResource.java +++ b/src/main/java/cz/cvut/kbss/termit/dto/RdfsResource.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/dto/RecentlyCommentedAsset.java b/src/main/java/cz/cvut/kbss/termit/dto/RecentlyCommentedAsset.java index 26c0e3af5..03419f92c 100644 --- a/src/main/java/cz/cvut/kbss/termit/dto/RecentlyCommentedAsset.java +++ b/src/main/java/cz/cvut/kbss/termit/dto/RecentlyCommentedAsset.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.dto; import cz.cvut.kbss.jopa.model.annotations.*; diff --git a/src/main/java/cz/cvut/kbss/termit/dto/RecentlyModifiedAsset.java b/src/main/java/cz/cvut/kbss/termit/dto/RecentlyModifiedAsset.java index e9575fcdd..e8f2afb9d 100644 --- a/src/main/java/cz/cvut/kbss/termit/dto/RecentlyModifiedAsset.java +++ b/src/main/java/cz/cvut/kbss/termit/dto/RecentlyModifiedAsset.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.dto; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/cz/cvut/kbss/termit/dto/Snapshot.java b/src/main/java/cz/cvut/kbss/termit/dto/Snapshot.java index 2a267deb6..ffd48370d 100644 --- a/src/main/java/cz/cvut/kbss/termit/dto/Snapshot.java +++ b/src/main/java/cz/cvut/kbss/termit/dto/Snapshot.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.dto; import cz.cvut.kbss.jopa.model.annotations.*; diff --git a/src/main/java/cz/cvut/kbss/termit/dto/TermInfo.java b/src/main/java/cz/cvut/kbss/termit/dto/TermInfo.java index 3027bd5c3..4b1e46184 100644 --- a/src/main/java/cz/cvut/kbss/termit/dto/TermInfo.java +++ b/src/main/java/cz/cvut/kbss/termit/dto/TermInfo.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.dto; diff --git a/src/main/java/cz/cvut/kbss/termit/dto/TextAnalysisInput.java b/src/main/java/cz/cvut/kbss/termit/dto/TextAnalysisInput.java index 80a08b068..72537cad0 100644 --- a/src/main/java/cz/cvut/kbss/termit/dto/TextAnalysisInput.java +++ b/src/main/java/cz/cvut/kbss/termit/dto/TextAnalysisInput.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/dto/VocabularyDto.java b/src/main/java/cz/cvut/kbss/termit/dto/VocabularyDto.java index 882950cb3..7b990a1ce 100644 --- a/src/main/java/cz/cvut/kbss/termit/dto/VocabularyDto.java +++ b/src/main/java/cz/cvut/kbss/termit/dto/VocabularyDto.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.dto; import cz.cvut.kbss.jopa.model.annotations.OWLObjectProperty; diff --git a/src/main/java/cz/cvut/kbss/termit/dto/acl/AccessControlListDto.java b/src/main/java/cz/cvut/kbss/termit/dto/acl/AccessControlListDto.java index 8d8e28120..53a4d6251 100644 --- a/src/main/java/cz/cvut/kbss/termit/dto/acl/AccessControlListDto.java +++ b/src/main/java/cz/cvut/kbss/termit/dto/acl/AccessControlListDto.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.dto.acl; import cz.cvut.kbss.jopa.model.annotations.OWLClass; diff --git a/src/main/java/cz/cvut/kbss/termit/dto/acl/AccessControlRecordDto.java b/src/main/java/cz/cvut/kbss/termit/dto/acl/AccessControlRecordDto.java index 0d3ce28dd..d92f9853b 100644 --- a/src/main/java/cz/cvut/kbss/termit/dto/acl/AccessControlRecordDto.java +++ b/src/main/java/cz/cvut/kbss/termit/dto/acl/AccessControlRecordDto.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.dto.acl; import cz.cvut.kbss.jopa.model.annotations.*; diff --git a/src/main/java/cz/cvut/kbss/termit/dto/acl/AccessHolderDto.java b/src/main/java/cz/cvut/kbss/termit/dto/acl/AccessHolderDto.java index cf2993a08..22b0d3bcb 100644 --- a/src/main/java/cz/cvut/kbss/termit/dto/acl/AccessHolderDto.java +++ b/src/main/java/cz/cvut/kbss/termit/dto/acl/AccessHolderDto.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.dto.acl; import cz.cvut.kbss.jopa.model.MultilingualString; diff --git a/src/main/java/cz/cvut/kbss/termit/dto/assignment/AbstractAssignmentsInfo.java b/src/main/java/cz/cvut/kbss/termit/dto/assignment/AbstractAssignmentsInfo.java index c056e2201..23d55f8d9 100644 --- a/src/main/java/cz/cvut/kbss/termit/dto/assignment/AbstractAssignmentsInfo.java +++ b/src/main/java/cz/cvut/kbss/termit/dto/assignment/AbstractAssignmentsInfo.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/dto/assignment/ResourceTermOccurrences.java b/src/main/java/cz/cvut/kbss/termit/dto/assignment/ResourceTermOccurrences.java index 4bd6ec796..b77431723 100644 --- a/src/main/java/cz/cvut/kbss/termit/dto/assignment/ResourceTermOccurrences.java +++ b/src/main/java/cz/cvut/kbss/termit/dto/assignment/ResourceTermOccurrences.java @@ -1,17 +1,17 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague - *

+ * Copyright (C) 2023 Czech Technical University in Prague + * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. - *

+ * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - *

+ * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ diff --git a/src/main/java/cz/cvut/kbss/termit/dto/assignment/TermOccurrences.java b/src/main/java/cz/cvut/kbss/termit/dto/assignment/TermOccurrences.java index 3e06e426a..17d388961 100644 --- a/src/main/java/cz/cvut/kbss/termit/dto/assignment/TermOccurrences.java +++ b/src/main/java/cz/cvut/kbss/termit/dto/assignment/TermOccurrences.java @@ -1,17 +1,17 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague - *

+ * Copyright (C) 2023 Czech Technical University in Prague + * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. - *

+ * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - *

+ * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ diff --git a/src/main/java/cz/cvut/kbss/termit/dto/listing/DocumentDto.java b/src/main/java/cz/cvut/kbss/termit/dto/listing/DocumentDto.java index 24a5c18d5..74048d067 100644 --- a/src/main/java/cz/cvut/kbss/termit/dto/listing/DocumentDto.java +++ b/src/main/java/cz/cvut/kbss/termit/dto/listing/DocumentDto.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.dto.listing; import cz.cvut.kbss.jopa.model.annotations.OWLClass; diff --git a/src/main/java/cz/cvut/kbss/termit/dto/listing/TermDto.java b/src/main/java/cz/cvut/kbss/termit/dto/listing/TermDto.java index db4c621c2..d46c851b6 100644 --- a/src/main/java/cz/cvut/kbss/termit/dto/listing/TermDto.java +++ b/src/main/java/cz/cvut/kbss/termit/dto/listing/TermDto.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.dto.listing; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; diff --git a/src/main/java/cz/cvut/kbss/termit/dto/listing/VocabularyDto.java b/src/main/java/cz/cvut/kbss/termit/dto/listing/VocabularyDto.java index ea2f833ef..eee87a3f4 100644 --- a/src/main/java/cz/cvut/kbss/termit/dto/listing/VocabularyDto.java +++ b/src/main/java/cz/cvut/kbss/termit/dto/listing/VocabularyDto.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.dto.listing; import cz.cvut.kbss.jopa.model.annotations.OWLAnnotationProperty; diff --git a/src/main/java/cz/cvut/kbss/termit/dto/mapper/AssetToRdfsResourceMapper.java b/src/main/java/cz/cvut/kbss/termit/dto/mapper/AssetToRdfsResourceMapper.java index f0d9aed7e..64901e4ac 100644 --- a/src/main/java/cz/cvut/kbss/termit/dto/mapper/AssetToRdfsResourceMapper.java +++ b/src/main/java/cz/cvut/kbss/termit/dto/mapper/AssetToRdfsResourceMapper.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.dto.mapper; import cz.cvut.kbss.jopa.model.MultilingualString; diff --git a/src/main/java/cz/cvut/kbss/termit/dto/mapper/DtoMapper.java b/src/main/java/cz/cvut/kbss/termit/dto/mapper/DtoMapper.java index 28bea107c..4a5992ef2 100644 --- a/src/main/java/cz/cvut/kbss/termit/dto/mapper/DtoMapper.java +++ b/src/main/java/cz/cvut/kbss/termit/dto/mapper/DtoMapper.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.dto.mapper; import cz.cvut.kbss.jopa.model.MultilingualString; @@ -13,6 +30,7 @@ import cz.cvut.kbss.termit.model.resource.Document; import cz.cvut.kbss.termit.model.util.EntityToOwlClassMapper; import cz.cvut.kbss.termit.util.Configuration; +import cz.cvut.kbss.termit.util.Utils; import org.mapstruct.Mapper; import org.springframework.beans.factory.annotation.Autowired; @@ -49,8 +67,7 @@ private AccessHolderDto accessHolderToDto(T holde switch (type) { case cz.cvut.kbss.termit.util.Vocabulary.s_c_uzivatel_termitu: final User user = (User) holder; - assert user.getTypes() != null; - user.getTypes().forEach(dto::addType); + Utils.emptyIfNull(user.getTypes()).forEach(dto::addType); dto.setLabel(MultilingualString.create(user.getFullName(), config.getPersistence().getLanguage())); break; diff --git a/src/main/java/cz/cvut/kbss/termit/dto/readonly/ReadOnlyTerm.java b/src/main/java/cz/cvut/kbss/termit/dto/readonly/ReadOnlyTerm.java index dbab34fdc..cd9a2ac23 100644 --- a/src/main/java/cz/cvut/kbss/termit/dto/readonly/ReadOnlyTerm.java +++ b/src/main/java/cz/cvut/kbss/termit/dto/readonly/ReadOnlyTerm.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.dto.readonly; import cz.cvut.kbss.jopa.model.MultilingualString; diff --git a/src/main/java/cz/cvut/kbss/termit/dto/readonly/ReadOnlyVocabulary.java b/src/main/java/cz/cvut/kbss/termit/dto/readonly/ReadOnlyVocabulary.java index fd15b11cf..20f47d80d 100644 --- a/src/main/java/cz/cvut/kbss/termit/dto/readonly/ReadOnlyVocabulary.java +++ b/src/main/java/cz/cvut/kbss/termit/dto/readonly/ReadOnlyVocabulary.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.dto.readonly; import cz.cvut.kbss.jopa.model.annotations.FetchType; diff --git a/src/main/java/cz/cvut/kbss/termit/dto/search/FacetedSearchResult.java b/src/main/java/cz/cvut/kbss/termit/dto/search/FacetedSearchResult.java index 1b79ffcc3..cb54fdbc7 100644 --- a/src/main/java/cz/cvut/kbss/termit/dto/search/FacetedSearchResult.java +++ b/src/main/java/cz/cvut/kbss/termit/dto/search/FacetedSearchResult.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.dto.search; import cz.cvut.kbss.jopa.model.MultilingualString; diff --git a/src/main/java/cz/cvut/kbss/termit/dto/search/FullTextSearchResult.java b/src/main/java/cz/cvut/kbss/termit/dto/search/FullTextSearchResult.java index 80a7bed03..cb83e25d7 100644 --- a/src/main/java/cz/cvut/kbss/termit/dto/search/FullTextSearchResult.java +++ b/src/main/java/cz/cvut/kbss/termit/dto/search/FullTextSearchResult.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.dto.search; diff --git a/src/main/java/cz/cvut/kbss/termit/dto/search/MatchType.java b/src/main/java/cz/cvut/kbss/termit/dto/search/MatchType.java index 0031d07b0..ca49cfb37 100644 --- a/src/main/java/cz/cvut/kbss/termit/dto/search/MatchType.java +++ b/src/main/java/cz/cvut/kbss/termit/dto/search/MatchType.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.dto.search; /** diff --git a/src/main/java/cz/cvut/kbss/termit/dto/search/SearchParam.java b/src/main/java/cz/cvut/kbss/termit/dto/search/SearchParam.java index 19a131421..207652649 100644 --- a/src/main/java/cz/cvut/kbss/termit/dto/search/SearchParam.java +++ b/src/main/java/cz/cvut/kbss/termit/dto/search/SearchParam.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.dto.search; import cz.cvut.kbss.termit.exception.ValidationException; diff --git a/src/main/java/cz/cvut/kbss/termit/event/DocumentRenameEvent.java b/src/main/java/cz/cvut/kbss/termit/event/DocumentRenameEvent.java index 0728ccbef..c6510df71 100644 --- a/src/main/java/cz/cvut/kbss/termit/event/DocumentRenameEvent.java +++ b/src/main/java/cz/cvut/kbss/termit/event/DocumentRenameEvent.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.event; import cz.cvut.kbss.termit.model.resource.Document; diff --git a/src/main/java/cz/cvut/kbss/termit/event/EvictCacheEvent.java b/src/main/java/cz/cvut/kbss/termit/event/EvictCacheEvent.java index 03c7fe4dd..0832c740e 100644 --- a/src/main/java/cz/cvut/kbss/termit/event/EvictCacheEvent.java +++ b/src/main/java/cz/cvut/kbss/termit/event/EvictCacheEvent.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.event; import org.springframework.context.ApplicationEvent; diff --git a/src/main/java/cz/cvut/kbss/termit/event/FileRenameEvent.java b/src/main/java/cz/cvut/kbss/termit/event/FileRenameEvent.java index 7f3d0f1f3..c82c84837 100644 --- a/src/main/java/cz/cvut/kbss/termit/event/FileRenameEvent.java +++ b/src/main/java/cz/cvut/kbss/termit/event/FileRenameEvent.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.event; import cz.cvut.kbss.termit.model.resource.File; diff --git a/src/main/java/cz/cvut/kbss/termit/event/LoginAttemptsThresholdExceeded.java b/src/main/java/cz/cvut/kbss/termit/event/LoginAttemptsThresholdExceeded.java index fc300ad2a..a6dfb83fa 100644 --- a/src/main/java/cz/cvut/kbss/termit/event/LoginAttemptsThresholdExceeded.java +++ b/src/main/java/cz/cvut/kbss/termit/event/LoginAttemptsThresholdExceeded.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/event/LoginFailureEvent.java b/src/main/java/cz/cvut/kbss/termit/event/LoginFailureEvent.java index deb0d9d4f..f4bb50576 100644 --- a/src/main/java/cz/cvut/kbss/termit/event/LoginFailureEvent.java +++ b/src/main/java/cz/cvut/kbss/termit/event/LoginFailureEvent.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/event/LoginSuccessEvent.java b/src/main/java/cz/cvut/kbss/termit/event/LoginSuccessEvent.java index 57045e292..d014c0ec4 100644 --- a/src/main/java/cz/cvut/kbss/termit/event/LoginSuccessEvent.java +++ b/src/main/java/cz/cvut/kbss/termit/event/LoginSuccessEvent.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/event/RefreshLastModifiedEvent.java b/src/main/java/cz/cvut/kbss/termit/event/RefreshLastModifiedEvent.java index 1fd970bc9..21331782d 100644 --- a/src/main/java/cz/cvut/kbss/termit/event/RefreshLastModifiedEvent.java +++ b/src/main/java/cz/cvut/kbss/termit/event/RefreshLastModifiedEvent.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.event; import org.springframework.context.ApplicationEvent; diff --git a/src/main/java/cz/cvut/kbss/termit/event/UserEvent.java b/src/main/java/cz/cvut/kbss/termit/event/UserEvent.java index 3c53d409e..218d19351 100644 --- a/src/main/java/cz/cvut/kbss/termit/event/UserEvent.java +++ b/src/main/java/cz/cvut/kbss/termit/event/UserEvent.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/event/VocabularyContentModified.java b/src/main/java/cz/cvut/kbss/termit/event/VocabularyContentModified.java index d86b42878..01595d0fa 100644 --- a/src/main/java/cz/cvut/kbss/termit/event/VocabularyContentModified.java +++ b/src/main/java/cz/cvut/kbss/termit/event/VocabularyContentModified.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.event; import org.springframework.context.ApplicationEvent; diff --git a/src/main/java/cz/cvut/kbss/termit/event/VocabularyCreatedEvent.java b/src/main/java/cz/cvut/kbss/termit/event/VocabularyCreatedEvent.java index b4cf649a8..e1da1aeab 100644 --- a/src/main/java/cz/cvut/kbss/termit/event/VocabularyCreatedEvent.java +++ b/src/main/java/cz/cvut/kbss/termit/event/VocabularyCreatedEvent.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.event; import org.springframework.context.ApplicationEvent; diff --git a/src/main/java/cz/cvut/kbss/termit/exception/AmbiguousVocabularyContextException.java b/src/main/java/cz/cvut/kbss/termit/exception/AmbiguousVocabularyContextException.java index 5fb463a1b..bb059c3e6 100644 --- a/src/main/java/cz/cvut/kbss/termit/exception/AmbiguousVocabularyContextException.java +++ b/src/main/java/cz/cvut/kbss/termit/exception/AmbiguousVocabularyContextException.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.exception; /** diff --git a/src/main/java/cz/cvut/kbss/termit/exception/AnnotationGenerationException.java b/src/main/java/cz/cvut/kbss/termit/exception/AnnotationGenerationException.java index a06a3673c..2b50fd9d4 100644 --- a/src/main/java/cz/cvut/kbss/termit/exception/AnnotationGenerationException.java +++ b/src/main/java/cz/cvut/kbss/termit/exception/AnnotationGenerationException.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/exception/AssetRemovalException.java b/src/main/java/cz/cvut/kbss/termit/exception/AssetRemovalException.java index 4dd22770e..e4789f906 100644 --- a/src/main/java/cz/cvut/kbss/termit/exception/AssetRemovalException.java +++ b/src/main/java/cz/cvut/kbss/termit/exception/AssetRemovalException.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2020 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/exception/AuthorizationException.java b/src/main/java/cz/cvut/kbss/termit/exception/AuthorizationException.java index 48ece168b..39e39fd59 100644 --- a/src/main/java/cz/cvut/kbss/termit/exception/AuthorizationException.java +++ b/src/main/java/cz/cvut/kbss/termit/exception/AuthorizationException.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/exception/DocumentManagerException.java b/src/main/java/cz/cvut/kbss/termit/exception/DocumentManagerException.java index 7613fddaa..53b4507fb 100644 --- a/src/main/java/cz/cvut/kbss/termit/exception/DocumentManagerException.java +++ b/src/main/java/cz/cvut/kbss/termit/exception/DocumentManagerException.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.exception; /** diff --git a/src/main/java/cz/cvut/kbss/termit/exception/IncompleteJwtException.java b/src/main/java/cz/cvut/kbss/termit/exception/IncompleteJwtException.java index c397c44be..7f14290ab 100644 --- a/src/main/java/cz/cvut/kbss/termit/exception/IncompleteJwtException.java +++ b/src/main/java/cz/cvut/kbss/termit/exception/IncompleteJwtException.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/exception/InvalidLanguageConstantException.java b/src/main/java/cz/cvut/kbss/termit/exception/InvalidLanguageConstantException.java index d29c073a9..de04c6f03 100644 --- a/src/main/java/cz/cvut/kbss/termit/exception/InvalidLanguageConstantException.java +++ b/src/main/java/cz/cvut/kbss/termit/exception/InvalidLanguageConstantException.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.exception; /** diff --git a/src/main/java/cz/cvut/kbss/termit/exception/InvalidParameterException.java b/src/main/java/cz/cvut/kbss/termit/exception/InvalidParameterException.java index a8e3aa17d..5c518bba3 100644 --- a/src/main/java/cz/cvut/kbss/termit/exception/InvalidParameterException.java +++ b/src/main/java/cz/cvut/kbss/termit/exception/InvalidParameterException.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.exception; /** diff --git a/src/main/java/cz/cvut/kbss/termit/exception/InvalidTermStateException.java b/src/main/java/cz/cvut/kbss/termit/exception/InvalidTermStateException.java index d92e9d5e1..987afcbad 100644 --- a/src/main/java/cz/cvut/kbss/termit/exception/InvalidTermStateException.java +++ b/src/main/java/cz/cvut/kbss/termit/exception/InvalidTermStateException.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.exception; /** diff --git a/src/main/java/cz/cvut/kbss/termit/exception/JwtException.java b/src/main/java/cz/cvut/kbss/termit/exception/JwtException.java index 170173ecf..1738db9e6 100644 --- a/src/main/java/cz/cvut/kbss/termit/exception/JwtException.java +++ b/src/main/java/cz/cvut/kbss/termit/exception/JwtException.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/exception/LanguageRetrievalException.java b/src/main/java/cz/cvut/kbss/termit/exception/LanguageRetrievalException.java index 2e1f4e2b6..49e06a284 100644 --- a/src/main/java/cz/cvut/kbss/termit/exception/LanguageRetrievalException.java +++ b/src/main/java/cz/cvut/kbss/termit/exception/LanguageRetrievalException.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2020 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/exception/NotFoundException.java b/src/main/java/cz/cvut/kbss/termit/exception/NotFoundException.java index ca7061001..6447e6cf2 100644 --- a/src/main/java/cz/cvut/kbss/termit/exception/NotFoundException.java +++ b/src/main/java/cz/cvut/kbss/termit/exception/NotFoundException.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/exception/PersistenceException.java b/src/main/java/cz/cvut/kbss/termit/exception/PersistenceException.java index 440aaf6c2..41b09c27e 100644 --- a/src/main/java/cz/cvut/kbss/termit/exception/PersistenceException.java +++ b/src/main/java/cz/cvut/kbss/termit/exception/PersistenceException.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/exception/PostmanException.java b/src/main/java/cz/cvut/kbss/termit/exception/PostmanException.java index 73cad3ac6..d30a85a5e 100644 --- a/src/main/java/cz/cvut/kbss/termit/exception/PostmanException.java +++ b/src/main/java/cz/cvut/kbss/termit/exception/PostmanException.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.exception; /** diff --git a/src/main/java/cz/cvut/kbss/termit/exception/ResourceExistsException.java b/src/main/java/cz/cvut/kbss/termit/exception/ResourceExistsException.java index 0aab2fe30..fea4f82e0 100644 --- a/src/main/java/cz/cvut/kbss/termit/exception/ResourceExistsException.java +++ b/src/main/java/cz/cvut/kbss/termit/exception/ResourceExistsException.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/exception/ResourceNotFoundException.java b/src/main/java/cz/cvut/kbss/termit/exception/ResourceNotFoundException.java index 9388da5f3..6bfe74ae6 100644 --- a/src/main/java/cz/cvut/kbss/termit/exception/ResourceNotFoundException.java +++ b/src/main/java/cz/cvut/kbss/termit/exception/ResourceNotFoundException.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.exception; /** diff --git a/src/main/java/cz/cvut/kbss/termit/exception/SnapshotNotEditableException.java b/src/main/java/cz/cvut/kbss/termit/exception/SnapshotNotEditableException.java index daff03d86..19b175496 100644 --- a/src/main/java/cz/cvut/kbss/termit/exception/SnapshotNotEditableException.java +++ b/src/main/java/cz/cvut/kbss/termit/exception/SnapshotNotEditableException.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.exception; import cz.cvut.kbss.termit.model.util.HasIdentifier; diff --git a/src/main/java/cz/cvut/kbss/termit/exception/SuppressibleLogging.java b/src/main/java/cz/cvut/kbss/termit/exception/SuppressibleLogging.java index f3f67192d..19c3f207b 100644 --- a/src/main/java/cz/cvut/kbss/termit/exception/SuppressibleLogging.java +++ b/src/main/java/cz/cvut/kbss/termit/exception/SuppressibleLogging.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.exception; import java.lang.annotation.ElementType; diff --git a/src/main/java/cz/cvut/kbss/termit/exception/TermItException.java b/src/main/java/cz/cvut/kbss/termit/exception/TermItException.java index a9a97bedf..f433481c2 100644 --- a/src/main/java/cz/cvut/kbss/termit/exception/TermItException.java +++ b/src/main/java/cz/cvut/kbss/termit/exception/TermItException.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.exception; diff --git a/src/main/java/cz/cvut/kbss/termit/exception/TokenExpiredException.java b/src/main/java/cz/cvut/kbss/termit/exception/TokenExpiredException.java index f5184ec01..6964378f5 100644 --- a/src/main/java/cz/cvut/kbss/termit/exception/TokenExpiredException.java +++ b/src/main/java/cz/cvut/kbss/termit/exception/TokenExpiredException.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/exception/UnsupportedAssetOperationException.java b/src/main/java/cz/cvut/kbss/termit/exception/UnsupportedAssetOperationException.java index 85b8dac30..781bbca45 100644 --- a/src/main/java/cz/cvut/kbss/termit/exception/UnsupportedAssetOperationException.java +++ b/src/main/java/cz/cvut/kbss/termit/exception/UnsupportedAssetOperationException.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/exception/UnsupportedOperationException.java b/src/main/java/cz/cvut/kbss/termit/exception/UnsupportedOperationException.java index 47b26a920..e3c6d8565 100644 --- a/src/main/java/cz/cvut/kbss/termit/exception/UnsupportedOperationException.java +++ b/src/main/java/cz/cvut/kbss/termit/exception/UnsupportedOperationException.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.exception; /** diff --git a/src/main/java/cz/cvut/kbss/termit/exception/UnsupportedSearchFacetException.java b/src/main/java/cz/cvut/kbss/termit/exception/UnsupportedSearchFacetException.java index 1a58c04ec..239e7e421 100644 --- a/src/main/java/cz/cvut/kbss/termit/exception/UnsupportedSearchFacetException.java +++ b/src/main/java/cz/cvut/kbss/termit/exception/UnsupportedSearchFacetException.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.exception; /** diff --git a/src/main/java/cz/cvut/kbss/termit/exception/ValidationException.java b/src/main/java/cz/cvut/kbss/termit/exception/ValidationException.java index c1e38fbc8..343a6a79c 100644 --- a/src/main/java/cz/cvut/kbss/termit/exception/ValidationException.java +++ b/src/main/java/cz/cvut/kbss/termit/exception/ValidationException.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/exception/WebServiceIntegrationException.java b/src/main/java/cz/cvut/kbss/termit/exception/WebServiceIntegrationException.java index db678ef2a..107871ed3 100644 --- a/src/main/java/cz/cvut/kbss/termit/exception/WebServiceIntegrationException.java +++ b/src/main/java/cz/cvut/kbss/termit/exception/WebServiceIntegrationException.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/exception/importing/UnsupportedImportMediaTypeException.java b/src/main/java/cz/cvut/kbss/termit/exception/importing/UnsupportedImportMediaTypeException.java index 5b0ab8458..6259fc337 100644 --- a/src/main/java/cz/cvut/kbss/termit/exception/importing/UnsupportedImportMediaTypeException.java +++ b/src/main/java/cz/cvut/kbss/termit/exception/importing/UnsupportedImportMediaTypeException.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.exception.importing; /** diff --git a/src/main/java/cz/cvut/kbss/termit/exception/importing/VocabularyExistsException.java b/src/main/java/cz/cvut/kbss/termit/exception/importing/VocabularyExistsException.java index 1c80ba5e8..497c5aa86 100644 --- a/src/main/java/cz/cvut/kbss/termit/exception/importing/VocabularyExistsException.java +++ b/src/main/java/cz/cvut/kbss/termit/exception/importing/VocabularyExistsException.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.exception.importing; /** diff --git a/src/main/java/cz/cvut/kbss/termit/exception/importing/VocabularyImportException.java b/src/main/java/cz/cvut/kbss/termit/exception/importing/VocabularyImportException.java index 3fca3ec44..68a81ce84 100644 --- a/src/main/java/cz/cvut/kbss/termit/exception/importing/VocabularyImportException.java +++ b/src/main/java/cz/cvut/kbss/termit/exception/importing/VocabularyImportException.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/model/AbstractEntity.java b/src/main/java/cz/cvut/kbss/termit/model/AbstractEntity.java index 30e69a611..f08fac228 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/AbstractEntity.java +++ b/src/main/java/cz/cvut/kbss/termit/model/AbstractEntity.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/model/AbstractTerm.java b/src/main/java/cz/cvut/kbss/termit/model/AbstractTerm.java index 1df423be8..f1f4b5fc7 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/AbstractTerm.java +++ b/src/main/java/cz/cvut/kbss/termit/model/AbstractTerm.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.model; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/cz/cvut/kbss/termit/model/AccessControlAgent.java b/src/main/java/cz/cvut/kbss/termit/model/AccessControlAgent.java index 61fb827c0..555959d80 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/AccessControlAgent.java +++ b/src/main/java/cz/cvut/kbss/termit/model/AccessControlAgent.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.model; import cz.cvut.kbss.jopa.model.annotations.Id; diff --git a/src/main/java/cz/cvut/kbss/termit/model/Asset.java b/src/main/java/cz/cvut/kbss/termit/model/Asset.java index 4e427390e..20f4363f5 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/Asset.java +++ b/src/main/java/cz/cvut/kbss/termit/model/Asset.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.model; diff --git a/src/main/java/cz/cvut/kbss/termit/model/Glossary.java b/src/main/java/cz/cvut/kbss/termit/model/Glossary.java index 46ee9a109..33176e2e2 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/Glossary.java +++ b/src/main/java/cz/cvut/kbss/termit/model/Glossary.java @@ -1,17 +1,17 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague - *

+ * Copyright (C) 2023 Czech Technical University in Prague + * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. - *

+ * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - *

+ * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ diff --git a/src/main/java/cz/cvut/kbss/termit/model/Model.java b/src/main/java/cz/cvut/kbss/termit/model/Model.java index e17b18abb..90aa57548 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/Model.java +++ b/src/main/java/cz/cvut/kbss/termit/model/Model.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/model/Term.java b/src/main/java/cz/cvut/kbss/termit/model/Term.java index 269849ce6..2b1230c9d 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/Term.java +++ b/src/main/java/cz/cvut/kbss/termit/model/Term.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.model; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/cz/cvut/kbss/termit/model/TextAnalysisRecord.java b/src/main/java/cz/cvut/kbss/termit/model/TextAnalysisRecord.java index 384f8bc17..85456e47a 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/TextAnalysisRecord.java +++ b/src/main/java/cz/cvut/kbss/termit/model/TextAnalysisRecord.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/model/User.java b/src/main/java/cz/cvut/kbss/termit/model/User.java index 3e118d833..1cdb56b44 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/User.java +++ b/src/main/java/cz/cvut/kbss/termit/model/User.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/model/UserAccount.java b/src/main/java/cz/cvut/kbss/termit/model/UserAccount.java index 13bff8e2d..6db6e2060 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/UserAccount.java +++ b/src/main/java/cz/cvut/kbss/termit/model/UserAccount.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/model/UserGroup.java b/src/main/java/cz/cvut/kbss/termit/model/UserGroup.java index 122f5a117..40b6e93bc 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/UserGroup.java +++ b/src/main/java/cz/cvut/kbss/termit/model/UserGroup.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.model; import cz.cvut.kbss.jopa.model.annotations.*; diff --git a/src/main/java/cz/cvut/kbss/termit/model/UserRole.java b/src/main/java/cz/cvut/kbss/termit/model/UserRole.java index 82195c0da..4386f65b0 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/UserRole.java +++ b/src/main/java/cz/cvut/kbss/termit/model/UserRole.java @@ -1,18 +1,20 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ - package cz.cvut.kbss.termit.model; import cz.cvut.kbss.jopa.model.MultilingualString; diff --git a/src/main/java/cz/cvut/kbss/termit/model/Vocabulary.java b/src/main/java/cz/cvut/kbss/termit/model/Vocabulary.java index f6de2a90d..17eea3966 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/Vocabulary.java +++ b/src/main/java/cz/cvut/kbss/termit/model/Vocabulary.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.model; diff --git a/src/main/java/cz/cvut/kbss/termit/model/acl/AccessControlList.java b/src/main/java/cz/cvut/kbss/termit/model/acl/AccessControlList.java index 6012fb5ea..54b23a8e1 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/acl/AccessControlList.java +++ b/src/main/java/cz/cvut/kbss/termit/model/acl/AccessControlList.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.model.acl; import cz.cvut.kbss.jopa.model.annotations.CascadeType; diff --git a/src/main/java/cz/cvut/kbss/termit/model/acl/AccessControlRecord.java b/src/main/java/cz/cvut/kbss/termit/model/acl/AccessControlRecord.java index 12120199a..d48021425 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/acl/AccessControlRecord.java +++ b/src/main/java/cz/cvut/kbss/termit/model/acl/AccessControlRecord.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.model.acl; import com.fasterxml.jackson.annotation.JsonTypeInfo; diff --git a/src/main/java/cz/cvut/kbss/termit/model/acl/AccessLevel.java b/src/main/java/cz/cvut/kbss/termit/model/acl/AccessLevel.java index 5b27de726..53d6d3518 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/acl/AccessLevel.java +++ b/src/main/java/cz/cvut/kbss/termit/model/acl/AccessLevel.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.model.acl; import cz.cvut.kbss.jopa.model.annotations.Individual; diff --git a/src/main/java/cz/cvut/kbss/termit/model/acl/RoleAccessControlRecord.java b/src/main/java/cz/cvut/kbss/termit/model/acl/RoleAccessControlRecord.java index a1f5f472d..2c8d5684b 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/acl/RoleAccessControlRecord.java +++ b/src/main/java/cz/cvut/kbss/termit/model/acl/RoleAccessControlRecord.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.model.acl; import cz.cvut.kbss.jopa.model.annotations.OWLClass; diff --git a/src/main/java/cz/cvut/kbss/termit/model/acl/UserAccessControlRecord.java b/src/main/java/cz/cvut/kbss/termit/model/acl/UserAccessControlRecord.java index 70837005d..053b69a59 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/acl/UserAccessControlRecord.java +++ b/src/main/java/cz/cvut/kbss/termit/model/acl/UserAccessControlRecord.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.model.acl; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/cz/cvut/kbss/termit/model/acl/UserGroupAccessControlRecord.java b/src/main/java/cz/cvut/kbss/termit/model/acl/UserGroupAccessControlRecord.java index 246c410c6..e7a0b8778 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/acl/UserGroupAccessControlRecord.java +++ b/src/main/java/cz/cvut/kbss/termit/model/acl/UserGroupAccessControlRecord.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.model.acl; import cz.cvut.kbss.jopa.model.annotations.OWLClass; diff --git a/src/main/java/cz/cvut/kbss/termit/model/assignment/DefinitionalOccurrenceTarget.java b/src/main/java/cz/cvut/kbss/termit/model/assignment/DefinitionalOccurrenceTarget.java index 179a5c58c..18f316f9a 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/assignment/DefinitionalOccurrenceTarget.java +++ b/src/main/java/cz/cvut/kbss/termit/model/assignment/DefinitionalOccurrenceTarget.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.model.assignment; import cz.cvut.kbss.jopa.model.annotations.OWLClass; diff --git a/src/main/java/cz/cvut/kbss/termit/model/assignment/FileOccurrenceTarget.java b/src/main/java/cz/cvut/kbss/termit/model/assignment/FileOccurrenceTarget.java index 2c895fc64..1e55eea64 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/assignment/FileOccurrenceTarget.java +++ b/src/main/java/cz/cvut/kbss/termit/model/assignment/FileOccurrenceTarget.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.model.assignment; import cz.cvut.kbss.jopa.model.annotations.OWLClass; diff --git a/src/main/java/cz/cvut/kbss/termit/model/assignment/OccurrenceTarget.java b/src/main/java/cz/cvut/kbss/termit/model/assignment/OccurrenceTarget.java index d07d5ee99..3edc118c2 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/assignment/OccurrenceTarget.java +++ b/src/main/java/cz/cvut/kbss/termit/model/assignment/OccurrenceTarget.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.model.assignment; import com.fasterxml.jackson.annotation.JsonTypeInfo; diff --git a/src/main/java/cz/cvut/kbss/termit/model/assignment/TermDefinitionSource.java b/src/main/java/cz/cvut/kbss/termit/model/assignment/TermDefinitionSource.java index c7ba25624..eb18ffdea 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/assignment/TermDefinitionSource.java +++ b/src/main/java/cz/cvut/kbss/termit/model/assignment/TermDefinitionSource.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.model.assignment; import cz.cvut.kbss.jopa.model.annotations.OWLClass; diff --git a/src/main/java/cz/cvut/kbss/termit/model/assignment/TermDefinitionalOccurrence.java b/src/main/java/cz/cvut/kbss/termit/model/assignment/TermDefinitionalOccurrence.java index 01f63100b..6a7b9665c 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/assignment/TermDefinitionalOccurrence.java +++ b/src/main/java/cz/cvut/kbss/termit/model/assignment/TermDefinitionalOccurrence.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.model.assignment; import cz.cvut.kbss.jopa.model.annotations.OWLClass; diff --git a/src/main/java/cz/cvut/kbss/termit/model/assignment/TermFileOccurrence.java b/src/main/java/cz/cvut/kbss/termit/model/assignment/TermFileOccurrence.java index 11ea27002..3f10e96e6 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/assignment/TermFileOccurrence.java +++ b/src/main/java/cz/cvut/kbss/termit/model/assignment/TermFileOccurrence.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.model.assignment; import cz.cvut.kbss.jopa.model.annotations.OWLClass; diff --git a/src/main/java/cz/cvut/kbss/termit/model/assignment/TermOccurrence.java b/src/main/java/cz/cvut/kbss/termit/model/assignment/TermOccurrence.java index dc1470400..0f7f52eab 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/assignment/TermOccurrence.java +++ b/src/main/java/cz/cvut/kbss/termit/model/assignment/TermOccurrence.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.model.assignment; import com.fasterxml.jackson.annotation.JsonTypeInfo; diff --git a/src/main/java/cz/cvut/kbss/termit/model/changetracking/AbstractChangeRecord.java b/src/main/java/cz/cvut/kbss/termit/model/changetracking/AbstractChangeRecord.java index 056b816a4..01b30b71b 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/changetracking/AbstractChangeRecord.java +++ b/src/main/java/cz/cvut/kbss/termit/model/changetracking/AbstractChangeRecord.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.model.changetracking; import com.fasterxml.jackson.annotation.JsonTypeInfo; diff --git a/src/main/java/cz/cvut/kbss/termit/model/changetracking/Audited.java b/src/main/java/cz/cvut/kbss/termit/model/changetracking/Audited.java index 3a4bd4cf1..673fea5e8 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/changetracking/Audited.java +++ b/src/main/java/cz/cvut/kbss/termit/model/changetracking/Audited.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.model.changetracking; import java.lang.annotation.ElementType; diff --git a/src/main/java/cz/cvut/kbss/termit/model/changetracking/IgnoreChanges.java b/src/main/java/cz/cvut/kbss/termit/model/changetracking/IgnoreChanges.java index 4fe034e91..305213408 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/changetracking/IgnoreChanges.java +++ b/src/main/java/cz/cvut/kbss/termit/model/changetracking/IgnoreChanges.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.model.changetracking; import java.lang.annotation.ElementType; diff --git a/src/main/java/cz/cvut/kbss/termit/model/changetracking/PersistChangeRecord.java b/src/main/java/cz/cvut/kbss/termit/model/changetracking/PersistChangeRecord.java index 670a7170e..da51d2ebf 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/changetracking/PersistChangeRecord.java +++ b/src/main/java/cz/cvut/kbss/termit/model/changetracking/PersistChangeRecord.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.model.changetracking; import cz.cvut.kbss.jopa.model.annotations.OWLClass; diff --git a/src/main/java/cz/cvut/kbss/termit/model/changetracking/UpdateChangeRecord.java b/src/main/java/cz/cvut/kbss/termit/model/changetracking/UpdateChangeRecord.java index ece3037a9..4f6ce9888 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/changetracking/UpdateChangeRecord.java +++ b/src/main/java/cz/cvut/kbss/termit/model/changetracking/UpdateChangeRecord.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.model.changetracking; import cz.cvut.kbss.jopa.model.annotations.OWLAnnotationProperty; diff --git a/src/main/java/cz/cvut/kbss/termit/model/comment/Comment.java b/src/main/java/cz/cvut/kbss/termit/model/comment/Comment.java index 93ba1f736..9d6398780 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/comment/Comment.java +++ b/src/main/java/cz/cvut/kbss/termit/model/comment/Comment.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.model.comment; import cz.cvut.kbss.jopa.model.annotations.*; diff --git a/src/main/java/cz/cvut/kbss/termit/model/comment/CommentReaction.java b/src/main/java/cz/cvut/kbss/termit/model/comment/CommentReaction.java index cba51657d..2480f0d4b 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/comment/CommentReaction.java +++ b/src/main/java/cz/cvut/kbss/termit/model/comment/CommentReaction.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.model.comment; import cz.cvut.kbss.jopa.model.annotations.OWLClass; diff --git a/src/main/java/cz/cvut/kbss/termit/model/resource/Document.java b/src/main/java/cz/cvut/kbss/termit/model/resource/Document.java index 027933be5..6cdec7374 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/resource/Document.java +++ b/src/main/java/cz/cvut/kbss/termit/model/resource/Document.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.model.resource; diff --git a/src/main/java/cz/cvut/kbss/termit/model/resource/File.java b/src/main/java/cz/cvut/kbss/termit/model/resource/File.java index 58d863b4b..d0cf24819 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/resource/File.java +++ b/src/main/java/cz/cvut/kbss/termit/model/resource/File.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.model.resource; diff --git a/src/main/java/cz/cvut/kbss/termit/model/resource/Resource.java b/src/main/java/cz/cvut/kbss/termit/model/resource/Resource.java index f848d3c73..bf0791874 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/resource/Resource.java +++ b/src/main/java/cz/cvut/kbss/termit/model/resource/Resource.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.model.resource; diff --git a/src/main/java/cz/cvut/kbss/termit/model/selector/CssSelector.java b/src/main/java/cz/cvut/kbss/termit/model/selector/CssSelector.java index 92906798f..54dec7fdd 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/selector/CssSelector.java +++ b/src/main/java/cz/cvut/kbss/termit/model/selector/CssSelector.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/model/selector/FragmentSelector.java b/src/main/java/cz/cvut/kbss/termit/model/selector/FragmentSelector.java index e44118930..6c0ec1e55 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/selector/FragmentSelector.java +++ b/src/main/java/cz/cvut/kbss/termit/model/selector/FragmentSelector.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/model/selector/Selector.java b/src/main/java/cz/cvut/kbss/termit/model/selector/Selector.java index b142baea4..ec514a9a6 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/selector/Selector.java +++ b/src/main/java/cz/cvut/kbss/termit/model/selector/Selector.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/model/selector/TextPositionSelector.java b/src/main/java/cz/cvut/kbss/termit/model/selector/TextPositionSelector.java index 5bc6f0d34..7eef87f94 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/selector/TextPositionSelector.java +++ b/src/main/java/cz/cvut/kbss/termit/model/selector/TextPositionSelector.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/model/selector/TextQuoteSelector.java b/src/main/java/cz/cvut/kbss/termit/model/selector/TextQuoteSelector.java index 7112c6ac7..d37d39b0c 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/selector/TextQuoteSelector.java +++ b/src/main/java/cz/cvut/kbss/termit/model/selector/TextQuoteSelector.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.model.selector; diff --git a/src/main/java/cz/cvut/kbss/termit/model/selector/XPathSelector.java b/src/main/java/cz/cvut/kbss/termit/model/selector/XPathSelector.java index a8693fe84..4822cd532 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/selector/XPathSelector.java +++ b/src/main/java/cz/cvut/kbss/termit/model/selector/XPathSelector.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/model/util/AssetVisitor.java b/src/main/java/cz/cvut/kbss/termit/model/util/AssetVisitor.java index 2a5ec6f48..39354e141 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/util/AssetVisitor.java +++ b/src/main/java/cz/cvut/kbss/termit/model/util/AssetVisitor.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.model.util; import cz.cvut.kbss.termit.model.AbstractTerm; diff --git a/src/main/java/cz/cvut/kbss/termit/model/util/EntityToOwlClassMapper.java b/src/main/java/cz/cvut/kbss/termit/model/util/EntityToOwlClassMapper.java index d895bacbf..788c6c443 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/util/EntityToOwlClassMapper.java +++ b/src/main/java/cz/cvut/kbss/termit/model/util/EntityToOwlClassMapper.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/model/util/HasIdentifier.java b/src/main/java/cz/cvut/kbss/termit/model/util/HasIdentifier.java index 488a5f127..6ac30f27d 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/util/HasIdentifier.java +++ b/src/main/java/cz/cvut/kbss/termit/model/util/HasIdentifier.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/model/util/HasTypes.java b/src/main/java/cz/cvut/kbss/termit/model/util/HasTypes.java index 2359b84f7..92e020287 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/util/HasTypes.java +++ b/src/main/java/cz/cvut/kbss/termit/model/util/HasTypes.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.model.util; diff --git a/src/main/java/cz/cvut/kbss/termit/model/util/SupportsSnapshots.java b/src/main/java/cz/cvut/kbss/termit/model/util/SupportsSnapshots.java index a75e5c4bd..1a9f1b082 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/util/SupportsSnapshots.java +++ b/src/main/java/cz/cvut/kbss/termit/model/util/SupportsSnapshots.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.model.util; /** diff --git a/src/main/java/cz/cvut/kbss/termit/model/util/SupportsStorage.java b/src/main/java/cz/cvut/kbss/termit/model/util/SupportsStorage.java index 478f092eb..e743f5628 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/util/SupportsStorage.java +++ b/src/main/java/cz/cvut/kbss/termit/model/util/SupportsStorage.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/model/util/validation/WithoutQueryParameters.java b/src/main/java/cz/cvut/kbss/termit/model/util/validation/WithoutQueryParameters.java index 4cd85899e..1aeb67493 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/util/validation/WithoutQueryParameters.java +++ b/src/main/java/cz/cvut/kbss/termit/model/util/validation/WithoutQueryParameters.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.model.util.validation; import jakarta.validation.Constraint; diff --git a/src/main/java/cz/cvut/kbss/termit/model/util/validation/WithoutQueryParametersValidator.java b/src/main/java/cz/cvut/kbss/termit/model/util/validation/WithoutQueryParametersValidator.java index e555a5101..766680e08 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/util/validation/WithoutQueryParametersValidator.java +++ b/src/main/java/cz/cvut/kbss/termit/model/util/validation/WithoutQueryParametersValidator.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.model.util.validation; import jakarta.validation.ConstraintValidator; diff --git a/src/main/java/cz/cvut/kbss/termit/model/validation/ValidationResult.java b/src/main/java/cz/cvut/kbss/termit/model/validation/ValidationResult.java index 3a0576de1..8e30f2ed9 100644 --- a/src/main/java/cz/cvut/kbss/termit/model/validation/ValidationResult.java +++ b/src/main/java/cz/cvut/kbss/termit/model/validation/ValidationResult.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.model.validation; import cz.cvut.kbss.jopa.model.MultilingualString; diff --git a/src/main/java/cz/cvut/kbss/termit/persistence/MainPersistenceFactory.java b/src/main/java/cz/cvut/kbss/termit/persistence/MainPersistenceFactory.java index 660465ab5..95cca9f18 100644 --- a/src/main/java/cz/cvut/kbss/termit/persistence/MainPersistenceFactory.java +++ b/src/main/java/cz/cvut/kbss/termit/persistence/MainPersistenceFactory.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.persistence; diff --git a/src/main/java/cz/cvut/kbss/termit/persistence/context/CachingVocabularyContextMapper.java b/src/main/java/cz/cvut/kbss/termit/persistence/context/CachingVocabularyContextMapper.java index f3218ca64..9816792fc 100644 --- a/src/main/java/cz/cvut/kbss/termit/persistence/context/CachingVocabularyContextMapper.java +++ b/src/main/java/cz/cvut/kbss/termit/persistence/context/CachingVocabularyContextMapper.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.context; import cz.cvut.kbss.jopa.model.EntityManager; diff --git a/src/main/java/cz/cvut/kbss/termit/persistence/context/DefaultVocabularyContextMapper.java b/src/main/java/cz/cvut/kbss/termit/persistence/context/DefaultVocabularyContextMapper.java index b9adbab09..9372e6b75 100644 --- a/src/main/java/cz/cvut/kbss/termit/persistence/context/DefaultVocabularyContextMapper.java +++ b/src/main/java/cz/cvut/kbss/termit/persistence/context/DefaultVocabularyContextMapper.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.context; import cz.cvut.kbss.jopa.exceptions.NoResultException; diff --git a/src/main/java/cz/cvut/kbss/termit/persistence/context/DescriptorFactory.java b/src/main/java/cz/cvut/kbss/termit/persistence/context/DescriptorFactory.java index 5dceb5a51..bd5d71067 100644 --- a/src/main/java/cz/cvut/kbss/termit/persistence/context/DescriptorFactory.java +++ b/src/main/java/cz/cvut/kbss/termit/persistence/context/DescriptorFactory.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.persistence.context; diff --git a/src/main/java/cz/cvut/kbss/termit/persistence/context/StaticContexts.java b/src/main/java/cz/cvut/kbss/termit/persistence/context/StaticContexts.java index c817e56d1..d1433f1be 100644 --- a/src/main/java/cz/cvut/kbss/termit/persistence/context/StaticContexts.java +++ b/src/main/java/cz/cvut/kbss/termit/persistence/context/StaticContexts.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.context; import cz.cvut.kbss.termit.util.Vocabulary; diff --git a/src/main/java/cz/cvut/kbss/termit/persistence/context/VocabularyContextMapper.java b/src/main/java/cz/cvut/kbss/termit/persistence/context/VocabularyContextMapper.java index 2904e770b..7b762160d 100644 --- a/src/main/java/cz/cvut/kbss/termit/persistence/context/VocabularyContextMapper.java +++ b/src/main/java/cz/cvut/kbss/termit/persistence/context/VocabularyContextMapper.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.context; import cz.cvut.kbss.termit.model.Vocabulary; diff --git a/src/main/java/cz/cvut/kbss/termit/persistence/context/WorkspaceVocabularyContextMapper.java b/src/main/java/cz/cvut/kbss/termit/persistence/context/WorkspaceVocabularyContextMapper.java index 1e9508232..37bb97d03 100644 --- a/src/main/java/cz/cvut/kbss/termit/persistence/context/WorkspaceVocabularyContextMapper.java +++ b/src/main/java/cz/cvut/kbss/termit/persistence/context/WorkspaceVocabularyContextMapper.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.context; import cz.cvut.kbss.termit.workspace.EditableVocabularies; diff --git a/src/main/java/cz/cvut/kbss/termit/persistence/dao/AssetDao.java b/src/main/java/cz/cvut/kbss/termit/persistence/dao/AssetDao.java index 3087b5adf..15ce93f91 100644 --- a/src/main/java/cz/cvut/kbss/termit/persistence/dao/AssetDao.java +++ b/src/main/java/cz/cvut/kbss/termit/persistence/dao/AssetDao.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.dao; import cz.cvut.kbss.jopa.exceptions.NoResultException; diff --git a/src/main/java/cz/cvut/kbss/termit/persistence/dao/BaseAssetDao.java b/src/main/java/cz/cvut/kbss/termit/persistence/dao/BaseAssetDao.java index 81831ac45..d598b4c2c 100644 --- a/src/main/java/cz/cvut/kbss/termit/persistence/dao/BaseAssetDao.java +++ b/src/main/java/cz/cvut/kbss/termit/persistence/dao/BaseAssetDao.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.persistence.dao; diff --git a/src/main/java/cz/cvut/kbss/termit/persistence/dao/BaseDao.java b/src/main/java/cz/cvut/kbss/termit/persistence/dao/BaseDao.java index 09548b7da..fc260fbf5 100644 --- a/src/main/java/cz/cvut/kbss/termit/persistence/dao/BaseDao.java +++ b/src/main/java/cz/cvut/kbss/termit/persistence/dao/BaseDao.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/persistence/dao/DataDao.java b/src/main/java/cz/cvut/kbss/termit/persistence/dao/DataDao.java index 6892ce82a..ded878cee 100644 --- a/src/main/java/cz/cvut/kbss/termit/persistence/dao/DataDao.java +++ b/src/main/java/cz/cvut/kbss/termit/persistence/dao/DataDao.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.persistence.dao; diff --git a/src/main/java/cz/cvut/kbss/termit/persistence/dao/GenericDao.java b/src/main/java/cz/cvut/kbss/termit/persistence/dao/GenericDao.java index 532ac57a7..a7af03fe3 100644 --- a/src/main/java/cz/cvut/kbss/termit/persistence/dao/GenericDao.java +++ b/src/main/java/cz/cvut/kbss/termit/persistence/dao/GenericDao.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/persistence/dao/PagingDao.java b/src/main/java/cz/cvut/kbss/termit/persistence/dao/PagingDao.java index 44e35eeeb..7bcae6691 100644 --- a/src/main/java/cz/cvut/kbss/termit/persistence/dao/PagingDao.java +++ b/src/main/java/cz/cvut/kbss/termit/persistence/dao/PagingDao.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/persistence/dao/ResourceDao.java b/src/main/java/cz/cvut/kbss/termit/persistence/dao/ResourceDao.java index 522b1e206..90717ade6 100644 --- a/src/main/java/cz/cvut/kbss/termit/persistence/dao/ResourceDao.java +++ b/src/main/java/cz/cvut/kbss/termit/persistence/dao/ResourceDao.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.persistence.dao; diff --git a/src/main/java/cz/cvut/kbss/termit/persistence/dao/SearchDao.java b/src/main/java/cz/cvut/kbss/termit/persistence/dao/SearchDao.java index c6cc66b5a..c4ca2a08d 100644 --- a/src/main/java/cz/cvut/kbss/termit/persistence/dao/SearchDao.java +++ b/src/main/java/cz/cvut/kbss/termit/persistence/dao/SearchDao.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.persistence.dao; diff --git a/src/main/java/cz/cvut/kbss/termit/persistence/dao/SnapshotDao.java b/src/main/java/cz/cvut/kbss/termit/persistence/dao/SnapshotDao.java index ab85b1870..a2ead2698 100644 --- a/src/main/java/cz/cvut/kbss/termit/persistence/dao/SnapshotDao.java +++ b/src/main/java/cz/cvut/kbss/termit/persistence/dao/SnapshotDao.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.dao; import cz.cvut.kbss.jopa.exceptions.NoResultException; diff --git a/src/main/java/cz/cvut/kbss/termit/persistence/dao/TermDao.java b/src/main/java/cz/cvut/kbss/termit/persistence/dao/TermDao.java index 65623dacc..18d5ceaa9 100644 --- a/src/main/java/cz/cvut/kbss/termit/persistence/dao/TermDao.java +++ b/src/main/java/cz/cvut/kbss/termit/persistence/dao/TermDao.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.persistence.dao; diff --git a/src/main/java/cz/cvut/kbss/termit/persistence/dao/TermOccurrenceDao.java b/src/main/java/cz/cvut/kbss/termit/persistence/dao/TermOccurrenceDao.java index eef506a08..ee8c75ccf 100644 --- a/src/main/java/cz/cvut/kbss/termit/persistence/dao/TermOccurrenceDao.java +++ b/src/main/java/cz/cvut/kbss/termit/persistence/dao/TermOccurrenceDao.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.persistence.dao; diff --git a/src/main/java/cz/cvut/kbss/termit/persistence/dao/TextAnalysisRecordDao.java b/src/main/java/cz/cvut/kbss/termit/persistence/dao/TextAnalysisRecordDao.java index d540aeec5..20503ca0a 100644 --- a/src/main/java/cz/cvut/kbss/termit/persistence/dao/TextAnalysisRecordDao.java +++ b/src/main/java/cz/cvut/kbss/termit/persistence/dao/TextAnalysisRecordDao.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/persistence/dao/UserAccountDao.java b/src/main/java/cz/cvut/kbss/termit/persistence/dao/UserAccountDao.java index 61da49b7b..1a9fc53db 100644 --- a/src/main/java/cz/cvut/kbss/termit/persistence/dao/UserAccountDao.java +++ b/src/main/java/cz/cvut/kbss/termit/persistence/dao/UserAccountDao.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.persistence.dao; diff --git a/src/main/java/cz/cvut/kbss/termit/persistence/dao/UserGroupDao.java b/src/main/java/cz/cvut/kbss/termit/persistence/dao/UserGroupDao.java index 335eb3d8a..7079c828f 100644 --- a/src/main/java/cz/cvut/kbss/termit/persistence/dao/UserGroupDao.java +++ b/src/main/java/cz/cvut/kbss/termit/persistence/dao/UserGroupDao.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.dao; import cz.cvut.kbss.jopa.model.EntityManager; diff --git a/src/main/java/cz/cvut/kbss/termit/persistence/dao/UserRoleDao.java b/src/main/java/cz/cvut/kbss/termit/persistence/dao/UserRoleDao.java index 9823cb318..340d530da 100644 --- a/src/main/java/cz/cvut/kbss/termit/persistence/dao/UserRoleDao.java +++ b/src/main/java/cz/cvut/kbss/termit/persistence/dao/UserRoleDao.java @@ -1,18 +1,20 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ - package cz.cvut.kbss.termit.persistence.dao; import cz.cvut.kbss.jopa.model.EntityManager; diff --git a/src/main/java/cz/cvut/kbss/termit/persistence/dao/VocabularyDao.java b/src/main/java/cz/cvut/kbss/termit/persistence/dao/VocabularyDao.java index b20934957..d3e05dd12 100644 --- a/src/main/java/cz/cvut/kbss/termit/persistence/dao/VocabularyDao.java +++ b/src/main/java/cz/cvut/kbss/termit/persistence/dao/VocabularyDao.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.persistence.dao; diff --git a/src/main/java/cz/cvut/kbss/termit/persistence/dao/acl/AccessControlListDao.java b/src/main/java/cz/cvut/kbss/termit/persistence/dao/acl/AccessControlListDao.java index eb97aba71..a5af55085 100644 --- a/src/main/java/cz/cvut/kbss/termit/persistence/dao/acl/AccessControlListDao.java +++ b/src/main/java/cz/cvut/kbss/termit/persistence/dao/acl/AccessControlListDao.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.dao.acl; import cz.cvut.kbss.jopa.exceptions.NoResultException; diff --git a/src/main/java/cz/cvut/kbss/termit/persistence/dao/changetracking/ChangeRecordDao.java b/src/main/java/cz/cvut/kbss/termit/persistence/dao/changetracking/ChangeRecordDao.java index d9fd08d65..eadfa6b8a 100644 --- a/src/main/java/cz/cvut/kbss/termit/persistence/dao/changetracking/ChangeRecordDao.java +++ b/src/main/java/cz/cvut/kbss/termit/persistence/dao/changetracking/ChangeRecordDao.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.dao.changetracking; import cz.cvut.kbss.jopa.model.EntityManager; diff --git a/src/main/java/cz/cvut/kbss/termit/persistence/dao/changetracking/ChangeTrackingContextResolver.java b/src/main/java/cz/cvut/kbss/termit/persistence/dao/changetracking/ChangeTrackingContextResolver.java index 7424337e4..df5548c93 100644 --- a/src/main/java/cz/cvut/kbss/termit/persistence/dao/changetracking/ChangeTrackingContextResolver.java +++ b/src/main/java/cz/cvut/kbss/termit/persistence/dao/changetracking/ChangeTrackingContextResolver.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.dao.changetracking; import cz.cvut.kbss.jopa.model.EntityManager; diff --git a/src/main/java/cz/cvut/kbss/termit/persistence/dao/changetracking/ChangeTrackingHelperDao.java b/src/main/java/cz/cvut/kbss/termit/persistence/dao/changetracking/ChangeTrackingHelperDao.java index d54ad3a81..ff02133ef 100644 --- a/src/main/java/cz/cvut/kbss/termit/persistence/dao/changetracking/ChangeTrackingHelperDao.java +++ b/src/main/java/cz/cvut/kbss/termit/persistence/dao/changetracking/ChangeTrackingHelperDao.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.dao.changetracking; import cz.cvut.kbss.jopa.model.EntityManager; diff --git a/src/main/java/cz/cvut/kbss/termit/persistence/dao/comment/CommentDao.java b/src/main/java/cz/cvut/kbss/termit/persistence/dao/comment/CommentDao.java index ecf93ab35..5168368c4 100644 --- a/src/main/java/cz/cvut/kbss/termit/persistence/dao/comment/CommentDao.java +++ b/src/main/java/cz/cvut/kbss/termit/persistence/dao/comment/CommentDao.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.dao.comment; import cz.cvut.kbss.jopa.model.EntityManager; diff --git a/src/main/java/cz/cvut/kbss/termit/persistence/dao/comment/CommentReactionDao.java b/src/main/java/cz/cvut/kbss/termit/persistence/dao/comment/CommentReactionDao.java index 55094b1df..29b6586be 100644 --- a/src/main/java/cz/cvut/kbss/termit/persistence/dao/comment/CommentReactionDao.java +++ b/src/main/java/cz/cvut/kbss/termit/persistence/dao/comment/CommentReactionDao.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.dao.comment; import cz.cvut.kbss.jopa.model.EntityManager; diff --git a/src/main/java/cz/cvut/kbss/termit/persistence/dao/lucene/LuceneSearchDao.java b/src/main/java/cz/cvut/kbss/termit/persistence/dao/lucene/LuceneSearchDao.java index a6ac830d5..efc9f7258 100644 --- a/src/main/java/cz/cvut/kbss/termit/persistence/dao/lucene/LuceneSearchDao.java +++ b/src/main/java/cz/cvut/kbss/termit/persistence/dao/lucene/LuceneSearchDao.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.persistence.dao.lucene; diff --git a/src/main/java/cz/cvut/kbss/termit/persistence/dao/skos/SKOSExporter.java b/src/main/java/cz/cvut/kbss/termit/persistence/dao/skos/SKOSExporter.java index 5f0a3cbf0..d8995cdee 100644 --- a/src/main/java/cz/cvut/kbss/termit/persistence/dao/skos/SKOSExporter.java +++ b/src/main/java/cz/cvut/kbss/termit/persistence/dao/skos/SKOSExporter.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.dao.skos; import cz.cvut.kbss.jopa.model.EntityManager; diff --git a/src/main/java/cz/cvut/kbss/termit/persistence/dao/skos/SKOSImporter.java b/src/main/java/cz/cvut/kbss/termit/persistence/dao/skos/SKOSImporter.java index af4b9cc1e..f10688c0e 100644 --- a/src/main/java/cz/cvut/kbss/termit/persistence/dao/skos/SKOSImporter.java +++ b/src/main/java/cz/cvut/kbss/termit/persistence/dao/skos/SKOSImporter.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.dao.skos; import cz.cvut.kbss.jopa.model.EntityManager; diff --git a/src/main/java/cz/cvut/kbss/termit/persistence/dao/util/Cache.java b/src/main/java/cz/cvut/kbss/termit/persistence/dao/util/Cache.java index 9710c7022..ec0e402d3 100644 --- a/src/main/java/cz/cvut/kbss/termit/persistence/dao/util/Cache.java +++ b/src/main/java/cz/cvut/kbss/termit/persistence/dao/util/Cache.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.dao.util; import java.util.function.Function; diff --git a/src/main/java/cz/cvut/kbss/termit/persistence/dao/util/DisabledCache.java b/src/main/java/cz/cvut/kbss/termit/persistence/dao/util/DisabledCache.java index fa09ee860..4441f184f 100644 --- a/src/main/java/cz/cvut/kbss/termit/persistence/dao/util/DisabledCache.java +++ b/src/main/java/cz/cvut/kbss/termit/persistence/dao/util/DisabledCache.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.dao.util; import org.springframework.context.annotation.Profile; diff --git a/src/main/java/cz/cvut/kbss/termit/persistence/dao/util/SimpleCache.java b/src/main/java/cz/cvut/kbss/termit/persistence/dao/util/SimpleCache.java index c1c818c1d..0bdab13b0 100644 --- a/src/main/java/cz/cvut/kbss/termit/persistence/dao/util/SimpleCache.java +++ b/src/main/java/cz/cvut/kbss/termit/persistence/dao/util/SimpleCache.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.dao.util; import org.springframework.beans.factory.config.ConfigurableBeanFactory; diff --git a/src/main/java/cz/cvut/kbss/termit/persistence/dao/util/SparqlResultMapper.java b/src/main/java/cz/cvut/kbss/termit/persistence/dao/util/SparqlResultMapper.java index 76e8cfbda..864c8eb5c 100644 --- a/src/main/java/cz/cvut/kbss/termit/persistence/dao/util/SparqlResultMapper.java +++ b/src/main/java/cz/cvut/kbss/termit/persistence/dao/util/SparqlResultMapper.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.dao.util; import java.util.List; diff --git a/src/main/java/cz/cvut/kbss/termit/persistence/dao/util/SparqlResultToTermInfoMapper.java b/src/main/java/cz/cvut/kbss/termit/persistence/dao/util/SparqlResultToTermInfoMapper.java index 5578a417e..4dd7e4fb9 100644 --- a/src/main/java/cz/cvut/kbss/termit/persistence/dao/util/SparqlResultToTermInfoMapper.java +++ b/src/main/java/cz/cvut/kbss/termit/persistence/dao/util/SparqlResultToTermInfoMapper.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.dao.util; import cz.cvut.kbss.jopa.model.MultilingualString; diff --git a/src/main/java/cz/cvut/kbss/termit/persistence/dao/util/SparqlResultToTermOccurrenceMapper.java b/src/main/java/cz/cvut/kbss/termit/persistence/dao/util/SparqlResultToTermOccurrenceMapper.java index f04b0d260..358895a49 100644 --- a/src/main/java/cz/cvut/kbss/termit/persistence/dao/util/SparqlResultToTermOccurrenceMapper.java +++ b/src/main/java/cz/cvut/kbss/termit/persistence/dao/util/SparqlResultToTermOccurrenceMapper.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.dao.util; import cz.cvut.kbss.termit.model.assignment.*; diff --git a/src/main/java/cz/cvut/kbss/termit/persistence/snapshot/AssetSnapshotLoader.java b/src/main/java/cz/cvut/kbss/termit/persistence/snapshot/AssetSnapshotLoader.java index b9563e04b..e01056f39 100644 --- a/src/main/java/cz/cvut/kbss/termit/persistence/snapshot/AssetSnapshotLoader.java +++ b/src/main/java/cz/cvut/kbss/termit/persistence/snapshot/AssetSnapshotLoader.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.snapshot; import cz.cvut.kbss.jopa.exceptions.NoResultException; diff --git a/src/main/java/cz/cvut/kbss/termit/persistence/snapshot/CascadingSnapshotCreator.java b/src/main/java/cz/cvut/kbss/termit/persistence/snapshot/CascadingSnapshotCreator.java index 2a30b4fe7..a56f03e26 100644 --- a/src/main/java/cz/cvut/kbss/termit/persistence/snapshot/CascadingSnapshotCreator.java +++ b/src/main/java/cz/cvut/kbss/termit/persistence/snapshot/CascadingSnapshotCreator.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.snapshot; import cz.cvut.kbss.jopa.model.EntityManager; diff --git a/src/main/java/cz/cvut/kbss/termit/persistence/snapshot/CascadingVocabularySnapshotRemover.java b/src/main/java/cz/cvut/kbss/termit/persistence/snapshot/CascadingVocabularySnapshotRemover.java index 417657b48..c192609a8 100644 --- a/src/main/java/cz/cvut/kbss/termit/persistence/snapshot/CascadingVocabularySnapshotRemover.java +++ b/src/main/java/cz/cvut/kbss/termit/persistence/snapshot/CascadingVocabularySnapshotRemover.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.snapshot; import cz.cvut.kbss.jopa.model.EntityManager; diff --git a/src/main/java/cz/cvut/kbss/termit/persistence/snapshot/SnapshotCreator.java b/src/main/java/cz/cvut/kbss/termit/persistence/snapshot/SnapshotCreator.java index a1c44ae82..8c34136d1 100644 --- a/src/main/java/cz/cvut/kbss/termit/persistence/snapshot/SnapshotCreator.java +++ b/src/main/java/cz/cvut/kbss/termit/persistence/snapshot/SnapshotCreator.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.snapshot; import cz.cvut.kbss.termit.dto.Snapshot; diff --git a/src/main/java/cz/cvut/kbss/termit/persistence/snapshot/SnapshotRemover.java b/src/main/java/cz/cvut/kbss/termit/persistence/snapshot/SnapshotRemover.java index 77b24160e..eef8517a4 100644 --- a/src/main/java/cz/cvut/kbss/termit/persistence/snapshot/SnapshotRemover.java +++ b/src/main/java/cz/cvut/kbss/termit/persistence/snapshot/SnapshotRemover.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.snapshot; import cz.cvut.kbss.termit.dto.Snapshot; diff --git a/src/main/java/cz/cvut/kbss/termit/persistence/validation/ResultCachingValidator.java b/src/main/java/cz/cvut/kbss/termit/persistence/validation/ResultCachingValidator.java index 8102690ed..0d25c8b6c 100644 --- a/src/main/java/cz/cvut/kbss/termit/persistence/validation/ResultCachingValidator.java +++ b/src/main/java/cz/cvut/kbss/termit/persistence/validation/ResultCachingValidator.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.validation; import cz.cvut.kbss.termit.event.VocabularyContentModified; diff --git a/src/main/java/cz/cvut/kbss/termit/persistence/validation/Validator.java b/src/main/java/cz/cvut/kbss/termit/persistence/validation/Validator.java index 4dadd21b9..83405ee3e 100644 --- a/src/main/java/cz/cvut/kbss/termit/persistence/validation/Validator.java +++ b/src/main/java/cz/cvut/kbss/termit/persistence/validation/Validator.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.validation; import com.github.sgov.server.ValidationResultSeverityComparator; diff --git a/src/main/java/cz/cvut/kbss/termit/persistence/validation/VocabularyContentValidator.java b/src/main/java/cz/cvut/kbss/termit/persistence/validation/VocabularyContentValidator.java index c7346e328..85ce431f0 100644 --- a/src/main/java/cz/cvut/kbss/termit/persistence/validation/VocabularyContentValidator.java +++ b/src/main/java/cz/cvut/kbss/termit/persistence/validation/VocabularyContentValidator.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.validation; import cz.cvut.kbss.termit.model.validation.ValidationResult; diff --git a/src/main/java/cz/cvut/kbss/termit/rest/AdminBasedRegistrationController.java b/src/main/java/cz/cvut/kbss/termit/rest/AdminBasedRegistrationController.java index ae956874a..c0a6c03af 100644 --- a/src/main/java/cz/cvut/kbss/termit/rest/AdminBasedRegistrationController.java +++ b/src/main/java/cz/cvut/kbss/termit/rest/AdminBasedRegistrationController.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -24,6 +24,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.context.annotation.Profile; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; @@ -36,7 +37,10 @@ /** * Allows only administrators to register new users. + * + * Available only if internal security is used. */ +@ConditionalOnProperty(prefix = "termit.security", name = "provider", havingValue = "internal", matchIfMissing = true) @RestController @RequestMapping("/users") @Profile("admin-registration-only") diff --git a/src/main/java/cz/cvut/kbss/termit/rest/AdminController.java b/src/main/java/cz/cvut/kbss/termit/rest/AdminController.java index f3544a085..9e3a1da40 100644 --- a/src/main/java/cz/cvut/kbss/termit/rest/AdminController.java +++ b/src/main/java/cz/cvut/kbss/termit/rest/AdminController.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.rest; import cz.cvut.kbss.termit.security.SecurityConstants; diff --git a/src/main/java/cz/cvut/kbss/termit/rest/AssetController.java b/src/main/java/cz/cvut/kbss/termit/rest/AssetController.java index 4d96e645a..470e74dad 100644 --- a/src/main/java/cz/cvut/kbss/termit/rest/AssetController.java +++ b/src/main/java/cz/cvut/kbss/termit/rest/AssetController.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.rest; diff --git a/src/main/java/cz/cvut/kbss/termit/rest/BaseController.java b/src/main/java/cz/cvut/kbss/termit/rest/BaseController.java index 89d81e0c9..451075288 100644 --- a/src/main/java/cz/cvut/kbss/termit/rest/BaseController.java +++ b/src/main/java/cz/cvut/kbss/termit/rest/BaseController.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.rest; diff --git a/src/main/java/cz/cvut/kbss/termit/rest/CommentController.java b/src/main/java/cz/cvut/kbss/termit/rest/CommentController.java index b02d5acb7..be36d17f2 100644 --- a/src/main/java/cz/cvut/kbss/termit/rest/CommentController.java +++ b/src/main/java/cz/cvut/kbss/termit/rest/CommentController.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.rest; import cz.cvut.kbss.jsonld.JsonLd; diff --git a/src/main/java/cz/cvut/kbss/termit/rest/ConfigurationController.java b/src/main/java/cz/cvut/kbss/termit/rest/ConfigurationController.java index 64a2739a3..7d4ee4404 100644 --- a/src/main/java/cz/cvut/kbss/termit/rest/ConfigurationController.java +++ b/src/main/java/cz/cvut/kbss/termit/rest/ConfigurationController.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.rest; import cz.cvut.kbss.jsonld.JsonLd; diff --git a/src/main/java/cz/cvut/kbss/termit/rest/DataController.java b/src/main/java/cz/cvut/kbss/termit/rest/DataController.java index 9d0486c74..23570df99 100644 --- a/src/main/java/cz/cvut/kbss/termit/rest/DataController.java +++ b/src/main/java/cz/cvut/kbss/termit/rest/DataController.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.rest; diff --git a/src/main/java/cz/cvut/kbss/termit/rest/FreeRegistrationController.java b/src/main/java/cz/cvut/kbss/termit/rest/FreeRegistrationController.java index 73a067fbd..05b5895d2 100644 --- a/src/main/java/cz/cvut/kbss/termit/rest/FreeRegistrationController.java +++ b/src/main/java/cz/cvut/kbss/termit/rest/FreeRegistrationController.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.rest; @@ -25,6 +28,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.context.annotation.Profile; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; @@ -37,7 +41,10 @@ /** * Allows registration for anyone. + * + * Available only if internal security is used. */ +@ConditionalOnProperty(prefix = "termit.security", name = "provider", havingValue = "internal", matchIfMissing = true) @Tag(name = "Registration", description = "User self-registration API") @RestController @RequestMapping("/users") diff --git a/src/main/java/cz/cvut/kbss/termit/rest/HealthController.java b/src/main/java/cz/cvut/kbss/termit/rest/HealthController.java index 882befde4..e52a0a534 100644 --- a/src/main/java/cz/cvut/kbss/termit/rest/HealthController.java +++ b/src/main/java/cz/cvut/kbss/termit/rest/HealthController.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.rest; import cz.cvut.kbss.termit.rest.dto.HealthInfo; diff --git a/src/main/java/cz/cvut/kbss/termit/rest/IdentifierController.java b/src/main/java/cz/cvut/kbss/termit/rest/IdentifierController.java index 8d4b19840..baa769aee 100644 --- a/src/main/java/cz/cvut/kbss/termit/rest/IdentifierController.java +++ b/src/main/java/cz/cvut/kbss/termit/rest/IdentifierController.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.rest; diff --git a/src/main/java/cz/cvut/kbss/termit/rest/LanguageController.java b/src/main/java/cz/cvut/kbss/termit/rest/LanguageController.java index a222db0db..db1292995 100644 --- a/src/main/java/cz/cvut/kbss/termit/rest/LanguageController.java +++ b/src/main/java/cz/cvut/kbss/termit/rest/LanguageController.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.rest; diff --git a/src/main/java/cz/cvut/kbss/termit/rest/OidcUserController.java b/src/main/java/cz/cvut/kbss/termit/rest/OidcUserController.java new file mode 100644 index 000000000..cf26c8c56 --- /dev/null +++ b/src/main/java/cz/cvut/kbss/termit/rest/OidcUserController.java @@ -0,0 +1,102 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package cz.cvut.kbss.termit.rest; + + +import cz.cvut.kbss.jsonld.JsonLd; +import cz.cvut.kbss.termit.dto.RdfsResource; +import cz.cvut.kbss.termit.model.UserAccount; +import cz.cvut.kbss.termit.security.SecurityConstants; +import cz.cvut.kbss.termit.service.IdentifierResolver; +import cz.cvut.kbss.termit.service.business.UserService; +import cz.cvut.kbss.termit.util.Configuration; +import cz.cvut.kbss.termit.util.Constants; +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.Parameter; +import io.swagger.v3.oas.annotations.responses.ApiResponse; +import io.swagger.v3.oas.annotations.responses.ApiResponses; +import io.swagger.v3.oas.annotations.security.SecurityRequirement; +import io.swagger.v3.oas.annotations.tags.Tag; +import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; +import org.springframework.http.MediaType; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; + +import java.net.URI; +import java.util.List; +import java.util.Optional; + +/** + * Controller for basic user-related operations that do not involve editing/adding/removing user accounts. + * + * Enabled when OIDC security is used. + */ +@ConditionalOnProperty(prefix = "termit.security", name = "provider", havingValue = "oidc") +@Tag(name = "Users", description = "User management API") +@RestController +@RequestMapping(UserController.PATH) +@PreAuthorize("hasRole('" + SecurityConstants.ROLE_RESTRICTED_USER + "')") +public class OidcUserController extends BaseController { + + private final UserService userService; + + public OidcUserController(UserService userService, IdentifierResolver idResolver, Configuration config) { + super(idResolver, config); + this.userService = userService; + } + + @Operation(security = {@SecurityRequirement(name = "bearer-key")}, + description = "Gets all users of the system.") + @ApiResponse(responseCode = "200", description = "List of users ordered by name.") + @PreAuthorize("hasAnyRole('" + SecurityConstants.ROLE_ADMIN + "', '" + SecurityConstants.ROLE_FULL_USER + "')") + @GetMapping(produces = {MediaType.APPLICATION_JSON_VALUE, JsonLd.MEDIA_TYPE}) + public List getAll() { + return userService.findAll(); + } + + @Operation(security = {@SecurityRequirement(name = "bearer-key")}, + description = "Gets the currently logged-in user.") + @ApiResponse(responseCode = "200", description = "Metadata of the current user's account.") + @GetMapping(value = UserController.CURRENT_USER_PATH, produces = {MediaType.APPLICATION_JSON_VALUE, JsonLd.MEDIA_TYPE}) + public UserAccount getCurrent() { + return userService.getCurrent(); + } + + @Operation(security = {@SecurityRequirement(name = "bearer-key")}, + description = "Gets assets that the user with the specified identifier can manage, i.e., has security-level access to them.") + @ApiResponses({ + @ApiResponse(responseCode = "200", description = "List of managed assets."), + @ApiResponse(responseCode = "404", description = "Account not found.") + }) + @GetMapping(value = "/{localName}/managed-assets", produces = {MediaType.APPLICATION_JSON_VALUE, JsonLd.MEDIA_TYPE}) + @PreAuthorize("hasRole('" + SecurityConstants.ROLE_ADMIN + "')") + public List getManagedAssets(@Parameter(description = UserController.UserControllerDoc.ID_LOCAL_NAME_DESCRIPTION, + example = UserController.UserControllerDoc.ID_LOCAL_NAME_EXAMPLE) + @PathVariable String localName, + @Parameter(description = UserController.UserControllerDoc.ID_NAMESPACE_DESCRIPTION, + example = UserController.UserControllerDoc.ID_NAMESPACE_EXAMPLE) + @RequestParam(name = Constants.QueryParams.NAMESPACE, + required = false) Optional namespace) { + final URI id = idResolver.resolveIdentifier(namespace.orElse(config.getNamespace().getUser()), localName); + return userService.getManagedAssets(userService.getRequiredReference(id)); + } +} diff --git a/src/main/java/cz/cvut/kbss/termit/rest/ResourceController.java b/src/main/java/cz/cvut/kbss/termit/rest/ResourceController.java index 9c3793c41..0841fb375 100644 --- a/src/main/java/cz/cvut/kbss/termit/rest/ResourceController.java +++ b/src/main/java/cz/cvut/kbss/termit/rest/ResourceController.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.rest; diff --git a/src/main/java/cz/cvut/kbss/termit/rest/SearchController.java b/src/main/java/cz/cvut/kbss/termit/rest/SearchController.java index 1bff6cf9c..dba8e9589 100644 --- a/src/main/java/cz/cvut/kbss/termit/rest/SearchController.java +++ b/src/main/java/cz/cvut/kbss/termit/rest/SearchController.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.rest; diff --git a/src/main/java/cz/cvut/kbss/termit/rest/SnapshotController.java b/src/main/java/cz/cvut/kbss/termit/rest/SnapshotController.java index 24dd7f476..4d95c39cf 100644 --- a/src/main/java/cz/cvut/kbss/termit/rest/SnapshotController.java +++ b/src/main/java/cz/cvut/kbss/termit/rest/SnapshotController.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.rest; import cz.cvut.kbss.termit.security.SecurityConstants; diff --git a/src/main/java/cz/cvut/kbss/termit/rest/TermController.java b/src/main/java/cz/cvut/kbss/termit/rest/TermController.java index 0c02274b5..834b69d36 100644 --- a/src/main/java/cz/cvut/kbss/termit/rest/TermController.java +++ b/src/main/java/cz/cvut/kbss/termit/rest/TermController.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.rest; import cz.cvut.kbss.jsonld.JsonLd; diff --git a/src/main/java/cz/cvut/kbss/termit/rest/TermOccurrenceController.java b/src/main/java/cz/cvut/kbss/termit/rest/TermOccurrenceController.java index 0c6286e00..ae8a9e241 100644 --- a/src/main/java/cz/cvut/kbss/termit/rest/TermOccurrenceController.java +++ b/src/main/java/cz/cvut/kbss/termit/rest/TermOccurrenceController.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.rest; import cz.cvut.kbss.termit.security.SecurityConstants; diff --git a/src/main/java/cz/cvut/kbss/termit/rest/UserController.java b/src/main/java/cz/cvut/kbss/termit/rest/UserController.java index 9f6b0f7e6..f36881c0e 100644 --- a/src/main/java/cz/cvut/kbss/termit/rest/UserController.java +++ b/src/main/java/cz/cvut/kbss/termit/rest/UserController.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.rest; @@ -32,6 +35,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.security.access.prepost.PreAuthorize; @@ -41,6 +45,12 @@ import java.util.List; import java.util.Optional; +/** + * Controller for user management. + * + * Enabled when internal security is used. + */ +@ConditionalOnProperty(prefix = "termit.security", name = "provider", havingValue = "internal", matchIfMissing = true) @Tag(name = "Users", description = "User management API") @RestController @RequestMapping(UserController.PATH) @@ -216,10 +226,10 @@ public List getManagedAssets(@Parameter(description = UserControll /** * A couple of constants for the {@link UserController} API documentation. */ - private static final class UserControllerDoc { - private static final String ID_LOCAL_NAME_DESCRIPTION = "Locally (in the context of the specified namespace/default user namespace) unique part of the user account identifier."; - private static final String ID_LOCAL_NAME_EXAMPLE = "system-administrator"; - private static final String ID_NAMESPACE_DESCRIPTION = "Identifier namespace. Allows to override the default user identifier namespace."; - private static final String ID_NAMESPACE_EXAMPLE = "http://onto.fel.cvut.cz/ontologies/uzivatel/"; + static final class UserControllerDoc { + static final String ID_LOCAL_NAME_DESCRIPTION = "Locally (in the context of the specified namespace/default user namespace) unique part of the user account identifier."; + static final String ID_LOCAL_NAME_EXAMPLE = "system-administrator"; + static final String ID_NAMESPACE_DESCRIPTION = "Identifier namespace. Allows to override the default user identifier namespace."; + static final String ID_NAMESPACE_EXAMPLE = "http://onto.fel.cvut.cz/ontologies/uzivatel/"; } } diff --git a/src/main/java/cz/cvut/kbss/termit/rest/UserGroupController.java b/src/main/java/cz/cvut/kbss/termit/rest/UserGroupController.java index c6718ce0e..fe27aeb7a 100644 --- a/src/main/java/cz/cvut/kbss/termit/rest/UserGroupController.java +++ b/src/main/java/cz/cvut/kbss/termit/rest/UserGroupController.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.rest; import cz.cvut.kbss.jsonld.JsonLd; diff --git a/src/main/java/cz/cvut/kbss/termit/rest/VocabularyController.java b/src/main/java/cz/cvut/kbss/termit/rest/VocabularyController.java index da08d81c0..eeecfee63 100644 --- a/src/main/java/cz/cvut/kbss/termit/rest/VocabularyController.java +++ b/src/main/java/cz/cvut/kbss/termit/rest/VocabularyController.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.rest; diff --git a/src/main/java/cz/cvut/kbss/termit/rest/WorkspaceController.java b/src/main/java/cz/cvut/kbss/termit/rest/WorkspaceController.java index bdd73e21d..f9341f2ec 100644 --- a/src/main/java/cz/cvut/kbss/termit/rest/WorkspaceController.java +++ b/src/main/java/cz/cvut/kbss/termit/rest/WorkspaceController.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.rest; import cz.cvut.kbss.jsonld.JsonLd; diff --git a/src/main/java/cz/cvut/kbss/termit/rest/doc/ApiDocConstants.java b/src/main/java/cz/cvut/kbss/termit/rest/doc/ApiDocConstants.java index b4df144c5..c26f142b9 100644 --- a/src/main/java/cz/cvut/kbss/termit/rest/doc/ApiDocConstants.java +++ b/src/main/java/cz/cvut/kbss/termit/rest/doc/ApiDocConstants.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.rest.doc; /** diff --git a/src/main/java/cz/cvut/kbss/termit/rest/dto/AssetType.java b/src/main/java/cz/cvut/kbss/termit/rest/dto/AssetType.java index 350785cb9..c27702289 100644 --- a/src/main/java/cz/cvut/kbss/termit/rest/dto/AssetType.java +++ b/src/main/java/cz/cvut/kbss/termit/rest/dto/AssetType.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2020 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/rest/dto/HealthInfo.java b/src/main/java/cz/cvut/kbss/termit/rest/dto/HealthInfo.java index 78aee02ca..0d9d9906b 100644 --- a/src/main/java/cz/cvut/kbss/termit/rest/dto/HealthInfo.java +++ b/src/main/java/cz/cvut/kbss/termit/rest/dto/HealthInfo.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.rest.dto; import java.util.HashMap; diff --git a/src/main/java/cz/cvut/kbss/termit/rest/dto/HealthStatus.java b/src/main/java/cz/cvut/kbss/termit/rest/dto/HealthStatus.java index e97778e29..b1f858f31 100644 --- a/src/main/java/cz/cvut/kbss/termit/rest/dto/HealthStatus.java +++ b/src/main/java/cz/cvut/kbss/termit/rest/dto/HealthStatus.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.rest.dto; /** diff --git a/src/main/java/cz/cvut/kbss/termit/rest/dto/UserUpdateDto.java b/src/main/java/cz/cvut/kbss/termit/rest/dto/UserUpdateDto.java index f6931411e..240840474 100644 --- a/src/main/java/cz/cvut/kbss/termit/rest/dto/UserUpdateDto.java +++ b/src/main/java/cz/cvut/kbss/termit/rest/dto/UserUpdateDto.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.rest.dto; diff --git a/src/main/java/cz/cvut/kbss/termit/rest/handler/ErrorInfo.java b/src/main/java/cz/cvut/kbss/termit/rest/handler/ErrorInfo.java index e7a7b69ac..ee83e09df 100644 --- a/src/main/java/cz/cvut/kbss/termit/rest/handler/ErrorInfo.java +++ b/src/main/java/cz/cvut/kbss/termit/rest/handler/ErrorInfo.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/rest/handler/RestExceptionHandler.java b/src/main/java/cz/cvut/kbss/termit/rest/handler/RestExceptionHandler.java index de7b5a7cd..b5c723227 100644 --- a/src/main/java/cz/cvut/kbss/termit/rest/handler/RestExceptionHandler.java +++ b/src/main/java/cz/cvut/kbss/termit/rest/handler/RestExceptionHandler.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.rest.handler; diff --git a/src/main/java/cz/cvut/kbss/termit/rest/readonly/ReadOnlyTermController.java b/src/main/java/cz/cvut/kbss/termit/rest/readonly/ReadOnlyTermController.java index 9c6aa4f2e..56c37fc7e 100644 --- a/src/main/java/cz/cvut/kbss/termit/rest/readonly/ReadOnlyTermController.java +++ b/src/main/java/cz/cvut/kbss/termit/rest/readonly/ReadOnlyTermController.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.rest.readonly; import cz.cvut.kbss.jsonld.JsonLd; diff --git a/src/main/java/cz/cvut/kbss/termit/rest/readonly/ReadOnlyVocabularyController.java b/src/main/java/cz/cvut/kbss/termit/rest/readonly/ReadOnlyVocabularyController.java index cae0366a1..cd3cd2efc 100644 --- a/src/main/java/cz/cvut/kbss/termit/rest/readonly/ReadOnlyVocabularyController.java +++ b/src/main/java/cz/cvut/kbss/termit/rest/readonly/ReadOnlyVocabularyController.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.rest.readonly; import cz.cvut.kbss.jsonld.JsonLd; diff --git a/src/main/java/cz/cvut/kbss/termit/rest/servlet/DiagnosticsContextFilter.java b/src/main/java/cz/cvut/kbss/termit/rest/servlet/DiagnosticsContextFilter.java index 16da45c71..8b64e90dd 100644 --- a/src/main/java/cz/cvut/kbss/termit/rest/servlet/DiagnosticsContextFilter.java +++ b/src/main/java/cz/cvut/kbss/termit/rest/servlet/DiagnosticsContextFilter.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/rest/util/RestUtils.java b/src/main/java/cz/cvut/kbss/termit/rest/util/RestUtils.java index c686b6ad5..f59f8b82e 100644 --- a/src/main/java/cz/cvut/kbss/termit/rest/util/RestUtils.java +++ b/src/main/java/cz/cvut/kbss/termit/rest/util/RestUtils.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.rest.util; diff --git a/src/main/java/cz/cvut/kbss/termit/security/AuthenticationFailure.java b/src/main/java/cz/cvut/kbss/termit/security/AuthenticationFailure.java index 7e9c6dacd..e40c998c5 100644 --- a/src/main/java/cz/cvut/kbss/termit/security/AuthenticationFailure.java +++ b/src/main/java/cz/cvut/kbss/termit/security/AuthenticationFailure.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/security/AuthenticationSuccess.java b/src/main/java/cz/cvut/kbss/termit/security/AuthenticationSuccess.java index c1ca86bd4..80a1656cf 100644 --- a/src/main/java/cz/cvut/kbss/termit/security/AuthenticationSuccess.java +++ b/src/main/java/cz/cvut/kbss/termit/security/AuthenticationSuccess.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.security; diff --git a/src/main/java/cz/cvut/kbss/termit/security/HierarchicalRoleBasedAuthorityMapper.java b/src/main/java/cz/cvut/kbss/termit/security/HierarchicalRoleBasedAuthorityMapper.java index bb42ac0d8..62bcf35d5 100644 --- a/src/main/java/cz/cvut/kbss/termit/security/HierarchicalRoleBasedAuthorityMapper.java +++ b/src/main/java/cz/cvut/kbss/termit/security/HierarchicalRoleBasedAuthorityMapper.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.security; import cz.cvut.kbss.termit.security.model.UserRole; diff --git a/src/main/java/cz/cvut/kbss/termit/security/JwtAuthenticationFilter.java b/src/main/java/cz/cvut/kbss/termit/security/JwtAuthenticationFilter.java index 305970b4a..2557c0c0d 100644 --- a/src/main/java/cz/cvut/kbss/termit/security/JwtAuthenticationFilter.java +++ b/src/main/java/cz/cvut/kbss/termit/security/JwtAuthenticationFilter.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.security; diff --git a/src/main/java/cz/cvut/kbss/termit/security/JwtAuthorizationFilter.java b/src/main/java/cz/cvut/kbss/termit/security/JwtAuthorizationFilter.java index 95327fc34..06e87770b 100644 --- a/src/main/java/cz/cvut/kbss/termit/security/JwtAuthorizationFilter.java +++ b/src/main/java/cz/cvut/kbss/termit/security/JwtAuthorizationFilter.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.security; diff --git a/src/main/java/cz/cvut/kbss/termit/security/JwtUtils.java b/src/main/java/cz/cvut/kbss/termit/security/JwtUtils.java index 366f68124..54ca57bdb 100644 --- a/src/main/java/cz/cvut/kbss/termit/security/JwtUtils.java +++ b/src/main/java/cz/cvut/kbss/termit/security/JwtUtils.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.security; @@ -21,7 +24,13 @@ import cz.cvut.kbss.termit.model.UserAccount; import cz.cvut.kbss.termit.security.model.TermItUserDetails; import cz.cvut.kbss.termit.util.Configuration; -import io.jsonwebtoken.*; +import cz.cvut.kbss.termit.util.Utils; +import io.jsonwebtoken.Claims; +import io.jsonwebtoken.ExpiredJwtException; +import io.jsonwebtoken.Jwts; +import io.jsonwebtoken.MalformedJwtException; +import io.jsonwebtoken.SignatureAlgorithm; +import io.jsonwebtoken.UnsupportedJwtException; import io.jsonwebtoken.jackson.io.JacksonDeserializer; import io.jsonwebtoken.jackson.io.JacksonSerializer; import io.jsonwebtoken.security.Keys; @@ -37,7 +46,12 @@ import java.security.Key; import java.time.Instant; import java.time.temporal.ChronoUnit; -import java.util.*; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Collections; +import java.util.Date; +import java.util.List; +import java.util.Objects; import java.util.stream.Collectors; @Component @@ -52,7 +66,8 @@ public class JwtUtils { @Autowired public JwtUtils(@Qualifier("objectMapper") ObjectMapper objectMapper, Configuration config) { this.objectMapper = objectMapper; - this.key = Keys.hmacShaKeyFor(config.getJwt().getSecretKey().getBytes(StandardCharsets.UTF_8)); + this.key = Utils.isBlank(config.getJwt().getSecretKey()) ? Keys.secretKeyFor(SIGNATURE_ALGORITHM) : + Keys.hmacShaKeyFor(config.getJwt().getSecretKey().getBytes(StandardCharsets.UTF_8)); } /** @@ -168,8 +183,9 @@ public String refreshToken(String token) { /** * Gets URI of the user represented by the specified token. - * + *

* Note that it is expected + * * @param token JSON Web Token * @return User identifier */ diff --git a/src/main/java/cz/cvut/kbss/termit/security/OntologicalAuthenticationProvider.java b/src/main/java/cz/cvut/kbss/termit/security/OntologicalAuthenticationProvider.java index 894824a71..187ee7fed 100644 --- a/src/main/java/cz/cvut/kbss/termit/security/OntologicalAuthenticationProvider.java +++ b/src/main/java/cz/cvut/kbss/termit/security/OntologicalAuthenticationProvider.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.security; diff --git a/src/main/java/cz/cvut/kbss/termit/security/SecurityConstants.java b/src/main/java/cz/cvut/kbss/termit/security/SecurityConstants.java index d9d390a2c..8da83186c 100644 --- a/src/main/java/cz/cvut/kbss/termit/security/SecurityConstants.java +++ b/src/main/java/cz/cvut/kbss/termit/security/SecurityConstants.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.security; diff --git a/src/main/java/cz/cvut/kbss/termit/security/model/AuthenticationToken.java b/src/main/java/cz/cvut/kbss/termit/security/model/AuthenticationToken.java index 49e3f6007..b204b37dd 100644 --- a/src/main/java/cz/cvut/kbss/termit/security/model/AuthenticationToken.java +++ b/src/main/java/cz/cvut/kbss/termit/security/model/AuthenticationToken.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/security/model/LoginStatus.java b/src/main/java/cz/cvut/kbss/termit/security/model/LoginStatus.java index 798eff67f..9be80724c 100644 --- a/src/main/java/cz/cvut/kbss/termit/security/model/LoginStatus.java +++ b/src/main/java/cz/cvut/kbss/termit/security/model/LoginStatus.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/security/model/TermItUserDetails.java b/src/main/java/cz/cvut/kbss/termit/security/model/TermItUserDetails.java index 26b9eefb7..c61b73227 100644 --- a/src/main/java/cz/cvut/kbss/termit/security/model/TermItUserDetails.java +++ b/src/main/java/cz/cvut/kbss/termit/security/model/TermItUserDetails.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/security/model/UserRole.java b/src/main/java/cz/cvut/kbss/termit/security/model/UserRole.java index a96f1b2c4..6d1048156 100644 --- a/src/main/java/cz/cvut/kbss/termit/security/model/UserRole.java +++ b/src/main/java/cz/cvut/kbss/termit/security/model/UserRole.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/service/IdentifierResolver.java b/src/main/java/cz/cvut/kbss/termit/service/IdentifierResolver.java index 93ed1fa81..283e9d800 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/IdentifierResolver.java +++ b/src/main/java/cz/cvut/kbss/termit/service/IdentifierResolver.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.service; diff --git a/src/main/java/cz/cvut/kbss/termit/service/business/AccessControlListService.java b/src/main/java/cz/cvut/kbss/termit/service/business/AccessControlListService.java index d3de0a06c..54073421a 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/business/AccessControlListService.java +++ b/src/main/java/cz/cvut/kbss/termit/service/business/AccessControlListService.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.business; import cz.cvut.kbss.termit.dto.acl.AccessControlListDto; diff --git a/src/main/java/cz/cvut/kbss/termit/service/business/AssetService.java b/src/main/java/cz/cvut/kbss/termit/service/business/AssetService.java index 2c3dd2eea..fff756d62 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/business/AssetService.java +++ b/src/main/java/cz/cvut/kbss/termit/service/business/AssetService.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.service.business; diff --git a/src/main/java/cz/cvut/kbss/termit/service/business/CrudService.java b/src/main/java/cz/cvut/kbss/termit/service/business/CrudService.java index 670cef737..eb0b66354 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/business/CrudService.java +++ b/src/main/java/cz/cvut/kbss/termit/service/business/CrudService.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.service.business; diff --git a/src/main/java/cz/cvut/kbss/termit/service/business/ResourceService.java b/src/main/java/cz/cvut/kbss/termit/service/business/ResourceService.java index d1ef35932..03a8dc1c8 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/business/ResourceService.java +++ b/src/main/java/cz/cvut/kbss/termit/service/business/ResourceService.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.service.business; diff --git a/src/main/java/cz/cvut/kbss/termit/service/business/RudService.java b/src/main/java/cz/cvut/kbss/termit/service/business/RudService.java index 92fc2788e..7af6661e5 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/business/RudService.java +++ b/src/main/java/cz/cvut/kbss/termit/service/business/RudService.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/service/business/SearchService.java b/src/main/java/cz/cvut/kbss/termit/service/business/SearchService.java index dfc6e4985..f8f787591 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/business/SearchService.java +++ b/src/main/java/cz/cvut/kbss/termit/service/business/SearchService.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.service.business; diff --git a/src/main/java/cz/cvut/kbss/termit/service/business/SnapshotService.java b/src/main/java/cz/cvut/kbss/termit/service/business/SnapshotService.java index 119ff6547..81aa14725 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/business/SnapshotService.java +++ b/src/main/java/cz/cvut/kbss/termit/service/business/SnapshotService.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.business; import cz.cvut.kbss.termit.dto.Snapshot; diff --git a/src/main/java/cz/cvut/kbss/termit/service/business/TermOccurrenceService.java b/src/main/java/cz/cvut/kbss/termit/service/business/TermOccurrenceService.java index 509e5223c..90f0500be 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/business/TermOccurrenceService.java +++ b/src/main/java/cz/cvut/kbss/termit/service/business/TermOccurrenceService.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.business; import cz.cvut.kbss.termit.model.assignment.TermOccurrence; diff --git a/src/main/java/cz/cvut/kbss/termit/service/business/TermService.java b/src/main/java/cz/cvut/kbss/termit/service/business/TermService.java index d01055bf3..53ff8eea0 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/business/TermService.java +++ b/src/main/java/cz/cvut/kbss/termit/service/business/TermService.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.business; import cz.cvut.kbss.termit.dto.RdfsResource; diff --git a/src/main/java/cz/cvut/kbss/termit/service/business/UserGroupService.java b/src/main/java/cz/cvut/kbss/termit/service/business/UserGroupService.java index fe2251b92..b1e43fab2 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/business/UserGroupService.java +++ b/src/main/java/cz/cvut/kbss/termit/service/business/UserGroupService.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.business; import cz.cvut.kbss.termit.model.User; diff --git a/src/main/java/cz/cvut/kbss/termit/service/business/UserService.java b/src/main/java/cz/cvut/kbss/termit/service/business/UserService.java index d1c736682..1d1808e4e 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/business/UserService.java +++ b/src/main/java/cz/cvut/kbss/termit/service/business/UserService.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.service.business; diff --git a/src/main/java/cz/cvut/kbss/termit/service/business/VocabularyService.java b/src/main/java/cz/cvut/kbss/termit/service/business/VocabularyService.java index 82c354228..ac55ce39a 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/business/VocabularyService.java +++ b/src/main/java/cz/cvut/kbss/termit/service/business/VocabularyService.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.service.business; diff --git a/src/main/java/cz/cvut/kbss/termit/service/business/async/AsyncTermService.java b/src/main/java/cz/cvut/kbss/termit/service/business/async/AsyncTermService.java index 347c4a898..fc807b733 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/business/async/AsyncTermService.java +++ b/src/main/java/cz/cvut/kbss/termit/service/business/async/AsyncTermService.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.business.async; import cz.cvut.kbss.termit.dto.listing.TermDto; diff --git a/src/main/java/cz/cvut/kbss/termit/service/business/readonly/ReadOnlyTermService.java b/src/main/java/cz/cvut/kbss/termit/service/business/readonly/ReadOnlyTermService.java index af18cd9b5..a35c9afa9 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/business/readonly/ReadOnlyTermService.java +++ b/src/main/java/cz/cvut/kbss/termit/service/business/readonly/ReadOnlyTermService.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.business.readonly; import cz.cvut.kbss.termit.dto.Snapshot; diff --git a/src/main/java/cz/cvut/kbss/termit/service/business/readonly/ReadOnlyVocabularyService.java b/src/main/java/cz/cvut/kbss/termit/service/business/readonly/ReadOnlyVocabularyService.java index e7efa2d9c..56665ea69 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/business/readonly/ReadOnlyVocabularyService.java +++ b/src/main/java/cz/cvut/kbss/termit/service/business/readonly/ReadOnlyVocabularyService.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.business.readonly; import cz.cvut.kbss.termit.dto.Snapshot; diff --git a/src/main/java/cz/cvut/kbss/termit/service/cache/AccessControlListCacheKeyGenerator.java b/src/main/java/cz/cvut/kbss/termit/service/cache/AccessControlListCacheKeyGenerator.java index 622b0c55b..9dbdad86f 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/cache/AccessControlListCacheKeyGenerator.java +++ b/src/main/java/cz/cvut/kbss/termit/service/cache/AccessControlListCacheKeyGenerator.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.cache; import cz.cvut.kbss.termit.exception.NotFoundException; diff --git a/src/main/java/cz/cvut/kbss/termit/service/changetracking/ChangeCalculator.java b/src/main/java/cz/cvut/kbss/termit/service/changetracking/ChangeCalculator.java index dbfbc7a9c..cfa26c46a 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/changetracking/ChangeCalculator.java +++ b/src/main/java/cz/cvut/kbss/termit/service/changetracking/ChangeCalculator.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.changetracking; import cz.cvut.kbss.termit.model.Asset; diff --git a/src/main/java/cz/cvut/kbss/termit/service/changetracking/ChangeRecordProvider.java b/src/main/java/cz/cvut/kbss/termit/service/changetracking/ChangeRecordProvider.java index 2e8e34423..41396793d 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/changetracking/ChangeRecordProvider.java +++ b/src/main/java/cz/cvut/kbss/termit/service/changetracking/ChangeRecordProvider.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.changetracking; import cz.cvut.kbss.termit.model.changetracking.AbstractChangeRecord; diff --git a/src/main/java/cz/cvut/kbss/termit/service/changetracking/ChangeTracker.java b/src/main/java/cz/cvut/kbss/termit/service/changetracking/ChangeTracker.java index f8abebb39..dbd6b9cc1 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/changetracking/ChangeTracker.java +++ b/src/main/java/cz/cvut/kbss/termit/service/changetracking/ChangeTracker.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.changetracking; import cz.cvut.kbss.termit.model.Asset; diff --git a/src/main/java/cz/cvut/kbss/termit/service/changetracking/MetamodelBasedChangeCalculator.java b/src/main/java/cz/cvut/kbss/termit/service/changetracking/MetamodelBasedChangeCalculator.java index 5e587846c..fd4e50ffc 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/changetracking/MetamodelBasedChangeCalculator.java +++ b/src/main/java/cz/cvut/kbss/termit/service/changetracking/MetamodelBasedChangeCalculator.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.changetracking; import cz.cvut.kbss.jopa.model.EntityManagerFactory; diff --git a/src/main/java/cz/cvut/kbss/termit/service/comment/CommentService.java b/src/main/java/cz/cvut/kbss/termit/service/comment/CommentService.java index 9dbd635f5..a052c384a 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/comment/CommentService.java +++ b/src/main/java/cz/cvut/kbss/termit/service/comment/CommentService.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.comment; import cz.cvut.kbss.termit.exception.AuthorizationException; diff --git a/src/main/java/cz/cvut/kbss/termit/service/config/ConfigurationProvider.java b/src/main/java/cz/cvut/kbss/termit/service/config/ConfigurationProvider.java index 44689f06e..2673d7391 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/config/ConfigurationProvider.java +++ b/src/main/java/cz/cvut/kbss/termit/service/config/ConfigurationProvider.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.config; import cz.cvut.kbss.termit.dto.ConfigurationDto; diff --git a/src/main/java/cz/cvut/kbss/termit/service/document/AnnotationGenerator.java b/src/main/java/cz/cvut/kbss/termit/service/document/AnnotationGenerator.java index 9f00acde4..d9ed62fce 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/document/AnnotationGenerator.java +++ b/src/main/java/cz/cvut/kbss/termit/service/document/AnnotationGenerator.java @@ -1,17 +1,17 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague - *

+ * Copyright (C) 2023 Czech Technical University in Prague + * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. - *

+ * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - *

+ * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ diff --git a/src/main/java/cz/cvut/kbss/termit/service/document/DefaultDocumentManager.java b/src/main/java/cz/cvut/kbss/termit/service/document/DefaultDocumentManager.java index a5d23dfec..81100392c 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/document/DefaultDocumentManager.java +++ b/src/main/java/cz/cvut/kbss/termit/service/document/DefaultDocumentManager.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.service.document; diff --git a/src/main/java/cz/cvut/kbss/termit/service/document/DocumentManager.java b/src/main/java/cz/cvut/kbss/termit/service/document/DocumentManager.java index 75bf8961d..94b0c8509 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/document/DocumentManager.java +++ b/src/main/java/cz/cvut/kbss/termit/service/document/DocumentManager.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.service.document; diff --git a/src/main/java/cz/cvut/kbss/termit/service/document/TermOccurrenceResolver.java b/src/main/java/cz/cvut/kbss/termit/service/document/TermOccurrenceResolver.java index eaeed3f1d..d25ca40f8 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/document/TermOccurrenceResolver.java +++ b/src/main/java/cz/cvut/kbss/termit/service/document/TermOccurrenceResolver.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/service/document/TermOccurrenceResolvers.java b/src/main/java/cz/cvut/kbss/termit/service/document/TermOccurrenceResolvers.java index d1f553d26..be6e29e02 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/document/TermOccurrenceResolvers.java +++ b/src/main/java/cz/cvut/kbss/termit/service/document/TermOccurrenceResolvers.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/service/document/TextAnalysisService.java b/src/main/java/cz/cvut/kbss/termit/service/document/TextAnalysisService.java index 02367081e..c2c7ae3c2 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/document/TextAnalysisService.java +++ b/src/main/java/cz/cvut/kbss/termit/service/document/TextAnalysisService.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.service.document; diff --git a/src/main/java/cz/cvut/kbss/termit/service/document/html/HtmlSelectorGenerators.java b/src/main/java/cz/cvut/kbss/termit/service/document/html/HtmlSelectorGenerators.java index 9c4661a71..8d0779d5b 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/document/html/HtmlSelectorGenerators.java +++ b/src/main/java/cz/cvut/kbss/termit/service/document/html/HtmlSelectorGenerators.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/service/document/html/HtmlTermOccurrenceResolver.java b/src/main/java/cz/cvut/kbss/termit/service/document/html/HtmlTermOccurrenceResolver.java index 36089a6f9..4108ddb4e 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/document/html/HtmlTermOccurrenceResolver.java +++ b/src/main/java/cz/cvut/kbss/termit/service/document/html/HtmlTermOccurrenceResolver.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.service.document.html; diff --git a/src/main/java/cz/cvut/kbss/termit/service/document/html/SelectorGenerator.java b/src/main/java/cz/cvut/kbss/termit/service/document/html/SelectorGenerator.java index ab8bfe8ed..b13049475 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/document/html/SelectorGenerator.java +++ b/src/main/java/cz/cvut/kbss/termit/service/document/html/SelectorGenerator.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.service.document.html; diff --git a/src/main/java/cz/cvut/kbss/termit/service/document/html/TextPositionSelectorGenerator.java b/src/main/java/cz/cvut/kbss/termit/service/document/html/TextPositionSelectorGenerator.java index 8d0fadcf3..b2fb792a8 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/document/html/TextPositionSelectorGenerator.java +++ b/src/main/java/cz/cvut/kbss/termit/service/document/html/TextPositionSelectorGenerator.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/service/document/html/TextQuoteSelectorGenerator.java b/src/main/java/cz/cvut/kbss/termit/service/document/html/TextQuoteSelectorGenerator.java index d3be6e005..529501d97 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/document/html/TextQuoteSelectorGenerator.java +++ b/src/main/java/cz/cvut/kbss/termit/service/document/html/TextQuoteSelectorGenerator.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/service/document/util/TypeAwareFileSystemResource.java b/src/main/java/cz/cvut/kbss/termit/service/document/util/TypeAwareFileSystemResource.java index 1cb5da9e4..fce88b122 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/document/util/TypeAwareFileSystemResource.java +++ b/src/main/java/cz/cvut/kbss/termit/service/document/util/TypeAwareFileSystemResource.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/service/export/ExcelTermExporter.java b/src/main/java/cz/cvut/kbss/termit/service/export/ExcelTermExporter.java index 99420afe9..b4daa5c2a 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/export/ExcelTermExporter.java +++ b/src/main/java/cz/cvut/kbss/termit/service/export/ExcelTermExporter.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.export; import cz.cvut.kbss.jopa.vocabulary.DC; diff --git a/src/main/java/cz/cvut/kbss/termit/service/export/ExcelVocabularyExporter.java b/src/main/java/cz/cvut/kbss/termit/service/export/ExcelVocabularyExporter.java index becb8ac93..fb4bef3bf 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/export/ExcelVocabularyExporter.java +++ b/src/main/java/cz/cvut/kbss/termit/service/export/ExcelVocabularyExporter.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.service.export; diff --git a/src/main/java/cz/cvut/kbss/termit/service/export/ExportConfig.java b/src/main/java/cz/cvut/kbss/termit/service/export/ExportConfig.java index 25b439875..6a82d4146 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/export/ExportConfig.java +++ b/src/main/java/cz/cvut/kbss/termit/service/export/ExportConfig.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.export; import java.util.HashSet; diff --git a/src/main/java/cz/cvut/kbss/termit/service/export/ExportFormat.java b/src/main/java/cz/cvut/kbss/termit/service/export/ExportFormat.java index 0791e5d96..f4af0e3ad 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/export/ExportFormat.java +++ b/src/main/java/cz/cvut/kbss/termit/service/export/ExportFormat.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.export; import cz.cvut.kbss.termit.util.Constants; diff --git a/src/main/java/cz/cvut/kbss/termit/service/export/ExportType.java b/src/main/java/cz/cvut/kbss/termit/service/export/ExportType.java index 419efa699..555cf746f 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/export/ExportType.java +++ b/src/main/java/cz/cvut/kbss/termit/service/export/ExportType.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.export; /** diff --git a/src/main/java/cz/cvut/kbss/termit/service/export/SKOSRdfXmlVocabularyExporter.java b/src/main/java/cz/cvut/kbss/termit/service/export/SKOSRdfXmlVocabularyExporter.java index a697343f7..a93a24a28 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/export/SKOSRdfXmlVocabularyExporter.java +++ b/src/main/java/cz/cvut/kbss/termit/service/export/SKOSRdfXmlVocabularyExporter.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.export; import org.springframework.context.ApplicationContext; diff --git a/src/main/java/cz/cvut/kbss/termit/service/export/SKOSTurtleVocabularyExporter.java b/src/main/java/cz/cvut/kbss/termit/service/export/SKOSTurtleVocabularyExporter.java index e795f85c6..03d228981 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/export/SKOSTurtleVocabularyExporter.java +++ b/src/main/java/cz/cvut/kbss/termit/service/export/SKOSTurtleVocabularyExporter.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.export; import org.springframework.beans.factory.annotation.Autowired; diff --git a/src/main/java/cz/cvut/kbss/termit/service/export/SKOSVocabularyExporter.java b/src/main/java/cz/cvut/kbss/termit/service/export/SKOSVocabularyExporter.java index d95502437..2d03290f6 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/export/SKOSVocabularyExporter.java +++ b/src/main/java/cz/cvut/kbss/termit/service/export/SKOSVocabularyExporter.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.export; import cz.cvut.kbss.termit.exception.UnsupportedOperationException; @@ -7,6 +24,7 @@ import cz.cvut.kbss.termit.util.TypeAwareResource; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.ApplicationContext; import org.springframework.transaction.annotation.Transactional; diff --git a/src/main/java/cz/cvut/kbss/termit/service/export/VocabularyExporter.java b/src/main/java/cz/cvut/kbss/termit/service/export/VocabularyExporter.java index be5d73b55..052fbad7f 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/export/VocabularyExporter.java +++ b/src/main/java/cz/cvut/kbss/termit/service/export/VocabularyExporter.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.service.export; diff --git a/src/main/java/cz/cvut/kbss/termit/service/export/VocabularyExporters.java b/src/main/java/cz/cvut/kbss/termit/service/export/VocabularyExporters.java index 75128d272..71101155b 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/export/VocabularyExporters.java +++ b/src/main/java/cz/cvut/kbss/termit/service/export/VocabularyExporters.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.service.export; diff --git a/src/main/java/cz/cvut/kbss/termit/service/export/util/TabularTermExportUtils.java b/src/main/java/cz/cvut/kbss/termit/service/export/util/TabularTermExportUtils.java index 64a887d75..57b192f62 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/export/util/TabularTermExportUtils.java +++ b/src/main/java/cz/cvut/kbss/termit/service/export/util/TabularTermExportUtils.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.export.util; import cz.cvut.kbss.jopa.model.MultilingualString; diff --git a/src/main/java/cz/cvut/kbss/termit/service/export/util/TypeAwareByteArrayResource.java b/src/main/java/cz/cvut/kbss/termit/service/export/util/TypeAwareByteArrayResource.java index b469126fa..9559bd0e2 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/export/util/TypeAwareByteArrayResource.java +++ b/src/main/java/cz/cvut/kbss/termit/service/export/util/TypeAwareByteArrayResource.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/service/init/AdminAccountGenerator.java b/src/main/java/cz/cvut/kbss/termit/service/init/AdminAccountGenerator.java index 4d5258175..e91ddf68a 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/init/AdminAccountGenerator.java +++ b/src/main/java/cz/cvut/kbss/termit/service/init/AdminAccountGenerator.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.init; import cz.cvut.kbss.termit.model.UserAccount; @@ -27,19 +44,23 @@ public class AdminAccountGenerator { private final UserRepositoryService userService; - private final Configuration.Admin adminConfig; + private final Configuration config; public AdminAccountGenerator(UserRepositoryService userService, Configuration config) { this.userService = userService; - this.adminConfig = config.getAdmin(); + this.config = config; } /** * Generates a system administrator account, if it already does not exist. - * + *

* The admin credentials are written out to standard output and also generated into a configurable file. */ public void initSystemAdmin() { + if (config.getSecurity().getProvider() == Configuration.Security.ProviderType.OIDC) { + LOG.info("Using OIDC authentication. Skipping system admin account generation."); + return; + } if (userService.doesAdminExist()) { LOG.info("An admin account already exists."); return; @@ -52,7 +73,7 @@ public void initSystemAdmin() { LOG.info("----------------------------------------------"); LOG.info("Admin credentials are: {}/{}", admin.getUsername(), passwordPlain); LOG.info("----------------------------------------------"); - final File directory = new File(adminConfig.getCredentialsLocation()); + final File directory = new File(config.getAdmin().getCredentialsLocation()); try { if (!directory.exists()) { Files.createDirectories(directory.toPath()); @@ -71,12 +92,12 @@ public void initSystemAdmin() { } private File createHiddenFile() throws IOException { - final File credentialsFile = new File(adminConfig.getCredentialsLocation() + File.separator + - adminConfig.getCredentialsFile()); + final File credentialsFile = new File(config.getAdmin().getCredentialsLocation() + File.separator + + config.getAdmin().getCredentialsFile()); final boolean result = credentialsFile.createNewFile(); if (!result) { LOG.error("Unable to create admin credentials file {}. Admin credentials won't be saved in any file!", - adminConfig.getCredentialsFile()); + config.getAdmin().getCredentialsFile()); return null; } // Hidden attribute on Windows diff --git a/src/main/java/cz/cvut/kbss/termit/service/init/SystemInitializer.java b/src/main/java/cz/cvut/kbss/termit/service/init/SystemInitializer.java index 70dfd3100..c000aed19 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/init/SystemInitializer.java +++ b/src/main/java/cz/cvut/kbss/termit/service/init/SystemInitializer.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.service.init; diff --git a/src/main/java/cz/cvut/kbss/termit/service/init/VocabularyAccessControlListGenerator.java b/src/main/java/cz/cvut/kbss/termit/service/init/VocabularyAccessControlListGenerator.java index a3ac79111..a0081d479 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/init/VocabularyAccessControlListGenerator.java +++ b/src/main/java/cz/cvut/kbss/termit/service/init/VocabularyAccessControlListGenerator.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.init; import cz.cvut.kbss.jopa.model.EntityManager; diff --git a/src/main/java/cz/cvut/kbss/termit/service/jmx/AppAdminBean.java b/src/main/java/cz/cvut/kbss/termit/service/jmx/AppAdminBean.java index c4b8398c1..0ccf0c68c 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/jmx/AppAdminBean.java +++ b/src/main/java/cz/cvut/kbss/termit/service/jmx/AppAdminBean.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.service.jmx; diff --git a/src/main/java/cz/cvut/kbss/termit/service/language/LanguageService.java b/src/main/java/cz/cvut/kbss/termit/service/language/LanguageService.java index 76f98a9d9..f3485fb5b 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/language/LanguageService.java +++ b/src/main/java/cz/cvut/kbss/termit/service/language/LanguageService.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.service.language; diff --git a/src/main/java/cz/cvut/kbss/termit/service/language/TermStateLanguageService.java b/src/main/java/cz/cvut/kbss/termit/service/language/TermStateLanguageService.java index 3bd1fa53b..d6906c970 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/language/TermStateLanguageService.java +++ b/src/main/java/cz/cvut/kbss/termit/service/language/TermStateLanguageService.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.language; import cz.cvut.kbss.termit.dto.RdfsResource; @@ -5,18 +22,17 @@ import cz.cvut.kbss.termit.util.Utils; import cz.cvut.kbss.termit.util.Vocabulary; import org.eclipse.rdf4j.model.Model; -import org.eclipse.rdf4j.model.Resource; import org.eclipse.rdf4j.model.ValueFactory; import org.eclipse.rdf4j.model.impl.SimpleValueFactory; import org.eclipse.rdf4j.model.vocabulary.RDF; -import org.eclipse.rdf4j.model.vocabulary.RDFS; +import org.eclipse.rdf4j.model.vocabulary.SKOS; import org.eclipse.rdf4j.rio.RDFFormat; import org.eclipse.rdf4j.rio.RDFParseException; import org.eclipse.rdf4j.rio.Rio; import org.eclipse.rdf4j.rio.UnsupportedRDFormatException; import org.jetbrains.annotations.NotNull; import org.springframework.beans.factory.annotation.Qualifier; -import org.springframework.core.io.ClassPathResource; +import org.springframework.core.io.Resource; import org.springframework.stereotype.Service; import java.io.IOException; @@ -33,11 +49,11 @@ @Service public class TermStateLanguageService { - private final ClassPathResource termStatesLanguageTtl; + private final Resource termStatesLanguageTtl; private List cache; - public TermStateLanguageService(@Qualifier("termStatesLanguage") ClassPathResource termStatesLanguageTtl) { + public TermStateLanguageService(@Qualifier("termStatesLanguage") Resource termStatesLanguageTtl) { this.termStatesLanguageTtl = termStatesLanguageTtl; } @@ -60,18 +76,19 @@ private List loadTermStates() { final Model model = Rio.parse(termStatesLanguageTtl.getInputStream(), RDFFormat.TURTLE); return model.filter(null, RDF.TYPE, vf.createIRI(Vocabulary.s_c_stav_pojmu)) .stream().map(s -> { - final Resource state = s.getSubject(); + final org.eclipse.rdf4j.model.Resource state = s.getSubject(); final RdfsResource res = new RdfsResource(); res.setUri(URI.create(state.stringValue())); final Model statements = model.filter(state, null, null); res.setTypes(statements.filter(state, RDF.TYPE, null).stream() .map(ts -> ts.getObject().stringValue()).collect(Collectors.toSet())); - res.setLabel(Utils.resolveTranslations(state, RDFS.LABEL, statements)); - res.setComment(Utils.resolveTranslations(state, RDFS.COMMENT, statements)); + res.setLabel(Utils.resolveTranslations(state, SKOS.PREF_LABEL, statements)); + res.setComment(Utils.resolveTranslations(state, SKOS.SCOPE_NOTE, statements)); return res; }).collect(Collectors.toList()); } catch (IOException | RDFParseException | UnsupportedRDFormatException e) { - throw new LanguageRetrievalException("Unable to load term states language from file " + termStatesLanguageTtl.getPath(), e); + throw new LanguageRetrievalException( + "Unable to load term states language from file " + termStatesLanguageTtl.getFilename(), e); } } diff --git a/src/main/java/cz/cvut/kbss/termit/service/language/UfoTermTypesService.java b/src/main/java/cz/cvut/kbss/termit/service/language/UfoTermTypesService.java index 35b411605..88c0e8b03 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/language/UfoTermTypesService.java +++ b/src/main/java/cz/cvut/kbss/termit/service/language/UfoTermTypesService.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.service.language; @@ -29,12 +32,13 @@ import org.jetbrains.annotations.NotNull; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; -import org.springframework.core.io.ClassPathResource; +import org.springframework.core.io.Resource; import org.springframework.stereotype.Service; import java.io.IOException; import java.net.URI; import java.util.List; +import java.util.Set; import java.util.stream.Collectors; /** @@ -45,12 +49,12 @@ @Service public class UfoTermTypesService { - private final ClassPathResource languageTtlUrl; + private final Resource languageTtlUrl; private List cache; @Autowired - public UfoTermTypesService(@Qualifier("termTypesLanguage") ClassPathResource languageTtlUrl) { + public UfoTermTypesService(@Qualifier("termTypesLanguage") Resource languageTtlUrl) { this.languageTtlUrl = languageTtlUrl; } @@ -81,16 +85,21 @@ private List loadTermTypes() { final org.eclipse.rdf4j.model.Resource type = s.getSubject(); final Term term = new Term(URI.create(type.stringValue())); final Model statements = model.filter(type, null, null); - term.setLabel(Utils.resolveTranslations(type, org.eclipse.rdf4j.model.vocabulary.RDFS.LABEL, statements)); - term.setDescription(Utils.resolveTranslations(type, org.eclipse.rdf4j.model.vocabulary.RDFS.COMMENT, statements)); - term.setSubTerms(statements.filter(type, SKOS.NARROWER, null).stream() + term.setLabel(Utils.resolveTranslations(type, SKOS.PREF_LABEL, statements)); + term.setDescription(Utils.resolveTranslations(type, SKOS.SCOPE_NOTE, statements)); + final Set subTerms = statements.filter(type, SKOS.NARROWER, null).stream() .filter(st -> st.getObject().isIRI()) - .map(st -> new TermInfo(URI.create(st.getObject().stringValue()))) - .collect(Collectors.toSet())); + .map(st -> URI.create(st.getObject().stringValue())) + .collect(Collectors.toSet()); + model.filter(null, SKOS.BROADER, type).stream() + .filter(st -> st.getSubject().isIRI()) + .map(st -> URI.create(st.getSubject().stringValue())) + .forEach(subTerms::add); + term.setSubTerms(subTerms.stream().map(TermInfo::new).collect(Collectors.toSet())); return term; }).collect(Collectors.toList()); } catch (IOException | RDFParseException | UnsupportedRDFormatException e) { - throw new LanguageRetrievalException("Unable to load term types from file " + languageTtlUrl.getPath(), e); + throw new LanguageRetrievalException("Unable to load term types from file " + languageTtlUrl.getFilename(), e); } } } diff --git a/src/main/java/cz/cvut/kbss/termit/service/mail/ApplicationLinkBuilder.java b/src/main/java/cz/cvut/kbss/termit/service/mail/ApplicationLinkBuilder.java index 1af2fb5e3..103f0f16e 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/mail/ApplicationLinkBuilder.java +++ b/src/main/java/cz/cvut/kbss/termit/service/mail/ApplicationLinkBuilder.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.mail; import cz.cvut.kbss.termit.model.Asset; diff --git a/src/main/java/cz/cvut/kbss/termit/service/mail/AssetLink.java b/src/main/java/cz/cvut/kbss/termit/service/mail/AssetLink.java index 612f43fb9..1ac76d6b9 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/mail/AssetLink.java +++ b/src/main/java/cz/cvut/kbss/termit/service/mail/AssetLink.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.mail; import cz.cvut.kbss.termit.model.AbstractTerm; diff --git a/src/main/java/cz/cvut/kbss/termit/service/mail/Message.java b/src/main/java/cz/cvut/kbss/termit/service/mail/Message.java index 91e5fbc58..0f3a82595 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/mail/Message.java +++ b/src/main/java/cz/cvut/kbss/termit/service/mail/Message.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.mail; import java.io.File; diff --git a/src/main/java/cz/cvut/kbss/termit/service/mail/MessageComposer.java b/src/main/java/cz/cvut/kbss/termit/service/mail/MessageComposer.java index e0e12c3aa..88423ba95 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/mail/MessageComposer.java +++ b/src/main/java/cz/cvut/kbss/termit/service/mail/MessageComposer.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.mail; import cz.cvut.kbss.termit.util.Configuration; diff --git a/src/main/java/cz/cvut/kbss/termit/service/mail/Postman.java b/src/main/java/cz/cvut/kbss/termit/service/mail/Postman.java index adcaec368..4f104b7d5 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/mail/Postman.java +++ b/src/main/java/cz/cvut/kbss/termit/service/mail/Postman.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.mail; import cz.cvut.kbss.termit.exception.PostmanException; diff --git a/src/main/java/cz/cvut/kbss/termit/service/notification/CommentChangeNotifier.java b/src/main/java/cz/cvut/kbss/termit/service/notification/CommentChangeNotifier.java index 312996dbd..70711e64b 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/notification/CommentChangeNotifier.java +++ b/src/main/java/cz/cvut/kbss/termit/service/notification/CommentChangeNotifier.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.notification; import cz.cvut.kbss.termit.model.*; diff --git a/src/main/java/cz/cvut/kbss/termit/service/notification/MessageAssetFactory.java b/src/main/java/cz/cvut/kbss/termit/service/notification/MessageAssetFactory.java index b13b12506..f7e40da89 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/notification/MessageAssetFactory.java +++ b/src/main/java/cz/cvut/kbss/termit/service/notification/MessageAssetFactory.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.notification; import cz.cvut.kbss.termit.model.AbstractTerm; diff --git a/src/main/java/cz/cvut/kbss/termit/service/notification/NotificationService.java b/src/main/java/cz/cvut/kbss/termit/service/notification/NotificationService.java index 6f5de29b0..cfd67ee26 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/notification/NotificationService.java +++ b/src/main/java/cz/cvut/kbss/termit/service/notification/NotificationService.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.notification; import cz.cvut.kbss.termit.service.mail.Message; diff --git a/src/main/java/cz/cvut/kbss/termit/service/repository/BaseAssetRepositoryService.java b/src/main/java/cz/cvut/kbss/termit/service/repository/BaseAssetRepositoryService.java index c54025ff2..a2e87dc80 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/repository/BaseAssetRepositoryService.java +++ b/src/main/java/cz/cvut/kbss/termit/service/repository/BaseAssetRepositoryService.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.service.repository; diff --git a/src/main/java/cz/cvut/kbss/termit/service/repository/BaseRepositoryService.java b/src/main/java/cz/cvut/kbss/termit/service/repository/BaseRepositoryService.java index 99baffccf..d64aaec7c 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/repository/BaseRepositoryService.java +++ b/src/main/java/cz/cvut/kbss/termit/service/repository/BaseRepositoryService.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.service.repository; diff --git a/src/main/java/cz/cvut/kbss/termit/service/repository/ChangeRecordService.java b/src/main/java/cz/cvut/kbss/termit/service/repository/ChangeRecordService.java index 30643aff6..6dc0c6ad8 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/repository/ChangeRecordService.java +++ b/src/main/java/cz/cvut/kbss/termit/service/repository/ChangeRecordService.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.repository; import cz.cvut.kbss.termit.model.User; diff --git a/src/main/java/cz/cvut/kbss/termit/service/repository/DataRepositoryService.java b/src/main/java/cz/cvut/kbss/termit/service/repository/DataRepositoryService.java index ac50fb87d..fdbb2e60e 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/repository/DataRepositoryService.java +++ b/src/main/java/cz/cvut/kbss/termit/service/repository/DataRepositoryService.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/service/repository/RepositoryAccessControlListService.java b/src/main/java/cz/cvut/kbss/termit/service/repository/RepositoryAccessControlListService.java index d45cea87a..f52f9ced2 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/repository/RepositoryAccessControlListService.java +++ b/src/main/java/cz/cvut/kbss/termit/service/repository/RepositoryAccessControlListService.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.repository; import cz.cvut.kbss.termit.dto.acl.AccessControlListDto; diff --git a/src/main/java/cz/cvut/kbss/termit/service/repository/ResourceRepositoryService.java b/src/main/java/cz/cvut/kbss/termit/service/repository/ResourceRepositoryService.java index 99bd924dd..d4aea03bf 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/repository/ResourceRepositoryService.java +++ b/src/main/java/cz/cvut/kbss/termit/service/repository/ResourceRepositoryService.java @@ -1,18 +1,20 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ - package cz.cvut.kbss.termit.service.repository; import cz.cvut.kbss.termit.asset.provenance.SupportsLastModification; diff --git a/src/main/java/cz/cvut/kbss/termit/service/repository/SnapshotRepositoryService.java b/src/main/java/cz/cvut/kbss/termit/service/repository/SnapshotRepositoryService.java index ac0e932c0..9da088560 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/repository/SnapshotRepositoryService.java +++ b/src/main/java/cz/cvut/kbss/termit/service/repository/SnapshotRepositoryService.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.repository; import cz.cvut.kbss.termit.dto.Snapshot; diff --git a/src/main/java/cz/cvut/kbss/termit/service/repository/TermOccurrenceRepositoryService.java b/src/main/java/cz/cvut/kbss/termit/service/repository/TermOccurrenceRepositoryService.java index d9d7ef7b4..a3db006b9 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/repository/TermOccurrenceRepositoryService.java +++ b/src/main/java/cz/cvut/kbss/termit/service/repository/TermOccurrenceRepositoryService.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.service.repository; diff --git a/src/main/java/cz/cvut/kbss/termit/service/repository/TermRepositoryService.java b/src/main/java/cz/cvut/kbss/termit/service/repository/TermRepositoryService.java index ec65d4e95..57c642a36 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/repository/TermRepositoryService.java +++ b/src/main/java/cz/cvut/kbss/termit/service/repository/TermRepositoryService.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.service.repository; diff --git a/src/main/java/cz/cvut/kbss/termit/service/repository/UserGroupRepositoryService.java b/src/main/java/cz/cvut/kbss/termit/service/repository/UserGroupRepositoryService.java index dfecbd24b..f89f1cee7 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/repository/UserGroupRepositoryService.java +++ b/src/main/java/cz/cvut/kbss/termit/service/repository/UserGroupRepositoryService.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.repository; import cz.cvut.kbss.termit.model.User; diff --git a/src/main/java/cz/cvut/kbss/termit/service/repository/UserRepositoryService.java b/src/main/java/cz/cvut/kbss/termit/service/repository/UserRepositoryService.java index 727add8ae..b9e929295 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/repository/UserRepositoryService.java +++ b/src/main/java/cz/cvut/kbss/termit/service/repository/UserRepositoryService.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.service.repository; diff --git a/src/main/java/cz/cvut/kbss/termit/service/repository/UserRoleRepositoryService.java b/src/main/java/cz/cvut/kbss/termit/service/repository/UserRoleRepositoryService.java index bfb784eda..bc61f1f40 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/repository/UserRoleRepositoryService.java +++ b/src/main/java/cz/cvut/kbss/termit/service/repository/UserRoleRepositoryService.java @@ -1,18 +1,20 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ - package cz.cvut.kbss.termit.service.repository; import cz.cvut.kbss.termit.model.UserRole; diff --git a/src/main/java/cz/cvut/kbss/termit/service/repository/VocabularyRepositoryService.java b/src/main/java/cz/cvut/kbss/termit/service/repository/VocabularyRepositoryService.java index a2098e815..d00b5c125 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/repository/VocabularyRepositoryService.java +++ b/src/main/java/cz/cvut/kbss/termit/service/repository/VocabularyRepositoryService.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.repository; import cz.cvut.kbss.termit.dto.AggregatedChangeInfo; @@ -85,7 +102,7 @@ protected BaseAssetDao getPrimaryDao() { } // Cache only if all vocabularies are editable - @Cacheable(condition = "@configuration.workspace.allVocabulariesEditable") + @Cacheable(condition = "@'termit-cz.cvut.kbss.termit.util.Configuration'.workspace.allVocabulariesEditable") @Override public List findAll() { return super.findAll(); diff --git a/src/main/java/cz/cvut/kbss/termit/service/security/DisabledLoginTracker.java b/src/main/java/cz/cvut/kbss/termit/service/security/DisabledLoginTracker.java index 1d1463564..2001c58e4 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/security/DisabledLoginTracker.java +++ b/src/main/java/cz/cvut/kbss/termit/service/security/DisabledLoginTracker.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/service/security/LoginTracker.java b/src/main/java/cz/cvut/kbss/termit/service/security/LoginTracker.java index 680f88851..8f410b96e 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/security/LoginTracker.java +++ b/src/main/java/cz/cvut/kbss/termit/service/security/LoginTracker.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/service/security/RuntimeBasedLoginTracker.java b/src/main/java/cz/cvut/kbss/termit/service/security/RuntimeBasedLoginTracker.java index 0d56f6f22..d9ea3f4ae 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/security/RuntimeBasedLoginTracker.java +++ b/src/main/java/cz/cvut/kbss/termit/service/security/RuntimeBasedLoginTracker.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/service/security/SecurityUtils.java b/src/main/java/cz/cvut/kbss/termit/service/security/SecurityUtils.java index 70ecad9bf..758e82a33 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/security/SecurityUtils.java +++ b/src/main/java/cz/cvut/kbss/termit/service/security/SecurityUtils.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.service.security; diff --git a/src/main/java/cz/cvut/kbss/termit/service/security/TermItUserDetailsService.java b/src/main/java/cz/cvut/kbss/termit/service/security/TermItUserDetailsService.java index c7a1894df..aabad1a53 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/security/TermItUserDetailsService.java +++ b/src/main/java/cz/cvut/kbss/termit/service/security/TermItUserDetailsService.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/service/security/authorization/AssetAuthorizationService.java b/src/main/java/cz/cvut/kbss/termit/service/security/authorization/AssetAuthorizationService.java index 4dc02bac1..154aa371b 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/security/authorization/AssetAuthorizationService.java +++ b/src/main/java/cz/cvut/kbss/termit/service/security/authorization/AssetAuthorizationService.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.security.authorization; import cz.cvut.kbss.termit.model.Asset; diff --git a/src/main/java/cz/cvut/kbss/termit/service/security/authorization/ResourceAuthorizationService.java b/src/main/java/cz/cvut/kbss/termit/service/security/authorization/ResourceAuthorizationService.java index 2471f7fa9..631790307 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/security/authorization/ResourceAuthorizationService.java +++ b/src/main/java/cz/cvut/kbss/termit/service/security/authorization/ResourceAuthorizationService.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.security.authorization; import cz.cvut.kbss.termit.model.Vocabulary; diff --git a/src/main/java/cz/cvut/kbss/termit/service/security/authorization/SearchAuthorizationService.java b/src/main/java/cz/cvut/kbss/termit/service/security/authorization/SearchAuthorizationService.java index 3b31fdeea..b34cb68bc 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/security/authorization/SearchAuthorizationService.java +++ b/src/main/java/cz/cvut/kbss/termit/service/security/authorization/SearchAuthorizationService.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.security.authorization; import cz.cvut.kbss.jopa.vocabulary.SKOS; diff --git a/src/main/java/cz/cvut/kbss/termit/service/security/authorization/SnapshotAuthorizationService.java b/src/main/java/cz/cvut/kbss/termit/service/security/authorization/SnapshotAuthorizationService.java index ade198f5c..e90450f76 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/security/authorization/SnapshotAuthorizationService.java +++ b/src/main/java/cz/cvut/kbss/termit/service/security/authorization/SnapshotAuthorizationService.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.security.authorization; import cz.cvut.kbss.termit.dto.Snapshot; diff --git a/src/main/java/cz/cvut/kbss/termit/service/security/authorization/TermAuthorizationService.java b/src/main/java/cz/cvut/kbss/termit/service/security/authorization/TermAuthorizationService.java index 946db0ca3..bef202845 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/security/authorization/TermAuthorizationService.java +++ b/src/main/java/cz/cvut/kbss/termit/service/security/authorization/TermAuthorizationService.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.security.authorization; import cz.cvut.kbss.termit.model.AbstractTerm; diff --git a/src/main/java/cz/cvut/kbss/termit/service/security/authorization/VocabularyAuthorizationService.java b/src/main/java/cz/cvut/kbss/termit/service/security/authorization/VocabularyAuthorizationService.java index 0f4a654cd..37f99ff3d 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/security/authorization/VocabularyAuthorizationService.java +++ b/src/main/java/cz/cvut/kbss/termit/service/security/authorization/VocabularyAuthorizationService.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.security.authorization; import cz.cvut.kbss.termit.dto.listing.VocabularyDto; diff --git a/src/main/java/cz/cvut/kbss/termit/service/security/authorization/acl/AccessControlListBasedAuthorizationService.java b/src/main/java/cz/cvut/kbss/termit/service/security/authorization/acl/AccessControlListBasedAuthorizationService.java index 842f6ce19..7535aef96 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/security/authorization/acl/AccessControlListBasedAuthorizationService.java +++ b/src/main/java/cz/cvut/kbss/termit/service/security/authorization/acl/AccessControlListBasedAuthorizationService.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.security.authorization.acl; import cz.cvut.kbss.termit.model.UserAccount; diff --git a/src/main/java/cz/cvut/kbss/termit/service/snapshot/SnapshotProvider.java b/src/main/java/cz/cvut/kbss/termit/service/snapshot/SnapshotProvider.java index e5cc090fc..d09d4b480 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/snapshot/SnapshotProvider.java +++ b/src/main/java/cz/cvut/kbss/termit/service/snapshot/SnapshotProvider.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.snapshot; import cz.cvut.kbss.termit.dto.Snapshot; diff --git a/src/main/java/cz/cvut/kbss/termit/service/term/AssertedInferredValueDifferentiator.java b/src/main/java/cz/cvut/kbss/termit/service/term/AssertedInferredValueDifferentiator.java index 98d543889..7a25f479a 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/term/AssertedInferredValueDifferentiator.java +++ b/src/main/java/cz/cvut/kbss/termit/service/term/AssertedInferredValueDifferentiator.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.term; import cz.cvut.kbss.termit.dto.TermInfo; diff --git a/src/main/java/cz/cvut/kbss/termit/service/term/OrphanedInverseTermRelationshipRemover.java b/src/main/java/cz/cvut/kbss/termit/service/term/OrphanedInverseTermRelationshipRemover.java index 46326b669..0fb281f27 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/term/OrphanedInverseTermRelationshipRemover.java +++ b/src/main/java/cz/cvut/kbss/termit/service/term/OrphanedInverseTermRelationshipRemover.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.term; import cz.cvut.kbss.termit.dto.TermInfo; diff --git a/src/main/java/cz/cvut/kbss/termit/service/workspace/WorkspaceService.java b/src/main/java/cz/cvut/kbss/termit/service/workspace/WorkspaceService.java index 3e53593ce..7f786ce1e 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/workspace/WorkspaceService.java +++ b/src/main/java/cz/cvut/kbss/termit/service/workspace/WorkspaceService.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.workspace; import cz.cvut.kbss.termit.exception.NotFoundException; diff --git a/src/main/java/cz/cvut/kbss/termit/util/AdjustedUriTemplateProxyServlet.java b/src/main/java/cz/cvut/kbss/termit/util/AdjustedUriTemplateProxyServlet.java index 59dd669f8..8b46e3ce0 100644 --- a/src/main/java/cz/cvut/kbss/termit/util/AdjustedUriTemplateProxyServlet.java +++ b/src/main/java/cz/cvut/kbss/termit/util/AdjustedUriTemplateProxyServlet.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/util/AsyncExceptionHandler.java b/src/main/java/cz/cvut/kbss/termit/util/AsyncExceptionHandler.java index 5b3c92d11..c3c2b2b2b 100644 --- a/src/main/java/cz/cvut/kbss/termit/util/AsyncExceptionHandler.java +++ b/src/main/java/cz/cvut/kbss/termit/util/AsyncExceptionHandler.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.util; import org.slf4j.Logger; diff --git a/src/main/java/cz/cvut/kbss/termit/util/CacheEventLogger.java b/src/main/java/cz/cvut/kbss/termit/util/CacheEventLogger.java index a8cce681d..5ac2215f3 100644 --- a/src/main/java/cz/cvut/kbss/termit/util/CacheEventLogger.java +++ b/src/main/java/cz/cvut/kbss/termit/util/CacheEventLogger.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.util; import org.ehcache.event.CacheEvent; diff --git a/src/main/java/cz/cvut/kbss/termit/util/ConfigParam.java b/src/main/java/cz/cvut/kbss/termit/util/ConfigParam.java index ddbe13033..ed48145bf 100644 --- a/src/main/java/cz/cvut/kbss/termit/util/ConfigParam.java +++ b/src/main/java/cz/cvut/kbss/termit/util/ConfigParam.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.util; diff --git a/src/main/java/cz/cvut/kbss/termit/util/Configuration.java b/src/main/java/cz/cvut/kbss/termit/util/Configuration.java index 029b01124..e54d2d667 100644 --- a/src/main/java/cz/cvut/kbss/termit/util/Configuration.java +++ b/src/main/java/cz/cvut/kbss/termit/util/Configuration.java @@ -1,24 +1,28 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.util; import cz.cvut.kbss.termit.model.acl.AccessLevel; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.context.annotation.Primary; -import jakarta.validation.constraints.NotNull; import java.util.Optional; import java.util.Set; @@ -31,9 +35,9 @@ * The configuration can be also set via OS * environment variables. These override any statically configured values. */ -@org.springframework.context.annotation.Configuration @ConfigurationProperties("termit") @Primary +@Valid public class Configuration { /** * TermIt frontend URL. @@ -65,6 +69,7 @@ public class Configuration { private ACL acl = new ACL(); private Mail mail = new Mail(); private Security security = new Security(); + private Language language = new Language(); public String getUrl() { return url; @@ -218,8 +223,15 @@ public void setSecurity(Security security) { this.security = security; } - @org.springframework.context.annotation.Configuration - @ConfigurationProperties(prefix = "persistence") + public Language getLanguage() { + return language; + } + + public void setLanguage(Language language) { + this.language = language; + } + + public static class Persistence { /** * OntoDriver class for the repository. @@ -249,8 +261,6 @@ public void setLanguage(String language) { } } - @org.springframework.context.annotation.Configuration - @ConfigurationProperties(prefix = "repository") public static class Repository { /** * URL of the main application repository. @@ -305,8 +315,6 @@ public void setPassword(String password) { } } - @org.springframework.context.annotation.Configuration - @ConfigurationProperties(prefix = "changetracking") public static class ChangeTracking { Context context = new Context(); @@ -336,8 +344,6 @@ public void setExtension(String extension) { } } - @org.springframework.context.annotation.Configuration - @ConfigurationProperties(prefix = "comments") public static class Comments { /** * IRI of the repository context used to store comments (discussion to assets). @@ -354,8 +360,6 @@ public void setContext(String context) { } } - @org.springframework.context.annotation.Configuration - @ConfigurationProperties(prefix = "namespace") public static class Namespace { /** * Namespace for vocabulary identifiers. @@ -468,8 +472,6 @@ public void setSeparator(String separator) { } } - @org.springframework.context.annotation.Configuration - @ConfigurationProperties(prefix = "admin") public static class Admin { /** * Specifies the folder in which admin credentials are saved when its account is generated. @@ -499,8 +501,6 @@ public void setCredentialsLocation(String credentialsLocation) { } } - @org.springframework.context.annotation.Configuration - @ConfigurationProperties(prefix = "file") public static class File { /** * Specifies root directory in which document files are stored. @@ -517,13 +517,10 @@ public void setStorage(String storage) { } } - @org.springframework.context.annotation.Configuration - @ConfigurationProperties(prefix = "jwt") public static class Jwt { /** * Secret key used when hashing a JWT. */ - @NotNull String secretKey; public String getSecretKey() { @@ -535,8 +532,6 @@ public void setSecretKey(String secretKey) { } } - @org.springframework.context.annotation.Configuration - @ConfigurationProperties(prefix = "textanalysis") public static class TextAnalysis { /** * URL of the text analysis service. @@ -586,8 +581,6 @@ public void setTermOccurrenceMinScore(String termOccurrenceMinScore) { } } - @org.springframework.context.annotation.Configuration - @ConfigurationProperties(prefix = "glossary") public static class Glossary { /** * IRI path to append to vocabulary IRI to get glossary identifier. @@ -604,7 +597,6 @@ public void setFragment(String fragment) { } } - @org.springframework.context.annotation.Configuration public static class PublicView { /** * Unmapped properties allowed to appear in the SKOS export. @@ -621,7 +613,6 @@ public void setWhiteListProperties(final Set whiteListProperties) { } } - @org.springframework.context.annotation.Configuration public static class Workspace { /** @@ -644,7 +635,6 @@ public void setAllVocabulariesEditable(boolean allVocabulariesEditable) { } } - @org.springframework.context.annotation.Configuration public static class Cors { /** * A comma-separated list of allowed origins for CORS. @@ -678,7 +668,6 @@ public void setAllowedOriginPatterns(String allowedOriginPatterns) { } } - @org.springframework.context.annotation.Configuration public static class Schedule { private Cron cron = new Cron(); @@ -722,7 +711,6 @@ public void setComments(String comments) { } } - @org.springframework.context.annotation.Configuration public static class Mail { /** @@ -742,7 +730,6 @@ public void setSender(String sender) { /** * Configuration for initialization of new {@link cz.cvut.kbss.termit.model.acl.AccessControlList}s. */ - @org.springframework.context.annotation.Configuration public static class ACL { /** @@ -772,7 +759,6 @@ public void setDefaultReaderAccessLevel(AccessLevel defaultReaderAccessLevel) { } } - @org.springframework.context.annotation.Configuration public static class Security { public enum ProviderType { @@ -789,8 +775,10 @@ public enum ProviderType { /** * Claim in the authentication token provided by the OIDC service containing roles mapped to TermIt user roles. + *

+ * Supports nested objects via dot notation. */ - private String roleClaim = "realm_access"; + private String roleClaim = "realm_access.roles"; public ProviderType getProvider() { return provider; @@ -808,4 +796,51 @@ public void setRoleClaim(String roleClaim) { this.roleClaim = roleClaim; } } + + public static class Language { + + /** + * Path to a file containing definition of the language of types terms can be classified with. + *

+ * The file must be in Turtle format. The term definitions must use SKOS terminology for attributes (prefLabel, + * scopeNote and broader/narrower). + */ + private LanguageSource types = new LanguageSource(); + + /** + * Path to a file containing definition of the language of states terms can be in with. The file must be in + * Turtle format. The term definitions must use SKOS terminology for attributes (prefLabel, scopeNote and + * broader/narrower). + */ + private LanguageSource states = new LanguageSource(); + + public LanguageSource getTypes() { + return types; + } + + public void setTypes(LanguageSource types) { + this.types = types; + } + + public LanguageSource getStates() { + return states; + } + + public void setStates(LanguageSource states) { + this.states = states; + } + + public static class LanguageSource { + + private String source; + + public String getSource() { + return source; + } + + public void setSource(String source) { + this.source = source; + } + } + } } diff --git a/src/main/java/cz/cvut/kbss/termit/util/Constants.java b/src/main/java/cz/cvut/kbss/termit/util/Constants.java index 199cee58a..2468b1d12 100644 --- a/src/main/java/cz/cvut/kbss/termit/util/Constants.java +++ b/src/main/java/cz/cvut/kbss/termit/util/Constants.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.util; diff --git a/src/main/java/cz/cvut/kbss/termit/util/CsvUtils.java b/src/main/java/cz/cvut/kbss/termit/util/CsvUtils.java index 51a6e380d..83638946f 100644 --- a/src/main/java/cz/cvut/kbss/termit/util/CsvUtils.java +++ b/src/main/java/cz/cvut/kbss/termit/util/CsvUtils.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.util; diff --git a/src/main/java/cz/cvut/kbss/termit/util/FrontendPaths.java b/src/main/java/cz/cvut/kbss/termit/util/FrontendPaths.java index 4d79dfbfb..b632354db 100644 --- a/src/main/java/cz/cvut/kbss/termit/util/FrontendPaths.java +++ b/src/main/java/cz/cvut/kbss/termit/util/FrontendPaths.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.util; /** diff --git a/src/main/java/cz/cvut/kbss/termit/util/TypeAwareResource.java b/src/main/java/cz/cvut/kbss/termit/util/TypeAwareResource.java index 87514ec34..d52ea7be0 100644 --- a/src/main/java/cz/cvut/kbss/termit/util/TypeAwareResource.java +++ b/src/main/java/cz/cvut/kbss/termit/util/TypeAwareResource.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/util/Utils.java b/src/main/java/cz/cvut/kbss/termit/util/Utils.java index 777f74219..da98e04c3 100644 --- a/src/main/java/cz/cvut/kbss/termit/util/Utils.java +++ b/src/main/java/cz/cvut/kbss/termit/util/Utils.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.util; import com.vladsch.flexmark.html.HtmlRenderer; @@ -311,6 +328,18 @@ public static String uriToString(URI uri) { return "<" + uri + ">"; } + /** + * Checks whether the specified string is blank. + *

+ * {@code null} is considered blank, too. + * + * @param input Input to check + * @return {@code true} if the specified string is blank or null, {@code false} otherwise + */ + public static boolean isBlank(String input) { + return input == null || input.isBlank(); + } + /** * Checks if the specified string is a valid email address. * diff --git a/src/main/java/cz/cvut/kbss/termit/util/json/ManageableIgnoreMixin.java b/src/main/java/cz/cvut/kbss/termit/util/json/ManageableIgnoreMixin.java index 8de2080c0..21700d43e 100644 --- a/src/main/java/cz/cvut/kbss/termit/util/json/ManageableIgnoreMixin.java +++ b/src/main/java/cz/cvut/kbss/termit/util/json/ManageableIgnoreMixin.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.util.json; import com.fasterxml.jackson.annotation.JsonIgnoreType; diff --git a/src/main/java/cz/cvut/kbss/termit/util/json/MultilingualStringDeserializer.java b/src/main/java/cz/cvut/kbss/termit/util/json/MultilingualStringDeserializer.java index d4909f74d..936471c86 100644 --- a/src/main/java/cz/cvut/kbss/termit/util/json/MultilingualStringDeserializer.java +++ b/src/main/java/cz/cvut/kbss/termit/util/json/MultilingualStringDeserializer.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.util.json; import com.fasterxml.jackson.core.JsonParser; diff --git a/src/main/java/cz/cvut/kbss/termit/util/json/MultilingualStringSerializer.java b/src/main/java/cz/cvut/kbss/termit/util/json/MultilingualStringSerializer.java index bcdf31890..812a4831b 100644 --- a/src/main/java/cz/cvut/kbss/termit/util/json/MultilingualStringSerializer.java +++ b/src/main/java/cz/cvut/kbss/termit/util/json/MultilingualStringSerializer.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.util.json; import com.fasterxml.jackson.core.JsonGenerator; diff --git a/src/main/java/cz/cvut/kbss/termit/util/oidc/OidcGrantedAuthoritiesExtractor.java b/src/main/java/cz/cvut/kbss/termit/util/oidc/OidcGrantedAuthoritiesExtractor.java new file mode 100644 index 000000000..ad6cdd875 --- /dev/null +++ b/src/main/java/cz/cvut/kbss/termit/util/oidc/OidcGrantedAuthoritiesExtractor.java @@ -0,0 +1,65 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package cz.cvut.kbss.termit.util.oidc; + +import cz.cvut.kbss.termit.util.Configuration; +import org.springframework.core.convert.converter.Converter; +import org.springframework.security.core.authority.SimpleGrantedAuthority; +import org.springframework.security.oauth2.jwt.Jwt; + +import java.util.Collection; +import java.util.Collections; +import java.util.List; +import java.util.Map; + +/** + * Converts roles claim in an OIDC access token to granted authorities. + */ +public class OidcGrantedAuthoritiesExtractor implements Converter> { + + private final Configuration.Security config; + + public OidcGrantedAuthoritiesExtractor(Configuration.Security config) { + this.config = config; + } + + @Override + public Collection convert(Jwt source) { + final String rolesClaim = config.getRoleClaim(); + final String[] parts = rolesClaim.split("\\."); + assert parts.length > 0; + final List roles; + if (parts.length == 1) { + roles = source.getClaimAsStringList(rolesClaim); + } else { + Map map = source.getClaimAsMap(parts[0]); + for (int i = 1; i < parts.length - 1; i++) { + if (map.containsKey(parts[i]) && !(map.get(parts[i]) instanceof Map)) { + throw new IllegalArgumentException( + "Access token does not contain roles under the expected claim '" + rolesClaim + "'."); + } + map = (Map) map.getOrDefault(parts[i], Collections.emptyMap()); + } + if (map.containsKey(parts[parts.length - 1]) && !(map.get(parts[parts.length - 1]) instanceof List)) { + throw new IllegalArgumentException("Roles claim does not contain a list."); + } + roles = (List) map.getOrDefault(parts[parts.length - 1], Collections.emptyList()); + } + return roles.stream().map(SimpleGrantedAuthority::new).toList(); + } +} diff --git a/src/main/java/cz/cvut/kbss/termit/validation/MultilingualStringPrimaryNotBlankValidator.java b/src/main/java/cz/cvut/kbss/termit/validation/MultilingualStringPrimaryNotBlankValidator.java index 40b692678..4322bef9a 100644 --- a/src/main/java/cz/cvut/kbss/termit/validation/MultilingualStringPrimaryNotBlankValidator.java +++ b/src/main/java/cz/cvut/kbss/termit/validation/MultilingualStringPrimaryNotBlankValidator.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.validation; import cz.cvut.kbss.jopa.model.MultilingualString; diff --git a/src/main/java/cz/cvut/kbss/termit/validation/PrimaryNotBlank.java b/src/main/java/cz/cvut/kbss/termit/validation/PrimaryNotBlank.java index 62d4bb634..6a14e25ce 100644 --- a/src/main/java/cz/cvut/kbss/termit/validation/PrimaryNotBlank.java +++ b/src/main/java/cz/cvut/kbss/termit/validation/PrimaryNotBlank.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.validation; import jakarta.validation.Constraint; diff --git a/src/main/java/cz/cvut/kbss/termit/validation/ValidationResult.java b/src/main/java/cz/cvut/kbss/termit/validation/ValidationResult.java index f177cca8a..9dc5fc21e 100644 --- a/src/main/java/cz/cvut/kbss/termit/validation/ValidationResult.java +++ b/src/main/java/cz/cvut/kbss/termit/validation/ValidationResult.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/main/java/cz/cvut/kbss/termit/workspace/EditableVocabularies.java b/src/main/java/cz/cvut/kbss/termit/workspace/EditableVocabularies.java index 2acc2ac0a..67fd3ab5c 100644 --- a/src/main/java/cz/cvut/kbss/termit/workspace/EditableVocabularies.java +++ b/src/main/java/cz/cvut/kbss/termit/workspace/EditableVocabularies.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.workspace; import cz.cvut.kbss.termit.model.Vocabulary; diff --git a/src/main/java/cz/cvut/kbss/termit/workspace/EditableVocabulariesHolder.java b/src/main/java/cz/cvut/kbss/termit/workspace/EditableVocabulariesHolder.java index f8d388538..a8c801732 100644 --- a/src/main/java/cz/cvut/kbss/termit/workspace/EditableVocabulariesHolder.java +++ b/src/main/java/cz/cvut/kbss/termit/workspace/EditableVocabulariesHolder.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.workspace; import org.springframework.web.context.annotation.SessionScope; diff --git a/src/main/resources/languages/states.ttl b/src/main/resources/languages/states.ttl index 421692ea3..78e20f347 100644 --- a/src/main/resources/languages/states.ttl +++ b/src/main/resources/languages/states.ttl @@ -5,13 +5,13 @@ @prefix termit-pojem: . termit-pojem:navrhovaný-pojem a pdp:stav-pojmu , termit-pojem:úvodní-stav-pojmu ; - rdfs:label "Navrhovaný pojem"@cs , "Proposed term"@en ; - rdfs:comment "Pojem, který ještě nebyl schválen k publikaci."@cs , "A proposed term that has not been confirmed for publication, yet."@en . + skos:prefLabel "Navrhovaný pojem"@cs , "Proposed term"@en ; + skos:scopeNote "Pojem, který ještě nebyl schválen k publikaci."@cs , "A proposed term that has not been confirmed for publication, yet."@en . termit-pojem:publikovaný-pojem a pdp:stav-pojmu ; - rdfs:label "Publikovaný pojem"@cs , "Published term"@en ; - rdfs:comment "Pojem, který byl publikován a používá se."@cs , "A published term that is in use."@en . + skos:prefLabel "Publikovaný pojem"@cs , "Published term"@en ; + skos:scopeNote "Pojem, který byl publikován a používá se."@cs , "A published term that is in use."@en . termit-pojem:zrušený-pojem a pdp:stav-pojmu , termit-pojem:koncový-stav-pojmu ; - rdfs:label "Zrušený pojem"@cs , "Cancelled term"@en ; - rdfs:comment "Pojem, který byl zrušen a již by se neměl používat."@cs , "A term that has been cancelled and should not be used anymore."@en . + skos:prefLabel "Zrušený pojem"@cs , "Cancelled term"@en ; + skos:scopeNote "Pojem, který byl zrušen a již by se neměl používat."@cs , "A term that has been cancelled and should not be used anymore."@en . diff --git a/src/main/resources/languages/types.ttl b/src/main/resources/languages/types.ttl index 3edb18f67..c8b3f9184 100644 --- a/src/main/resources/languages/types.ttl +++ b/src/main/resources/languages/types.ttl @@ -1,10 +1,9 @@ @prefix rdf: . -@prefix rdfs: . @prefix skos: . @prefix ufo: . ufo:individual a skos:Concept ; - rdfs:label "Individuál"@cs, + skos:prefLabel "Individuál"@cs, "Individual"@en ; skos:narrower ufo:event, ufo:intrinsic-trope, @@ -12,7 +11,7 @@ ufo:individual a skos:Concept ; ufo:relator . ufo:type a skos:Concept ; - rdfs:label "Typ"@cs, + skos:prefLabel "Typ"@cs, "Type"@en ; skos:narrower ufo:event-type, ufo:intrinsic-trope-type, @@ -20,35 +19,35 @@ ufo:type a skos:Concept ; ufo:relator-type . ufo:event a skos:Concept ; - rdfs:label "Událost"@cs, + skos:prefLabel "Událost"@cs, "Event"@en ; - rdfs:comment "An event, perdurant in the ontological sense. Events do not change its properties over time."@en . + skos:scopeNote "An event, perdurant in the ontological sense. Events do not change its properties over time."@en . ufo:event-type a skos:Concept ; - rdfs:label "Typ události"@cs, + skos:prefLabel "Typ události"@cs, "Event Type"@en . ufo:intrinsic-trope a skos:Concept ; - rdfs:label "Vlastnost"@cs, + skos:prefLabel "Vlastnost"@cs, "Aspect"@en . ufo:intrinsic-trope-type a skos:Concept ; - rdfs:label "Typ vlastnosti"@cs, + skos:prefLabel "Typ vlastnosti"@cs, "Aspect Type"@en . ufo:object a skos:Concept ; - rdfs:label "Objekt"@cs, + skos:prefLabel "Objekt"@cs, "Object"@en ; - rdfs:comment "Object is any identifiable endurant entity existence of which is not directly dependent on an existence of another entity."@en . + skos:scopeNote "Object is any identifiable endurant entity existence of which is not directly dependent on an existence of another entity."@en . ufo:object-type a skos:Concept ; - rdfs:label "Typ objektu"@cs, + skos:prefLabel "Typ objektu"@cs, "Object Type"@en . ufo:relator a skos:Concept ; - rdfs:label "Vztah"@cs, + skos:prefLabel "Vztah"@cs, "Relator"@en . ufo:relator-type a skos:Concept ; - rdfs:label "Typ vztahu"@cs, + skos:prefLabel "Typ vztahu"@cs, "Relation"@en . diff --git a/src/test/java/cz/cvut/kbss/termit/dto/assignment/ResourceTermOccurrencesTest.java b/src/test/java/cz/cvut/kbss/termit/dto/assignment/ResourceTermOccurrencesTest.java index 81c69cf9e..5a5e8dd59 100644 --- a/src/test/java/cz/cvut/kbss/termit/dto/assignment/ResourceTermOccurrencesTest.java +++ b/src/test/java/cz/cvut/kbss/termit/dto/assignment/ResourceTermOccurrencesTest.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/test/java/cz/cvut/kbss/termit/dto/assignment/TermOccurrencesTest.java b/src/test/java/cz/cvut/kbss/termit/dto/assignment/TermOccurrencesTest.java index b3772c4ee..3b6ebde88 100644 --- a/src/test/java/cz/cvut/kbss/termit/dto/assignment/TermOccurrencesTest.java +++ b/src/test/java/cz/cvut/kbss/termit/dto/assignment/TermOccurrencesTest.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/test/java/cz/cvut/kbss/termit/dto/mapper/AssetToRdfsResourceMapperTest.java b/src/test/java/cz/cvut/kbss/termit/dto/mapper/AssetToRdfsResourceMapperTest.java index e188b47b7..8de3e8960 100644 --- a/src/test/java/cz/cvut/kbss/termit/dto/mapper/AssetToRdfsResourceMapperTest.java +++ b/src/test/java/cz/cvut/kbss/termit/dto/mapper/AssetToRdfsResourceMapperTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.dto.mapper; import cz.cvut.kbss.jopa.model.MultilingualString; diff --git a/src/test/java/cz/cvut/kbss/termit/dto/mapper/DtoMapperTest.java b/src/test/java/cz/cvut/kbss/termit/dto/mapper/DtoMapperTest.java index 463c75d42..a501c2455 100644 --- a/src/test/java/cz/cvut/kbss/termit/dto/mapper/DtoMapperTest.java +++ b/src/test/java/cz/cvut/kbss/termit/dto/mapper/DtoMapperTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.dto.mapper; import cz.cvut.kbss.jopa.model.MultilingualString; diff --git a/src/test/java/cz/cvut/kbss/termit/dto/readonly/ReadOnlyTermTest.java b/src/test/java/cz/cvut/kbss/termit/dto/readonly/ReadOnlyTermTest.java index 481acec6f..6709a8672 100644 --- a/src/test/java/cz/cvut/kbss/termit/dto/readonly/ReadOnlyTermTest.java +++ b/src/test/java/cz/cvut/kbss/termit/dto/readonly/ReadOnlyTermTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.dto.readonly; import cz.cvut.kbss.jopa.model.MultilingualString; diff --git a/src/test/java/cz/cvut/kbss/termit/dto/readonly/ReadOnlyVocabularyTest.java b/src/test/java/cz/cvut/kbss/termit/dto/readonly/ReadOnlyVocabularyTest.java index 6fcbdca16..b5645a5be 100644 --- a/src/test/java/cz/cvut/kbss/termit/dto/readonly/ReadOnlyVocabularyTest.java +++ b/src/test/java/cz/cvut/kbss/termit/dto/readonly/ReadOnlyVocabularyTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.dto.readonly; import cz.cvut.kbss.termit.environment.Generator; diff --git a/src/test/java/cz/cvut/kbss/termit/dto/search/SearchParamTest.java b/src/test/java/cz/cvut/kbss/termit/dto/search/SearchParamTest.java index be508ff64..b3e256c5c 100644 --- a/src/test/java/cz/cvut/kbss/termit/dto/search/SearchParamTest.java +++ b/src/test/java/cz/cvut/kbss/termit/dto/search/SearchParamTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.dto.search; import cz.cvut.kbss.jopa.vocabulary.RDF; diff --git a/src/test/java/cz/cvut/kbss/termit/environment/Environment.java b/src/test/java/cz/cvut/kbss/termit/environment/Environment.java index a8a9354eb..76a91632d 100644 --- a/src/test/java/cz/cvut/kbss/termit/environment/Environment.java +++ b/src/test/java/cz/cvut/kbss/termit/environment/Environment.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.environment; diff --git a/src/test/java/cz/cvut/kbss/termit/environment/Generator.java b/src/test/java/cz/cvut/kbss/termit/environment/Generator.java index 3ddfe6df8..c2cfbe31d 100644 --- a/src/test/java/cz/cvut/kbss/termit/environment/Generator.java +++ b/src/test/java/cz/cvut/kbss/termit/environment/Generator.java @@ -1,18 +1,20 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ - package cz.cvut.kbss.termit.environment; import cz.cvut.kbss.jopa.model.EntityManager; diff --git a/src/test/java/cz/cvut/kbss/termit/environment/PropertyMockingApplicationContextInitializer.java b/src/test/java/cz/cvut/kbss/termit/environment/PropertyMockingApplicationContextInitializer.java index fbe663e6b..d36edfb2d 100644 --- a/src/test/java/cz/cvut/kbss/termit/environment/PropertyMockingApplicationContextInitializer.java +++ b/src/test/java/cz/cvut/kbss/termit/environment/PropertyMockingApplicationContextInitializer.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/test/java/cz/cvut/kbss/termit/environment/TestPersistenceFactory.java b/src/test/java/cz/cvut/kbss/termit/environment/TestPersistenceFactory.java index 54d1f908c..affbb3859 100644 --- a/src/test/java/cz/cvut/kbss/termit/environment/TestPersistenceFactory.java +++ b/src/test/java/cz/cvut/kbss/termit/environment/TestPersistenceFactory.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.environment; diff --git a/src/test/java/cz/cvut/kbss/termit/environment/Transaction.java b/src/test/java/cz/cvut/kbss/termit/environment/Transaction.java index 35916d4bc..1c842871b 100644 --- a/src/test/java/cz/cvut/kbss/termit/environment/Transaction.java +++ b/src/test/java/cz/cvut/kbss/termit/environment/Transaction.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/test/java/cz/cvut/kbss/termit/environment/TransactionalTestRunner.java b/src/test/java/cz/cvut/kbss/termit/environment/TransactionalTestRunner.java index b73021ffe..1427929a6 100644 --- a/src/test/java/cz/cvut/kbss/termit/environment/TransactionalTestRunner.java +++ b/src/test/java/cz/cvut/kbss/termit/environment/TransactionalTestRunner.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/test/java/cz/cvut/kbss/termit/environment/config/TestConfig.java b/src/test/java/cz/cvut/kbss/termit/environment/config/TestConfig.java index ac3213a01..62fec329c 100644 --- a/src/test/java/cz/cvut/kbss/termit/environment/config/TestConfig.java +++ b/src/test/java/cz/cvut/kbss/termit/environment/config/TestConfig.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.environment.config; diff --git a/src/test/java/cz/cvut/kbss/termit/environment/config/TestPersistenceAspectsConfig.java b/src/test/java/cz/cvut/kbss/termit/environment/config/TestPersistenceAspectsConfig.java index 9c0d3de64..af49866f0 100644 --- a/src/test/java/cz/cvut/kbss/termit/environment/config/TestPersistenceAspectsConfig.java +++ b/src/test/java/cz/cvut/kbss/termit/environment/config/TestPersistenceAspectsConfig.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.environment.config; import cz.cvut.kbss.termit.aspect.ChangeTrackingAspect; diff --git a/src/test/java/cz/cvut/kbss/termit/environment/config/TestPersistenceConfig.java b/src/test/java/cz/cvut/kbss/termit/environment/config/TestPersistenceConfig.java index 564a6e5b9..1fc4e8c2b 100644 --- a/src/test/java/cz/cvut/kbss/termit/environment/config/TestPersistenceConfig.java +++ b/src/test/java/cz/cvut/kbss/termit/environment/config/TestPersistenceConfig.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.environment.config; diff --git a/src/test/java/cz/cvut/kbss/termit/environment/config/TestRestSecurityConfig.java b/src/test/java/cz/cvut/kbss/termit/environment/config/TestRestSecurityConfig.java index 329294ead..c5e6fc891 100644 --- a/src/test/java/cz/cvut/kbss/termit/environment/config/TestRestSecurityConfig.java +++ b/src/test/java/cz/cvut/kbss/termit/environment/config/TestRestSecurityConfig.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.environment.config; @@ -21,7 +24,9 @@ import cz.cvut.kbss.termit.security.JwtUtils; import cz.cvut.kbss.termit.service.security.SecurityUtils; import cz.cvut.kbss.termit.service.security.TermItUserDetailsService; +import cz.cvut.kbss.termit.util.Configuration; import org.springframework.beans.factory.annotation.Qualifier; +import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.boot.test.context.TestConfiguration; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Import; @@ -35,6 +40,7 @@ */ @TestConfiguration @Import(SecurityConfig.class) +@EnableConfigurationProperties(Configuration.class) public class TestRestSecurityConfig { @Bean diff --git a/src/test/java/cz/cvut/kbss/termit/environment/config/TestSecurityConfig.java b/src/test/java/cz/cvut/kbss/termit/environment/config/TestSecurityConfig.java index ee4890ed4..58f5ebb72 100644 --- a/src/test/java/cz/cvut/kbss/termit/environment/config/TestSecurityConfig.java +++ b/src/test/java/cz/cvut/kbss/termit/environment/config/TestSecurityConfig.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.environment.config; diff --git a/src/test/java/cz/cvut/kbss/termit/environment/config/TestServiceConfig.java b/src/test/java/cz/cvut/kbss/termit/environment/config/TestServiceConfig.java index 36356ddab..bb0cc6221 100644 --- a/src/test/java/cz/cvut/kbss/termit/environment/config/TestServiceConfig.java +++ b/src/test/java/cz/cvut/kbss/termit/environment/config/TestServiceConfig.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.environment.config; diff --git a/src/test/java/cz/cvut/kbss/termit/environment/util/ContainsSameEntities.java b/src/test/java/cz/cvut/kbss/termit/environment/util/ContainsSameEntities.java index 5a283e525..10fca2a75 100644 --- a/src/test/java/cz/cvut/kbss/termit/environment/util/ContainsSameEntities.java +++ b/src/test/java/cz/cvut/kbss/termit/environment/util/ContainsSameEntities.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.environment.util; import cz.cvut.kbss.termit.model.util.HasIdentifier; diff --git a/src/test/java/cz/cvut/kbss/termit/exception/ValidationExceptionTest.java b/src/test/java/cz/cvut/kbss/termit/exception/ValidationExceptionTest.java index 2fa76d36c..904bf20a6 100644 --- a/src/test/java/cz/cvut/kbss/termit/exception/ValidationExceptionTest.java +++ b/src/test/java/cz/cvut/kbss/termit/exception/ValidationExceptionTest.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/test/java/cz/cvut/kbss/termit/model/DocumentTest.java b/src/test/java/cz/cvut/kbss/termit/model/DocumentTest.java index 68aba3081..1f7fbbda1 100644 --- a/src/test/java/cz/cvut/kbss/termit/model/DocumentTest.java +++ b/src/test/java/cz/cvut/kbss/termit/model/DocumentTest.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/test/java/cz/cvut/kbss/termit/model/GlossaryTest.java b/src/test/java/cz/cvut/kbss/termit/model/GlossaryTest.java index 2e2d7e9ef..88f1fcc03 100644 --- a/src/test/java/cz/cvut/kbss/termit/model/GlossaryTest.java +++ b/src/test/java/cz/cvut/kbss/termit/model/GlossaryTest.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/test/java/cz/cvut/kbss/termit/model/TermTest.java b/src/test/java/cz/cvut/kbss/termit/model/TermTest.java index 3aa6c6add..4530616bb 100644 --- a/src/test/java/cz/cvut/kbss/termit/model/TermTest.java +++ b/src/test/java/cz/cvut/kbss/termit/model/TermTest.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.model; diff --git a/src/test/java/cz/cvut/kbss/termit/model/UserAccountTest.java b/src/test/java/cz/cvut/kbss/termit/model/UserAccountTest.java index 191e5a51e..6c1841038 100644 --- a/src/test/java/cz/cvut/kbss/termit/model/UserAccountTest.java +++ b/src/test/java/cz/cvut/kbss/termit/model/UserAccountTest.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/test/java/cz/cvut/kbss/termit/model/UserTest.java b/src/test/java/cz/cvut/kbss/termit/model/UserTest.java index a11f340fe..d6f07511d 100644 --- a/src/test/java/cz/cvut/kbss/termit/model/UserTest.java +++ b/src/test/java/cz/cvut/kbss/termit/model/UserTest.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/test/java/cz/cvut/kbss/termit/model/VocabularyTest.java b/src/test/java/cz/cvut/kbss/termit/model/VocabularyTest.java index c79514cfa..e3636d0cc 100644 --- a/src/test/java/cz/cvut/kbss/termit/model/VocabularyTest.java +++ b/src/test/java/cz/cvut/kbss/termit/model/VocabularyTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.model; import cz.cvut.kbss.termit.environment.Generator; diff --git a/src/test/java/cz/cvut/kbss/termit/model/acl/AccessLevelTest.java b/src/test/java/cz/cvut/kbss/termit/model/acl/AccessLevelTest.java index 077aef989..24a6194a7 100644 --- a/src/test/java/cz/cvut/kbss/termit/model/acl/AccessLevelTest.java +++ b/src/test/java/cz/cvut/kbss/termit/model/acl/AccessLevelTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.model.acl; import org.junit.jupiter.params.ParameterizedTest; diff --git a/src/test/java/cz/cvut/kbss/termit/model/acl/RoleAccessControlRecordTest.java b/src/test/java/cz/cvut/kbss/termit/model/acl/RoleAccessControlRecordTest.java index 9970ef6e1..e848791cc 100644 --- a/src/test/java/cz/cvut/kbss/termit/model/acl/RoleAccessControlRecordTest.java +++ b/src/test/java/cz/cvut/kbss/termit/model/acl/RoleAccessControlRecordTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.model.acl; import cz.cvut.kbss.termit.environment.Generator; diff --git a/src/test/java/cz/cvut/kbss/termit/model/acl/UserAccessControlRecordTest.java b/src/test/java/cz/cvut/kbss/termit/model/acl/UserAccessControlRecordTest.java index e9c4501db..0e472bb48 100644 --- a/src/test/java/cz/cvut/kbss/termit/model/acl/UserAccessControlRecordTest.java +++ b/src/test/java/cz/cvut/kbss/termit/model/acl/UserAccessControlRecordTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.model.acl; import cz.cvut.kbss.termit.environment.Generator; diff --git a/src/test/java/cz/cvut/kbss/termit/model/acl/UserGroupAccessControlRecordTest.java b/src/test/java/cz/cvut/kbss/termit/model/acl/UserGroupAccessControlRecordTest.java index 49ef87e2a..964570d99 100644 --- a/src/test/java/cz/cvut/kbss/termit/model/acl/UserGroupAccessControlRecordTest.java +++ b/src/test/java/cz/cvut/kbss/termit/model/acl/UserGroupAccessControlRecordTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.model.acl; import cz.cvut.kbss.termit.environment.Generator; diff --git a/src/test/java/cz/cvut/kbss/termit/model/assignment/TermOccurrenceTest.java b/src/test/java/cz/cvut/kbss/termit/model/assignment/TermOccurrenceTest.java index e86717c26..306890e8c 100644 --- a/src/test/java/cz/cvut/kbss/termit/model/assignment/TermOccurrenceTest.java +++ b/src/test/java/cz/cvut/kbss/termit/model/assignment/TermOccurrenceTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.model.assignment; import cz.cvut.kbss.termit.environment.Generator; diff --git a/src/test/java/cz/cvut/kbss/termit/model/resource/FileTest.java b/src/test/java/cz/cvut/kbss/termit/model/resource/FileTest.java index f95564172..571cec5d3 100644 --- a/src/test/java/cz/cvut/kbss/termit/model/resource/FileTest.java +++ b/src/test/java/cz/cvut/kbss/termit/model/resource/FileTest.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/test/java/cz/cvut/kbss/termit/model/selector/CssSelectorTest.java b/src/test/java/cz/cvut/kbss/termit/model/selector/CssSelectorTest.java index e35144f83..239a9905a 100644 --- a/src/test/java/cz/cvut/kbss/termit/model/selector/CssSelectorTest.java +++ b/src/test/java/cz/cvut/kbss/termit/model/selector/CssSelectorTest.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/test/java/cz/cvut/kbss/termit/model/selector/FragmentSelectorTest.java b/src/test/java/cz/cvut/kbss/termit/model/selector/FragmentSelectorTest.java index 46a1d7528..f0025854d 100644 --- a/src/test/java/cz/cvut/kbss/termit/model/selector/FragmentSelectorTest.java +++ b/src/test/java/cz/cvut/kbss/termit/model/selector/FragmentSelectorTest.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/test/java/cz/cvut/kbss/termit/model/selector/TextPositionSelectorTest.java b/src/test/java/cz/cvut/kbss/termit/model/selector/TextPositionSelectorTest.java index 7642ab7c9..59d2e8fc0 100644 --- a/src/test/java/cz/cvut/kbss/termit/model/selector/TextPositionSelectorTest.java +++ b/src/test/java/cz/cvut/kbss/termit/model/selector/TextPositionSelectorTest.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/test/java/cz/cvut/kbss/termit/model/selector/TextQuoteSelectorTest.java b/src/test/java/cz/cvut/kbss/termit/model/selector/TextQuoteSelectorTest.java index bc80f31af..0927fb296 100644 --- a/src/test/java/cz/cvut/kbss/termit/model/selector/TextQuoteSelectorTest.java +++ b/src/test/java/cz/cvut/kbss/termit/model/selector/TextQuoteSelectorTest.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/test/java/cz/cvut/kbss/termit/model/selector/XPathSelectorTest.java b/src/test/java/cz/cvut/kbss/termit/model/selector/XPathSelectorTest.java index 82af9cae7..f549ff511 100644 --- a/src/test/java/cz/cvut/kbss/termit/model/selector/XPathSelectorTest.java +++ b/src/test/java/cz/cvut/kbss/termit/model/selector/XPathSelectorTest.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/test/java/cz/cvut/kbss/termit/model/util/EntityToOwlClassMapperTest.java b/src/test/java/cz/cvut/kbss/termit/model/util/EntityToOwlClassMapperTest.java index c072f1cec..8e1ff7984 100644 --- a/src/test/java/cz/cvut/kbss/termit/model/util/EntityToOwlClassMapperTest.java +++ b/src/test/java/cz/cvut/kbss/termit/model/util/EntityToOwlClassMapperTest.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/test/java/cz/cvut/kbss/termit/model/util/validation/WithoutQueryParametersValidatorTest.java b/src/test/java/cz/cvut/kbss/termit/model/util/validation/WithoutQueryParametersValidatorTest.java index f6da8813c..5f5e1f676 100644 --- a/src/test/java/cz/cvut/kbss/termit/model/util/validation/WithoutQueryParametersValidatorTest.java +++ b/src/test/java/cz/cvut/kbss/termit/model/util/validation/WithoutQueryParametersValidatorTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.model.util.validation; import cz.cvut.kbss.termit.environment.Generator; diff --git a/src/test/java/cz/cvut/kbss/termit/persistence/TextAnalysisRecordDaoTest.java b/src/test/java/cz/cvut/kbss/termit/persistence/TextAnalysisRecordDaoTest.java index 2d4cc53e5..37e2af4a2 100644 --- a/src/test/java/cz/cvut/kbss/termit/persistence/TextAnalysisRecordDaoTest.java +++ b/src/test/java/cz/cvut/kbss/termit/persistence/TextAnalysisRecordDaoTest.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/test/java/cz/cvut/kbss/termit/persistence/context/CachingVocabularyContextMapperTest.java b/src/test/java/cz/cvut/kbss/termit/persistence/context/CachingVocabularyContextMapperTest.java index cead4a75e..96773491b 100644 --- a/src/test/java/cz/cvut/kbss/termit/persistence/context/CachingVocabularyContextMapperTest.java +++ b/src/test/java/cz/cvut/kbss/termit/persistence/context/CachingVocabularyContextMapperTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.context; import cz.cvut.kbss.jopa.model.EntityManager; diff --git a/src/test/java/cz/cvut/kbss/termit/persistence/context/DefaultVocabularyContextMapperTest.java b/src/test/java/cz/cvut/kbss/termit/persistence/context/DefaultVocabularyContextMapperTest.java index bf068db12..5529bd961 100644 --- a/src/test/java/cz/cvut/kbss/termit/persistence/context/DefaultVocabularyContextMapperTest.java +++ b/src/test/java/cz/cvut/kbss/termit/persistence/context/DefaultVocabularyContextMapperTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.context; import cz.cvut.kbss.jopa.model.EntityManager; diff --git a/src/test/java/cz/cvut/kbss/termit/persistence/context/DescriptorFactoryTest.java b/src/test/java/cz/cvut/kbss/termit/persistence/context/DescriptorFactoryTest.java index fd398d6a1..bb98cb09e 100644 --- a/src/test/java/cz/cvut/kbss/termit/persistence/context/DescriptorFactoryTest.java +++ b/src/test/java/cz/cvut/kbss/termit/persistence/context/DescriptorFactoryTest.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.persistence.context; diff --git a/src/test/java/cz/cvut/kbss/termit/persistence/context/WorkspaceVocabularyContextMapperTest.java b/src/test/java/cz/cvut/kbss/termit/persistence/context/WorkspaceVocabularyContextMapperTest.java index ad81735b7..a32283f9b 100644 --- a/src/test/java/cz/cvut/kbss/termit/persistence/context/WorkspaceVocabularyContextMapperTest.java +++ b/src/test/java/cz/cvut/kbss/termit/persistence/context/WorkspaceVocabularyContextMapperTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.context; import cz.cvut.kbss.termit.environment.Generator; diff --git a/src/test/java/cz/cvut/kbss/termit/persistence/dao/AssetDaoTest.java b/src/test/java/cz/cvut/kbss/termit/persistence/dao/AssetDaoTest.java index 5aa31a9a0..c71d1783b 100644 --- a/src/test/java/cz/cvut/kbss/termit/persistence/dao/AssetDaoTest.java +++ b/src/test/java/cz/cvut/kbss/termit/persistence/dao/AssetDaoTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.dao; import cz.cvut.kbss.jopa.model.EntityManager; diff --git a/src/test/java/cz/cvut/kbss/termit/persistence/dao/BaseDaoTest.java b/src/test/java/cz/cvut/kbss/termit/persistence/dao/BaseDaoTest.java index 5f3f0b8db..ebc0bafe9 100644 --- a/src/test/java/cz/cvut/kbss/termit/persistence/dao/BaseDaoTest.java +++ b/src/test/java/cz/cvut/kbss/termit/persistence/dao/BaseDaoTest.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.persistence.dao; diff --git a/src/test/java/cz/cvut/kbss/termit/persistence/dao/BaseDaoTestRunner.java b/src/test/java/cz/cvut/kbss/termit/persistence/dao/BaseDaoTestRunner.java index aa4ae09b7..3b5e05d0c 100644 --- a/src/test/java/cz/cvut/kbss/termit/persistence/dao/BaseDaoTestRunner.java +++ b/src/test/java/cz/cvut/kbss/termit/persistence/dao/BaseDaoTestRunner.java @@ -1,13 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.persistence.dao; diff --git a/src/test/java/cz/cvut/kbss/termit/persistence/dao/BaseTermDaoTestRunner.java b/src/test/java/cz/cvut/kbss/termit/persistence/dao/BaseTermDaoTestRunner.java index 5f44b7e1c..e2e3fefa3 100644 --- a/src/test/java/cz/cvut/kbss/termit/persistence/dao/BaseTermDaoTestRunner.java +++ b/src/test/java/cz/cvut/kbss/termit/persistence/dao/BaseTermDaoTestRunner.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.dao; import cz.cvut.kbss.jopa.model.EntityManager; diff --git a/src/test/java/cz/cvut/kbss/termit/persistence/dao/DataDaoTest.java b/src/test/java/cz/cvut/kbss/termit/persistence/dao/DataDaoTest.java index 14d8c1284..3fe2db5c1 100644 --- a/src/test/java/cz/cvut/kbss/termit/persistence/dao/DataDaoTest.java +++ b/src/test/java/cz/cvut/kbss/termit/persistence/dao/DataDaoTest.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.persistence.dao; diff --git a/src/test/java/cz/cvut/kbss/termit/persistence/dao/ResourceDaoTest.java b/src/test/java/cz/cvut/kbss/termit/persistence/dao/ResourceDaoTest.java index 192f3a51b..e422597c4 100644 --- a/src/test/java/cz/cvut/kbss/termit/persistence/dao/ResourceDaoTest.java +++ b/src/test/java/cz/cvut/kbss/termit/persistence/dao/ResourceDaoTest.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.persistence.dao; diff --git a/src/test/java/cz/cvut/kbss/termit/persistence/dao/SearchDaoTest.java b/src/test/java/cz/cvut/kbss/termit/persistence/dao/SearchDaoTest.java index 6b4adbaa7..922a1a5a5 100644 --- a/src/test/java/cz/cvut/kbss/termit/persistence/dao/SearchDaoTest.java +++ b/src/test/java/cz/cvut/kbss/termit/persistence/dao/SearchDaoTest.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.persistence.dao; diff --git a/src/test/java/cz/cvut/kbss/termit/persistence/dao/SnapshotDaoTest.java b/src/test/java/cz/cvut/kbss/termit/persistence/dao/SnapshotDaoTest.java index 69115b5c0..45e1f37dd 100644 --- a/src/test/java/cz/cvut/kbss/termit/persistence/dao/SnapshotDaoTest.java +++ b/src/test/java/cz/cvut/kbss/termit/persistence/dao/SnapshotDaoTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.dao; import cz.cvut.kbss.jopa.model.EntityManager; diff --git a/src/test/java/cz/cvut/kbss/termit/persistence/dao/TermDaoExactMatchTermsTest.java b/src/test/java/cz/cvut/kbss/termit/persistence/dao/TermDaoExactMatchTermsTest.java index cab4b8f27..c8a6372bb 100644 --- a/src/test/java/cz/cvut/kbss/termit/persistence/dao/TermDaoExactMatchTermsTest.java +++ b/src/test/java/cz/cvut/kbss/termit/persistence/dao/TermDaoExactMatchTermsTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.dao; import static org.hamcrest.MatcherAssert.assertThat; diff --git a/src/test/java/cz/cvut/kbss/termit/persistence/dao/TermDaoRelatedTermsTest.java b/src/test/java/cz/cvut/kbss/termit/persistence/dao/TermDaoRelatedTermsTest.java index 8520013cb..9b4ac12c2 100644 --- a/src/test/java/cz/cvut/kbss/termit/persistence/dao/TermDaoRelatedTermsTest.java +++ b/src/test/java/cz/cvut/kbss/termit/persistence/dao/TermDaoRelatedTermsTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.dao; import cz.cvut.kbss.jopa.vocabulary.SKOS; diff --git a/src/test/java/cz/cvut/kbss/termit/persistence/dao/TermDaoSnapshotsTest.java b/src/test/java/cz/cvut/kbss/termit/persistence/dao/TermDaoSnapshotsTest.java index a1bca495a..4e755e688 100644 --- a/src/test/java/cz/cvut/kbss/termit/persistence/dao/TermDaoSnapshotsTest.java +++ b/src/test/java/cz/cvut/kbss/termit/persistence/dao/TermDaoSnapshotsTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.dao; import cz.cvut.kbss.jopa.model.MultilingualString; diff --git a/src/test/java/cz/cvut/kbss/termit/persistence/dao/TermDaoTest.java b/src/test/java/cz/cvut/kbss/termit/persistence/dao/TermDaoTest.java index 80c29fcba..a9aa9b83f 100644 --- a/src/test/java/cz/cvut/kbss/termit/persistence/dao/TermDaoTest.java +++ b/src/test/java/cz/cvut/kbss/termit/persistence/dao/TermDaoTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.dao; import cz.cvut.kbss.jopa.model.MultilingualString; diff --git a/src/test/java/cz/cvut/kbss/termit/persistence/dao/TermOccurrenceDaoTest.java b/src/test/java/cz/cvut/kbss/termit/persistence/dao/TermOccurrenceDaoTest.java index efa4831de..c3bbef884 100644 --- a/src/test/java/cz/cvut/kbss/termit/persistence/dao/TermOccurrenceDaoTest.java +++ b/src/test/java/cz/cvut/kbss/termit/persistence/dao/TermOccurrenceDaoTest.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.persistence.dao; diff --git a/src/test/java/cz/cvut/kbss/termit/persistence/dao/UserAccountDaoTest.java b/src/test/java/cz/cvut/kbss/termit/persistence/dao/UserAccountDaoTest.java index e86a0020f..600969570 100644 --- a/src/test/java/cz/cvut/kbss/termit/persistence/dao/UserAccountDaoTest.java +++ b/src/test/java/cz/cvut/kbss/termit/persistence/dao/UserAccountDaoTest.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/test/java/cz/cvut/kbss/termit/persistence/dao/UserGroupDaoTest.java b/src/test/java/cz/cvut/kbss/termit/persistence/dao/UserGroupDaoTest.java index 3d05a1e64..5886ac02e 100644 --- a/src/test/java/cz/cvut/kbss/termit/persistence/dao/UserGroupDaoTest.java +++ b/src/test/java/cz/cvut/kbss/termit/persistence/dao/UserGroupDaoTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.dao; import cz.cvut.kbss.jopa.model.EntityManager; diff --git a/src/test/java/cz/cvut/kbss/termit/persistence/dao/VocabularyDaoTest.java b/src/test/java/cz/cvut/kbss/termit/persistence/dao/VocabularyDaoTest.java index 8cbcaa787..c3b8845f4 100644 --- a/src/test/java/cz/cvut/kbss/termit/persistence/dao/VocabularyDaoTest.java +++ b/src/test/java/cz/cvut/kbss/termit/persistence/dao/VocabularyDaoTest.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.persistence.dao; diff --git a/src/test/java/cz/cvut/kbss/termit/persistence/dao/acl/AccessControlListDaoTest.java b/src/test/java/cz/cvut/kbss/termit/persistence/dao/acl/AccessControlListDaoTest.java index ea0a3daf4..66c87522c 100644 --- a/src/test/java/cz/cvut/kbss/termit/persistence/dao/acl/AccessControlListDaoTest.java +++ b/src/test/java/cz/cvut/kbss/termit/persistence/dao/acl/AccessControlListDaoTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.dao.acl; import cz.cvut.kbss.jopa.model.EntityManager; diff --git a/src/test/java/cz/cvut/kbss/termit/persistence/dao/changetracking/ChangeRecordDaoTest.java b/src/test/java/cz/cvut/kbss/termit/persistence/dao/changetracking/ChangeRecordDaoTest.java index 9a62d3a6b..96d6d098d 100644 --- a/src/test/java/cz/cvut/kbss/termit/persistence/dao/changetracking/ChangeRecordDaoTest.java +++ b/src/test/java/cz/cvut/kbss/termit/persistence/dao/changetracking/ChangeRecordDaoTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.dao.changetracking; import cz.cvut.kbss.jopa.model.EntityManager; diff --git a/src/test/java/cz/cvut/kbss/termit/persistence/dao/changetracking/ChangeTrackingContextResolverTest.java b/src/test/java/cz/cvut/kbss/termit/persistence/dao/changetracking/ChangeTrackingContextResolverTest.java index 3f299d0ec..e8c012b65 100644 --- a/src/test/java/cz/cvut/kbss/termit/persistence/dao/changetracking/ChangeTrackingContextResolverTest.java +++ b/src/test/java/cz/cvut/kbss/termit/persistence/dao/changetracking/ChangeTrackingContextResolverTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.dao.changetracking; import cz.cvut.kbss.jopa.model.EntityManager; diff --git a/src/test/java/cz/cvut/kbss/termit/persistence/dao/changetracking/ChangeTrackingHelperDaoTest.java b/src/test/java/cz/cvut/kbss/termit/persistence/dao/changetracking/ChangeTrackingHelperDaoTest.java index 64484e6bb..c5d98a471 100644 --- a/src/test/java/cz/cvut/kbss/termit/persistence/dao/changetracking/ChangeTrackingHelperDaoTest.java +++ b/src/test/java/cz/cvut/kbss/termit/persistence/dao/changetracking/ChangeTrackingHelperDaoTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.dao.changetracking; import cz.cvut.kbss.jopa.model.EntityManager; diff --git a/src/test/java/cz/cvut/kbss/termit/persistence/dao/comment/CommentDaoTest.java b/src/test/java/cz/cvut/kbss/termit/persistence/dao/comment/CommentDaoTest.java index 5b3d5ec02..77b5ab57f 100644 --- a/src/test/java/cz/cvut/kbss/termit/persistence/dao/comment/CommentDaoTest.java +++ b/src/test/java/cz/cvut/kbss/termit/persistence/dao/comment/CommentDaoTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.dao.comment; import cz.cvut.kbss.jopa.model.EntityManager; diff --git a/src/test/java/cz/cvut/kbss/termit/persistence/dao/comment/CommentReactionDaoTest.java b/src/test/java/cz/cvut/kbss/termit/persistence/dao/comment/CommentReactionDaoTest.java index d9c177065..d1d2dfcab 100644 --- a/src/test/java/cz/cvut/kbss/termit/persistence/dao/comment/CommentReactionDaoTest.java +++ b/src/test/java/cz/cvut/kbss/termit/persistence/dao/comment/CommentReactionDaoTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.dao.comment; import cz.cvut.kbss.jopa.model.EntityManager; diff --git a/src/test/java/cz/cvut/kbss/termit/persistence/dao/lucene/LuceneSearchDaoTest.java b/src/test/java/cz/cvut/kbss/termit/persistence/dao/lucene/LuceneSearchDaoTest.java index e92b4ef4e..c4b0c3d38 100644 --- a/src/test/java/cz/cvut/kbss/termit/persistence/dao/lucene/LuceneSearchDaoTest.java +++ b/src/test/java/cz/cvut/kbss/termit/persistence/dao/lucene/LuceneSearchDaoTest.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/test/java/cz/cvut/kbss/termit/persistence/dao/skos/SKOSImporterTest.java b/src/test/java/cz/cvut/kbss/termit/persistence/dao/skos/SKOSImporterTest.java index d847bd29f..500696727 100644 --- a/src/test/java/cz/cvut/kbss/termit/persistence/dao/skos/SKOSImporterTest.java +++ b/src/test/java/cz/cvut/kbss/termit/persistence/dao/skos/SKOSImporterTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.dao.skos; import cz.cvut.kbss.jopa.model.EntityManager; diff --git a/src/test/java/cz/cvut/kbss/termit/persistence/dao/util/SimpleCacheTest.java b/src/test/java/cz/cvut/kbss/termit/persistence/dao/util/SimpleCacheTest.java index 67987b290..11b93ae67 100644 --- a/src/test/java/cz/cvut/kbss/termit/persistence/dao/util/SimpleCacheTest.java +++ b/src/test/java/cz/cvut/kbss/termit/persistence/dao/util/SimpleCacheTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.dao.util; import cz.cvut.kbss.termit.dto.TermInfo; diff --git a/src/test/java/cz/cvut/kbss/termit/persistence/dao/util/SparqlResultToTermInfoMapperTest.java b/src/test/java/cz/cvut/kbss/termit/persistence/dao/util/SparqlResultToTermInfoMapperTest.java index 53c544097..c523498fb 100644 --- a/src/test/java/cz/cvut/kbss/termit/persistence/dao/util/SparqlResultToTermInfoMapperTest.java +++ b/src/test/java/cz/cvut/kbss/termit/persistence/dao/util/SparqlResultToTermInfoMapperTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.dao.util; import cz.cvut.kbss.ontodriver.model.LangString; diff --git a/src/test/java/cz/cvut/kbss/termit/persistence/snapshot/CascadingSnapshotCreatorTest.java b/src/test/java/cz/cvut/kbss/termit/persistence/snapshot/CascadingSnapshotCreatorTest.java index 82f329e47..72fd2d356 100644 --- a/src/test/java/cz/cvut/kbss/termit/persistence/snapshot/CascadingSnapshotCreatorTest.java +++ b/src/test/java/cz/cvut/kbss/termit/persistence/snapshot/CascadingSnapshotCreatorTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.snapshot; import cz.cvut.kbss.jopa.model.EntityManager; diff --git a/src/test/java/cz/cvut/kbss/termit/persistence/snapshot/CascadingVocabularySnapshotRemoverTest.java b/src/test/java/cz/cvut/kbss/termit/persistence/snapshot/CascadingVocabularySnapshotRemoverTest.java index a9cda778d..6b2417cf7 100644 --- a/src/test/java/cz/cvut/kbss/termit/persistence/snapshot/CascadingVocabularySnapshotRemoverTest.java +++ b/src/test/java/cz/cvut/kbss/termit/persistence/snapshot/CascadingVocabularySnapshotRemoverTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.snapshot; import cz.cvut.kbss.jopa.model.EntityManager; diff --git a/src/test/java/cz/cvut/kbss/termit/persistence/snapshot/SnapshotCreatorTest.java b/src/test/java/cz/cvut/kbss/termit/persistence/snapshot/SnapshotCreatorTest.java index 34a0f6374..eeacc0b70 100644 --- a/src/test/java/cz/cvut/kbss/termit/persistence/snapshot/SnapshotCreatorTest.java +++ b/src/test/java/cz/cvut/kbss/termit/persistence/snapshot/SnapshotCreatorTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.snapshot; import cz.cvut.kbss.termit.dto.Snapshot; diff --git a/src/test/java/cz/cvut/kbss/termit/persistence/validation/ResultCachingValidatorTest.java b/src/test/java/cz/cvut/kbss/termit/persistence/validation/ResultCachingValidatorTest.java index d6642d12d..e2f1e967f 100644 --- a/src/test/java/cz/cvut/kbss/termit/persistence/validation/ResultCachingValidatorTest.java +++ b/src/test/java/cz/cvut/kbss/termit/persistence/validation/ResultCachingValidatorTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.validation; import cz.cvut.kbss.termit.environment.Generator; diff --git a/src/test/java/cz/cvut/kbss/termit/persistence/validation/ValidatorTest.java b/src/test/java/cz/cvut/kbss/termit/persistence/validation/ValidatorTest.java index 016630d7a..092e68556 100644 --- a/src/test/java/cz/cvut/kbss/termit/persistence/validation/ValidatorTest.java +++ b/src/test/java/cz/cvut/kbss/termit/persistence/validation/ValidatorTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.persistence.validation; import cz.cvut.kbss.jopa.model.EntityManager; diff --git a/src/test/java/cz/cvut/kbss/termit/rest/AdminBasedRegistrationControllerTest.java b/src/test/java/cz/cvut/kbss/termit/rest/AdminBasedRegistrationControllerTest.java index a5d167276..18ab1b6c3 100644 --- a/src/test/java/cz/cvut/kbss/termit/rest/AdminBasedRegistrationControllerTest.java +++ b/src/test/java/cz/cvut/kbss/termit/rest/AdminBasedRegistrationControllerTest.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.rest; diff --git a/src/test/java/cz/cvut/kbss/termit/rest/AdminControllerTest.java b/src/test/java/cz/cvut/kbss/termit/rest/AdminControllerTest.java index 2d65ebdf3..46e697d6b 100644 --- a/src/test/java/cz/cvut/kbss/termit/rest/AdminControllerTest.java +++ b/src/test/java/cz/cvut/kbss/termit/rest/AdminControllerTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.rest; import cz.cvut.kbss.termit.service.jmx.AppAdminBean; diff --git a/src/test/java/cz/cvut/kbss/termit/rest/AssetControllerTest.java b/src/test/java/cz/cvut/kbss/termit/rest/AssetControllerTest.java index b06a4b53d..aec453b29 100644 --- a/src/test/java/cz/cvut/kbss/termit/rest/AssetControllerTest.java +++ b/src/test/java/cz/cvut/kbss/termit/rest/AssetControllerTest.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.rest; diff --git a/src/test/java/cz/cvut/kbss/termit/rest/BaseControllerTestRunner.java b/src/test/java/cz/cvut/kbss/termit/rest/BaseControllerTestRunner.java index bf931eafc..b90eb3bec 100644 --- a/src/test/java/cz/cvut/kbss/termit/rest/BaseControllerTestRunner.java +++ b/src/test/java/cz/cvut/kbss/termit/rest/BaseControllerTestRunner.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.rest; diff --git a/src/test/java/cz/cvut/kbss/termit/rest/CommentControllerTest.java b/src/test/java/cz/cvut/kbss/termit/rest/CommentControllerTest.java index ea77dee45..6e40f3a42 100644 --- a/src/test/java/cz/cvut/kbss/termit/rest/CommentControllerTest.java +++ b/src/test/java/cz/cvut/kbss/termit/rest/CommentControllerTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.rest; import cz.cvut.kbss.termit.environment.Generator; diff --git a/src/test/java/cz/cvut/kbss/termit/rest/ConfigurationControllerSecurityTest.java b/src/test/java/cz/cvut/kbss/termit/rest/ConfigurationControllerSecurityTest.java index 8f7e6b8d3..c9ca87796 100644 --- a/src/test/java/cz/cvut/kbss/termit/rest/ConfigurationControllerSecurityTest.java +++ b/src/test/java/cz/cvut/kbss/termit/rest/ConfigurationControllerSecurityTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.rest; import cz.cvut.kbss.jopa.model.MultilingualString; diff --git a/src/test/java/cz/cvut/kbss/termit/rest/ConfigurationControllerTest.java b/src/test/java/cz/cvut/kbss/termit/rest/ConfigurationControllerTest.java index 95ab284b2..d171ef792 100644 --- a/src/test/java/cz/cvut/kbss/termit/rest/ConfigurationControllerTest.java +++ b/src/test/java/cz/cvut/kbss/termit/rest/ConfigurationControllerTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.rest; import cz.cvut.kbss.termit.dto.ConfigurationDto; diff --git a/src/test/java/cz/cvut/kbss/termit/rest/DataControllerTest.java b/src/test/java/cz/cvut/kbss/termit/rest/DataControllerTest.java index a3619e9e0..33771355a 100644 --- a/src/test/java/cz/cvut/kbss/termit/rest/DataControllerTest.java +++ b/src/test/java/cz/cvut/kbss/termit/rest/DataControllerTest.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.rest; diff --git a/src/test/java/cz/cvut/kbss/termit/rest/FreeRegistrationControllerTest.java b/src/test/java/cz/cvut/kbss/termit/rest/FreeRegistrationControllerTest.java index b7a8285f4..339a31962 100644 --- a/src/test/java/cz/cvut/kbss/termit/rest/FreeRegistrationControllerTest.java +++ b/src/test/java/cz/cvut/kbss/termit/rest/FreeRegistrationControllerTest.java @@ -1,13 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.rest; diff --git a/src/test/java/cz/cvut/kbss/termit/rest/IdentifierControllerTest.java b/src/test/java/cz/cvut/kbss/termit/rest/IdentifierControllerTest.java index ab04c6489..f03cea7db 100644 --- a/src/test/java/cz/cvut/kbss/termit/rest/IdentifierControllerTest.java +++ b/src/test/java/cz/cvut/kbss/termit/rest/IdentifierControllerTest.java @@ -1,15 +1,20 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ - package cz.cvut.kbss.termit.rest; import cz.cvut.kbss.termit.environment.Environment; diff --git a/src/test/java/cz/cvut/kbss/termit/rest/LanguageControllerTest.java b/src/test/java/cz/cvut/kbss/termit/rest/LanguageControllerTest.java index af59d43e1..445b6f756 100644 --- a/src/test/java/cz/cvut/kbss/termit/rest/LanguageControllerTest.java +++ b/src/test/java/cz/cvut/kbss/termit/rest/LanguageControllerTest.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.rest; diff --git a/src/test/java/cz/cvut/kbss/termit/rest/ResourceControllerTest.java b/src/test/java/cz/cvut/kbss/termit/rest/ResourceControllerTest.java index 7bd27c881..a553c1ad4 100644 --- a/src/test/java/cz/cvut/kbss/termit/rest/ResourceControllerTest.java +++ b/src/test/java/cz/cvut/kbss/termit/rest/ResourceControllerTest.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.rest; diff --git a/src/test/java/cz/cvut/kbss/termit/rest/SearchControllerTest.java b/src/test/java/cz/cvut/kbss/termit/rest/SearchControllerTest.java index 847964b88..da053fa69 100644 --- a/src/test/java/cz/cvut/kbss/termit/rest/SearchControllerTest.java +++ b/src/test/java/cz/cvut/kbss/termit/rest/SearchControllerTest.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.rest; diff --git a/src/test/java/cz/cvut/kbss/termit/rest/SnapshotControllerTest.java b/src/test/java/cz/cvut/kbss/termit/rest/SnapshotControllerTest.java index 10cbbcdae..1b52919f5 100644 --- a/src/test/java/cz/cvut/kbss/termit/rest/SnapshotControllerTest.java +++ b/src/test/java/cz/cvut/kbss/termit/rest/SnapshotControllerTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.rest; import cz.cvut.kbss.termit.dto.Snapshot; diff --git a/src/test/java/cz/cvut/kbss/termit/rest/TermControllerTest.java b/src/test/java/cz/cvut/kbss/termit/rest/TermControllerTest.java index 605b3dc67..67fa6583f 100644 --- a/src/test/java/cz/cvut/kbss/termit/rest/TermControllerTest.java +++ b/src/test/java/cz/cvut/kbss/termit/rest/TermControllerTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.rest; import com.fasterxml.jackson.core.type.TypeReference; diff --git a/src/test/java/cz/cvut/kbss/termit/rest/TermOccurrenceControllerTest.java b/src/test/java/cz/cvut/kbss/termit/rest/TermOccurrenceControllerTest.java index 485743c93..7976f034e 100644 --- a/src/test/java/cz/cvut/kbss/termit/rest/TermOccurrenceControllerTest.java +++ b/src/test/java/cz/cvut/kbss/termit/rest/TermOccurrenceControllerTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.rest; import cz.cvut.kbss.termit.environment.Generator; diff --git a/src/test/java/cz/cvut/kbss/termit/rest/UserControllerSecurityTest.java b/src/test/java/cz/cvut/kbss/termit/rest/UserControllerSecurityTest.java index 3bb8ea5f1..193c10284 100644 --- a/src/test/java/cz/cvut/kbss/termit/rest/UserControllerSecurityTest.java +++ b/src/test/java/cz/cvut/kbss/termit/rest/UserControllerSecurityTest.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.rest; diff --git a/src/test/java/cz/cvut/kbss/termit/rest/UserControllerTest.java b/src/test/java/cz/cvut/kbss/termit/rest/UserControllerTest.java index 30df6a84b..19a3ce6f5 100644 --- a/src/test/java/cz/cvut/kbss/termit/rest/UserControllerTest.java +++ b/src/test/java/cz/cvut/kbss/termit/rest/UserControllerTest.java @@ -1,13 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.rest; diff --git a/src/test/java/cz/cvut/kbss/termit/rest/UserGroupControllerTest.java b/src/test/java/cz/cvut/kbss/termit/rest/UserGroupControllerTest.java index e5c892d07..219873b6e 100644 --- a/src/test/java/cz/cvut/kbss/termit/rest/UserGroupControllerTest.java +++ b/src/test/java/cz/cvut/kbss/termit/rest/UserGroupControllerTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.rest; import cz.cvut.kbss.termit.environment.Generator; diff --git a/src/test/java/cz/cvut/kbss/termit/rest/VocabularyControllerSecurityTest.java b/src/test/java/cz/cvut/kbss/termit/rest/VocabularyControllerSecurityTest.java index 37ac06dcd..8a6042fad 100644 --- a/src/test/java/cz/cvut/kbss/termit/rest/VocabularyControllerSecurityTest.java +++ b/src/test/java/cz/cvut/kbss/termit/rest/VocabularyControllerSecurityTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.rest; import cz.cvut.kbss.termit.environment.Environment; diff --git a/src/test/java/cz/cvut/kbss/termit/rest/VocabularyControllerTest.java b/src/test/java/cz/cvut/kbss/termit/rest/VocabularyControllerTest.java index 2d237d340..93d5e410a 100644 --- a/src/test/java/cz/cvut/kbss/termit/rest/VocabularyControllerTest.java +++ b/src/test/java/cz/cvut/kbss/termit/rest/VocabularyControllerTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.rest; import com.fasterxml.jackson.core.type.TypeReference; diff --git a/src/test/java/cz/cvut/kbss/termit/rest/WorkspaceControllerTest.java b/src/test/java/cz/cvut/kbss/termit/rest/WorkspaceControllerTest.java index b66cd72e4..f3cc72a13 100644 --- a/src/test/java/cz/cvut/kbss/termit/rest/WorkspaceControllerTest.java +++ b/src/test/java/cz/cvut/kbss/termit/rest/WorkspaceControllerTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.rest; import cz.cvut.kbss.termit.environment.Generator; diff --git a/src/test/java/cz/cvut/kbss/termit/rest/dto/UserUpdateDtoTest.java b/src/test/java/cz/cvut/kbss/termit/rest/dto/UserUpdateDtoTest.java index ae2f5d045..6c64f4f7d 100644 --- a/src/test/java/cz/cvut/kbss/termit/rest/dto/UserUpdateDtoTest.java +++ b/src/test/java/cz/cvut/kbss/termit/rest/dto/UserUpdateDtoTest.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/test/java/cz/cvut/kbss/termit/rest/readonly/ReadOnlyTermControllerTest.java b/src/test/java/cz/cvut/kbss/termit/rest/readonly/ReadOnlyTermControllerTest.java index 6136ffb25..6d34885de 100644 --- a/src/test/java/cz/cvut/kbss/termit/rest/readonly/ReadOnlyTermControllerTest.java +++ b/src/test/java/cz/cvut/kbss/termit/rest/readonly/ReadOnlyTermControllerTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.rest.readonly; import com.fasterxml.jackson.core.type.TypeReference; diff --git a/src/test/java/cz/cvut/kbss/termit/rest/readonly/ReadOnlyVocabularyControllerTest.java b/src/test/java/cz/cvut/kbss/termit/rest/readonly/ReadOnlyVocabularyControllerTest.java index 80617afa0..d4e9f8a9b 100644 --- a/src/test/java/cz/cvut/kbss/termit/rest/readonly/ReadOnlyVocabularyControllerTest.java +++ b/src/test/java/cz/cvut/kbss/termit/rest/readonly/ReadOnlyVocabularyControllerTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.rest.readonly; import com.fasterxml.jackson.core.type.TypeReference; diff --git a/src/test/java/cz/cvut/kbss/termit/rest/servlet/DiagnosticsContextFilterTest.java b/src/test/java/cz/cvut/kbss/termit/rest/servlet/DiagnosticsContextFilterTest.java index b63253299..5f1f4fcd8 100644 --- a/src/test/java/cz/cvut/kbss/termit/rest/servlet/DiagnosticsContextFilterTest.java +++ b/src/test/java/cz/cvut/kbss/termit/rest/servlet/DiagnosticsContextFilterTest.java @@ -1,13 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.rest.servlet; diff --git a/src/test/java/cz/cvut/kbss/termit/rest/util/RestUtilsTest.java b/src/test/java/cz/cvut/kbss/termit/rest/util/RestUtilsTest.java index 4e7f77e94..619844599 100644 --- a/src/test/java/cz/cvut/kbss/termit/rest/util/RestUtilsTest.java +++ b/src/test/java/cz/cvut/kbss/termit/rest/util/RestUtilsTest.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.rest.util; diff --git a/src/test/java/cz/cvut/kbss/termit/security/AuthenticationFailureTest.java b/src/test/java/cz/cvut/kbss/termit/security/AuthenticationFailureTest.java index f203558ba..4fdd09c65 100644 --- a/src/test/java/cz/cvut/kbss/termit/security/AuthenticationFailureTest.java +++ b/src/test/java/cz/cvut/kbss/termit/security/AuthenticationFailureTest.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.security; diff --git a/src/test/java/cz/cvut/kbss/termit/security/AuthenticationSuccessTest.java b/src/test/java/cz/cvut/kbss/termit/security/AuthenticationSuccessTest.java index a676837a2..b59e19307 100644 --- a/src/test/java/cz/cvut/kbss/termit/security/AuthenticationSuccessTest.java +++ b/src/test/java/cz/cvut/kbss/termit/security/AuthenticationSuccessTest.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.security; diff --git a/src/test/java/cz/cvut/kbss/termit/security/HierarchicalRoleBasedAuthorityMapperTest.java b/src/test/java/cz/cvut/kbss/termit/security/HierarchicalRoleBasedAuthorityMapperTest.java index bb05ec079..9a46af34d 100644 --- a/src/test/java/cz/cvut/kbss/termit/security/HierarchicalRoleBasedAuthorityMapperTest.java +++ b/src/test/java/cz/cvut/kbss/termit/security/HierarchicalRoleBasedAuthorityMapperTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.security; import cz.cvut.kbss.termit.security.model.UserRole; diff --git a/src/test/java/cz/cvut/kbss/termit/security/JwtAuthenticationFilterTest.java b/src/test/java/cz/cvut/kbss/termit/security/JwtAuthenticationFilterTest.java index c7f217413..1294826fa 100644 --- a/src/test/java/cz/cvut/kbss/termit/security/JwtAuthenticationFilterTest.java +++ b/src/test/java/cz/cvut/kbss/termit/security/JwtAuthenticationFilterTest.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.security; diff --git a/src/test/java/cz/cvut/kbss/termit/security/JwtAuthorizationFilterTest.java b/src/test/java/cz/cvut/kbss/termit/security/JwtAuthorizationFilterTest.java index 5d8e35159..e273fa08a 100644 --- a/src/test/java/cz/cvut/kbss/termit/security/JwtAuthorizationFilterTest.java +++ b/src/test/java/cz/cvut/kbss/termit/security/JwtAuthorizationFilterTest.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.security; diff --git a/src/test/java/cz/cvut/kbss/termit/security/JwtUtilsTest.java b/src/test/java/cz/cvut/kbss/termit/security/JwtUtilsTest.java index b2c74f9df..5ee713ed0 100644 --- a/src/test/java/cz/cvut/kbss/termit/security/JwtUtilsTest.java +++ b/src/test/java/cz/cvut/kbss/termit/security/JwtUtilsTest.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.security; @@ -72,6 +75,15 @@ void setUp() { this.key = Keys.hmacShaKeyFor(config.getJwt().getSecretKey().getBytes(StandardCharsets.UTF_8)); } + @Test + void constructorInitializesKeyWithRandomSecretWhenNoneIsConfigured() { + final Configuration localConfig = new Configuration(); + localConfig.getJwt().setSecretKey(""); + this.sut = new JwtUtils(Environment.getObjectMapper(), localConfig); + final String jwtToken = sut.generateToken(user, Collections.emptyList()); + assertNotNull(jwtToken); + } + @Test void generateTokenCreatesJwtForUserWithoutAuthorities() { final Collection authorities = Collections.singleton(DEFAULT_AUTHORITY); diff --git a/src/test/java/cz/cvut/kbss/termit/security/OntologicalAuthenticationProviderTest.java b/src/test/java/cz/cvut/kbss/termit/security/OntologicalAuthenticationProviderTest.java index 261217e60..859cdbbdc 100644 --- a/src/test/java/cz/cvut/kbss/termit/security/OntologicalAuthenticationProviderTest.java +++ b/src/test/java/cz/cvut/kbss/termit/security/OntologicalAuthenticationProviderTest.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.security; diff --git a/src/test/java/cz/cvut/kbss/termit/security/model/TermItUserDetailsTest.java b/src/test/java/cz/cvut/kbss/termit/security/model/TermItUserDetailsTest.java index 42719fcaa..0dc8e67e8 100644 --- a/src/test/java/cz/cvut/kbss/termit/security/model/TermItUserDetailsTest.java +++ b/src/test/java/cz/cvut/kbss/termit/security/model/TermItUserDetailsTest.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/test/java/cz/cvut/kbss/termit/service/BaseServiceTestRunner.java b/src/test/java/cz/cvut/kbss/termit/service/BaseServiceTestRunner.java index e4b707933..f46527af9 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/BaseServiceTestRunner.java +++ b/src/test/java/cz/cvut/kbss/termit/service/BaseServiceTestRunner.java @@ -1,13 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.service; diff --git a/src/test/java/cz/cvut/kbss/termit/service/IdentifierResolverTest.java b/src/test/java/cz/cvut/kbss/termit/service/IdentifierResolverTest.java index 51132157a..534723d2f 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/IdentifierResolverTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/IdentifierResolverTest.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.service; diff --git a/src/test/java/cz/cvut/kbss/termit/service/LanguageServiceTest.java b/src/test/java/cz/cvut/kbss/termit/service/LanguageServiceTest.java index bbf399f17..6278ef815 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/LanguageServiceTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/LanguageServiceTest.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.service; diff --git a/src/test/java/cz/cvut/kbss/termit/service/VocabularyRepositoryServiceImportTest.java b/src/test/java/cz/cvut/kbss/termit/service/VocabularyRepositoryServiceImportTest.java index f4b8f4dba..ba11dc259 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/VocabularyRepositoryServiceImportTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/VocabularyRepositoryServiceImportTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service; import cz.cvut.kbss.termit.environment.Environment; diff --git a/src/test/java/cz/cvut/kbss/termit/service/business/AssetServiceTest.java b/src/test/java/cz/cvut/kbss/termit/service/business/AssetServiceTest.java index 9ef33b5cd..34bb4f48e 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/business/AssetServiceTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/business/AssetServiceTest.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.service.business; diff --git a/src/test/java/cz/cvut/kbss/termit/service/business/ResourceServiceTest.java b/src/test/java/cz/cvut/kbss/termit/service/business/ResourceServiceTest.java index 79d4b9135..64d20d4e1 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/business/ResourceServiceTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/business/ResourceServiceTest.java @@ -1,13 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.service.business; diff --git a/src/test/java/cz/cvut/kbss/termit/service/business/SearchServiceTest.java b/src/test/java/cz/cvut/kbss/termit/service/business/SearchServiceTest.java index a32105e55..1a57954d3 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/business/SearchServiceTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/business/SearchServiceTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.business; import cz.cvut.kbss.jopa.model.MultilingualString; diff --git a/src/test/java/cz/cvut/kbss/termit/service/business/TermServiceTest.java b/src/test/java/cz/cvut/kbss/termit/service/business/TermServiceTest.java index a9d089664..bb0923e80 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/business/TermServiceTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/business/TermServiceTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.business; import cz.cvut.kbss.jopa.model.MultilingualString; diff --git a/src/test/java/cz/cvut/kbss/termit/service/business/UserServiceTest.java b/src/test/java/cz/cvut/kbss/termit/service/business/UserServiceTest.java index 735745fed..5df647fbd 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/business/UserServiceTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/business/UserServiceTest.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.service.business; diff --git a/src/test/java/cz/cvut/kbss/termit/service/business/readonly/ReadOnlyTermServiceTest.java b/src/test/java/cz/cvut/kbss/termit/service/business/readonly/ReadOnlyTermServiceTest.java index 2393c5868..c8c952fd1 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/business/readonly/ReadOnlyTermServiceTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/business/readonly/ReadOnlyTermServiceTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.business.readonly; import cz.cvut.kbss.jopa.vocabulary.DC; diff --git a/src/test/java/cz/cvut/kbss/termit/service/business/readonly/ReadOnlyVocabularyServiceTest.java b/src/test/java/cz/cvut/kbss/termit/service/business/readonly/ReadOnlyVocabularyServiceTest.java index 90cbadebc..90b2b7fc2 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/business/readonly/ReadOnlyVocabularyServiceTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/business/readonly/ReadOnlyVocabularyServiceTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.business.readonly; import cz.cvut.kbss.termit.dto.Snapshot; diff --git a/src/test/java/cz/cvut/kbss/termit/service/changetracking/ChangeTrackerTest.java b/src/test/java/cz/cvut/kbss/termit/service/changetracking/ChangeTrackerTest.java index 0bace7d6d..69ead3e5f 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/changetracking/ChangeTrackerTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/changetracking/ChangeTrackerTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.changetracking; import cz.cvut.kbss.jopa.model.EntityManager; diff --git a/src/test/java/cz/cvut/kbss/termit/service/changetracking/ChangeTrackingTest.java b/src/test/java/cz/cvut/kbss/termit/service/changetracking/ChangeTrackingTest.java index e2d219c6d..b0cd7dad9 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/changetracking/ChangeTrackingTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/changetracking/ChangeTrackingTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.changetracking; import cz.cvut.kbss.jopa.model.EntityManager; diff --git a/src/test/java/cz/cvut/kbss/termit/service/changetracking/MetamodelBasedChangeCalculatorTest.java b/src/test/java/cz/cvut/kbss/termit/service/changetracking/MetamodelBasedChangeCalculatorTest.java index 10a813157..0ee1e8119 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/changetracking/MetamodelBasedChangeCalculatorTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/changetracking/MetamodelBasedChangeCalculatorTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.changetracking; import cz.cvut.kbss.jopa.model.MultilingualString; diff --git a/src/test/java/cz/cvut/kbss/termit/service/comment/CommentServiceTest.java b/src/test/java/cz/cvut/kbss/termit/service/comment/CommentServiceTest.java index 867b797c9..e5da24554 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/comment/CommentServiceTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/comment/CommentServiceTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.comment; import cz.cvut.kbss.jopa.model.EntityManager; diff --git a/src/test/java/cz/cvut/kbss/termit/service/config/ConfigurationProviderTest.java b/src/test/java/cz/cvut/kbss/termit/service/config/ConfigurationProviderTest.java index 45f1e8d68..d6303d0bd 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/config/ConfigurationProviderTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/config/ConfigurationProviderTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.config; import cz.cvut.kbss.termit.dto.ConfigurationDto; diff --git a/src/test/java/cz/cvut/kbss/termit/service/document/AnnotationGeneratorTest.java b/src/test/java/cz/cvut/kbss/termit/service/document/AnnotationGeneratorTest.java index 31e52a887..d67b02159 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/document/AnnotationGeneratorTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/document/AnnotationGeneratorTest.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.service.document; diff --git a/src/test/java/cz/cvut/kbss/termit/service/document/DefaultDocumentManagerTest.java b/src/test/java/cz/cvut/kbss/termit/service/document/DefaultDocumentManagerTest.java index 60c6d5764..695beb28c 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/document/DefaultDocumentManagerTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/document/DefaultDocumentManagerTest.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.service.document; diff --git a/src/test/java/cz/cvut/kbss/termit/service/document/TextAnalysisServiceTest.java b/src/test/java/cz/cvut/kbss/termit/service/document/TextAnalysisServiceTest.java index bebbb85dd..3327c4dab 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/document/TextAnalysisServiceTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/document/TextAnalysisServiceTest.java @@ -1,13 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.service.document; diff --git a/src/test/java/cz/cvut/kbss/termit/service/document/html/DummySelectorGenerator.java b/src/test/java/cz/cvut/kbss/termit/service/document/html/DummySelectorGenerator.java index bd3fbf915..302a99ed6 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/document/html/DummySelectorGenerator.java +++ b/src/test/java/cz/cvut/kbss/termit/service/document/html/DummySelectorGenerator.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/test/java/cz/cvut/kbss/termit/service/document/html/HtmlTermOccurrenceResolverTest.java b/src/test/java/cz/cvut/kbss/termit/service/document/html/HtmlTermOccurrenceResolverTest.java index 0099e981e..6cff00955 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/document/html/HtmlTermOccurrenceResolverTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/document/html/HtmlTermOccurrenceResolverTest.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.service.document.html; diff --git a/src/test/java/cz/cvut/kbss/termit/service/document/html/TextPositionSelectorGeneratorTest.java b/src/test/java/cz/cvut/kbss/termit/service/document/html/TextPositionSelectorGeneratorTest.java index 6bb571090..9402f0d7c 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/document/html/TextPositionSelectorGeneratorTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/document/html/TextPositionSelectorGeneratorTest.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/test/java/cz/cvut/kbss/termit/service/document/html/TextQuoteSelectorGeneratorTest.java b/src/test/java/cz/cvut/kbss/termit/service/document/html/TextQuoteSelectorGeneratorTest.java index 92605a01e..ac88220b8 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/document/html/TextQuoteSelectorGeneratorTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/document/html/TextQuoteSelectorGeneratorTest.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/test/java/cz/cvut/kbss/termit/service/export/ExcelTermExporterTest.java b/src/test/java/cz/cvut/kbss/termit/service/export/ExcelTermExporterTest.java index 0be304613..80927ceda 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/export/ExcelTermExporterTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/export/ExcelTermExporterTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.export; import cz.cvut.kbss.jopa.model.MultilingualString; diff --git a/src/test/java/cz/cvut/kbss/termit/service/export/ExcelVocabularyExporterTest.java b/src/test/java/cz/cvut/kbss/termit/service/export/ExcelVocabularyExporterTest.java index e10446ba0..d09176d90 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/export/ExcelVocabularyExporterTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/export/ExcelVocabularyExporterTest.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.service.export; diff --git a/src/test/java/cz/cvut/kbss/termit/service/export/SKOSVocabularyExporterTest.java b/src/test/java/cz/cvut/kbss/termit/service/export/SKOSVocabularyExporterTest.java index 743537dce..407004aff 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/export/SKOSVocabularyExporterTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/export/SKOSVocabularyExporterTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.export; import cz.cvut.kbss.jopa.model.EntityManager; diff --git a/src/test/java/cz/cvut/kbss/termit/service/init/AdminAccountGeneratorTest.java b/src/test/java/cz/cvut/kbss/termit/service/init/AdminAccountGeneratorTest.java index e66f95b2a..1beaa0c60 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/init/AdminAccountGeneratorTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/init/AdminAccountGeneratorTest.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.service.init; @@ -95,6 +98,13 @@ void doesNotCreateNewAdminWhenOneAlreadyExists() { verify(userService, never()).persist(any(UserAccount.class)); } + @Test + void doesGenerateAdminWhenOIDCSecurityIsUsed() { + config.getSecurity().setProvider(Configuration.Security.ProviderType.OIDC); + sut.initSystemAdmin(); + verify(userService, never()).persist(any(UserAccount.class)); + } + @Test void savesAdminLoginCredentialsIntoHiddenFileInUserHome() throws Exception { doAnswer(arg -> { diff --git a/src/test/java/cz/cvut/kbss/termit/service/init/VocabularyAccessControlListGeneratorTest.java b/src/test/java/cz/cvut/kbss/termit/service/init/VocabularyAccessControlListGeneratorTest.java index 30c185141..4b8071de0 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/init/VocabularyAccessControlListGeneratorTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/init/VocabularyAccessControlListGeneratorTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.init; import cz.cvut.kbss.jopa.model.EntityManager; diff --git a/src/test/java/cz/cvut/kbss/termit/service/jmx/AppAdminBeanTest.java b/src/test/java/cz/cvut/kbss/termit/service/jmx/AppAdminBeanTest.java index 7322214c1..e10e552e3 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/jmx/AppAdminBeanTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/jmx/AppAdminBeanTest.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.service.jmx; diff --git a/src/test/java/cz/cvut/kbss/termit/service/language/TermStateLanguageServiceTest.java b/src/test/java/cz/cvut/kbss/termit/service/language/TermStateLanguageServiceTest.java index 12a93bbd9..62208490a 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/language/TermStateLanguageServiceTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/language/TermStateLanguageServiceTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.language; import cz.cvut.kbss.termit.dto.RdfsResource; diff --git a/src/test/java/cz/cvut/kbss/termit/service/language/UfoTermTypesServiceTest.java b/src/test/java/cz/cvut/kbss/termit/service/language/UfoTermTypesServiceTest.java index e89177695..a1619304e 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/language/UfoTermTypesServiceTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/language/UfoTermTypesServiceTest.java @@ -1,6 +1,24 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.language; import cz.cvut.kbss.termit.model.Term; +import cz.cvut.kbss.termit.util.Vocabulary; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.mockito.InjectMocks; @@ -11,6 +29,7 @@ import java.io.IOException; import java.net.URL; import java.util.List; +import java.util.Optional; import static org.junit.jupiter.api.Assertions.*; import static org.mockito.Mockito.when; @@ -31,4 +50,28 @@ void getTypesForBasicLanguage() throws IOException { List result = sut.getTypes(); assertEquals(10, result.size()); } + + @Test + void getTypesSupportsTopDownTermHierarchy() throws Exception { + final URL url = ClassLoader.getSystemResource("languages/types.ttl"); + when(languageTtlUrl.getInputStream()).thenReturn(url.openStream()); + List result = sut.getTypes(); + final Optional individual = result.stream() + .filter(t -> t.getUri().toString().equals(Vocabulary.s_c_individual)) + .findAny(); + assertTrue(individual.isPresent()); + assertFalse(individual.get().getSubTerms().isEmpty()); + } + + @Test + void getTypesSupportsBottomUpTermHierarchy() throws Exception { + final URL url = ClassLoader.getSystemResource("languages/bottomUpTypes.ttl"); + when(languageTtlUrl.getInputStream()).thenReturn(url.openStream()); + List result = sut.getTypes(); + final Optional individual = result.stream() + .filter(t -> t.getUri().toString().equals(Vocabulary.s_c_individual)) + .findAny(); + assertTrue(individual.isPresent()); + assertFalse(individual.get().getSubTerms().isEmpty()); + } } diff --git a/src/test/java/cz/cvut/kbss/termit/service/mail/AssetLinkTest.java b/src/test/java/cz/cvut/kbss/termit/service/mail/AssetLinkTest.java index d2220ccc8..68d805acc 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/mail/AssetLinkTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/mail/AssetLinkTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.mail; import cz.cvut.kbss.termit.environment.Generator; diff --git a/src/test/java/cz/cvut/kbss/termit/service/notification/CommentChangeNotifierTest.java b/src/test/java/cz/cvut/kbss/termit/service/notification/CommentChangeNotifierTest.java index 01b5e3217..bbde3c782 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/notification/CommentChangeNotifierTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/notification/CommentChangeNotifierTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.notification; import cz.cvut.kbss.termit.environment.Generator; diff --git a/src/test/java/cz/cvut/kbss/termit/service/notification/MessageAssetFactoryTest.java b/src/test/java/cz/cvut/kbss/termit/service/notification/MessageAssetFactoryTest.java index 4fb215052..05a6b66e6 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/notification/MessageAssetFactoryTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/notification/MessageAssetFactoryTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.notification; import cz.cvut.kbss.termit.environment.Generator; diff --git a/src/test/java/cz/cvut/kbss/termit/service/notification/NotificationServiceTest.java b/src/test/java/cz/cvut/kbss/termit/service/notification/NotificationServiceTest.java index 4bfeb862f..83c48e7a0 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/notification/NotificationServiceTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/notification/NotificationServiceTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.notification; import cz.cvut.kbss.termit.service.mail.Message; diff --git a/src/test/java/cz/cvut/kbss/termit/service/repository/BaseAssetRepositoryServiceImpl.java b/src/test/java/cz/cvut/kbss/termit/service/repository/BaseAssetRepositoryServiceImpl.java index 35c199fac..37f95d768 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/repository/BaseAssetRepositoryServiceImpl.java +++ b/src/test/java/cz/cvut/kbss/termit/service/repository/BaseAssetRepositoryServiceImpl.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/test/java/cz/cvut/kbss/termit/service/repository/BaseAssetRepositoryServiceTest.java b/src/test/java/cz/cvut/kbss/termit/service/repository/BaseAssetRepositoryServiceTest.java index 892e0f155..770c04c5e 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/repository/BaseAssetRepositoryServiceTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/repository/BaseAssetRepositoryServiceTest.java @@ -1,13 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.service.repository; diff --git a/src/test/java/cz/cvut/kbss/termit/service/repository/BaseRepositoryServiceImpl.java b/src/test/java/cz/cvut/kbss/termit/service/repository/BaseRepositoryServiceImpl.java index 32752644f..97ae6a249 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/repository/BaseRepositoryServiceImpl.java +++ b/src/test/java/cz/cvut/kbss/termit/service/repository/BaseRepositoryServiceImpl.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/test/java/cz/cvut/kbss/termit/service/repository/BaseRepositoryServiceTest.java b/src/test/java/cz/cvut/kbss/termit/service/repository/BaseRepositoryServiceTest.java index ecfa8c34f..9bbcbd4ca 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/repository/BaseRepositoryServiceTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/repository/BaseRepositoryServiceTest.java @@ -1,13 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.service.repository; diff --git a/src/test/java/cz/cvut/kbss/termit/service/repository/ChangeRecordServiceTest.java b/src/test/java/cz/cvut/kbss/termit/service/repository/ChangeRecordServiceTest.java index 1120118a0..3d2b135a5 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/repository/ChangeRecordServiceTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/repository/ChangeRecordServiceTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.repository; import cz.cvut.kbss.jopa.model.EntityManager; diff --git a/src/test/java/cz/cvut/kbss/termit/service/repository/RepositoryAccessControlListServiceTest.java b/src/test/java/cz/cvut/kbss/termit/service/repository/RepositoryAccessControlListServiceTest.java index 0f0327f0d..492f4c4d2 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/repository/RepositoryAccessControlListServiceTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/repository/RepositoryAccessControlListServiceTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.repository; import cz.cvut.kbss.termit.environment.Environment; diff --git a/src/test/java/cz/cvut/kbss/termit/service/repository/ResourceRepositoryServiceTest.java b/src/test/java/cz/cvut/kbss/termit/service/repository/ResourceRepositoryServiceTest.java index 045eeec49..4cb5ce854 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/repository/ResourceRepositoryServiceTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/repository/ResourceRepositoryServiceTest.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.service.repository; diff --git a/src/test/java/cz/cvut/kbss/termit/service/repository/TermOccurrenceRepositoryServiceTest.java b/src/test/java/cz/cvut/kbss/termit/service/repository/TermOccurrenceRepositoryServiceTest.java index 1e31cae17..98850015e 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/repository/TermOccurrenceRepositoryServiceTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/repository/TermOccurrenceRepositoryServiceTest.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/test/java/cz/cvut/kbss/termit/service/repository/TermRepositoryServiceSnapshotsTest.java b/src/test/java/cz/cvut/kbss/termit/service/repository/TermRepositoryServiceSnapshotsTest.java index 360907633..416382e98 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/repository/TermRepositoryServiceSnapshotsTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/repository/TermRepositoryServiceSnapshotsTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.repository; import cz.cvut.kbss.jopa.model.EntityManager; diff --git a/src/test/java/cz/cvut/kbss/termit/service/repository/TermRepositoryServiceTest.java b/src/test/java/cz/cvut/kbss/termit/service/repository/TermRepositoryServiceTest.java index 219f96fcd..e2ec434b5 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/repository/TermRepositoryServiceTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/repository/TermRepositoryServiceTest.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.service.repository; diff --git a/src/test/java/cz/cvut/kbss/termit/service/repository/UserGroupRepositoryServiceTest.java b/src/test/java/cz/cvut/kbss/termit/service/repository/UserGroupRepositoryServiceTest.java index 1e661ab4b..678087784 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/repository/UserGroupRepositoryServiceTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/repository/UserGroupRepositoryServiceTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.repository; import cz.cvut.kbss.termit.environment.Generator; diff --git a/src/test/java/cz/cvut/kbss/termit/service/repository/UserRepositoryServiceTest.java b/src/test/java/cz/cvut/kbss/termit/service/repository/UserRepositoryServiceTest.java index ffa94e805..1041c23d4 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/repository/UserRepositoryServiceTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/repository/UserRepositoryServiceTest.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.service.repository; diff --git a/src/test/java/cz/cvut/kbss/termit/service/repository/VocabularyRepositoryServiceTest.java b/src/test/java/cz/cvut/kbss/termit/service/repository/VocabularyRepositoryServiceTest.java index dc2f2156b..e1d401d3c 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/repository/VocabularyRepositoryServiceTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/repository/VocabularyRepositoryServiceTest.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.service.repository; diff --git a/src/test/java/cz/cvut/kbss/termit/service/repository/VocabularyRepositoryServiceWorkspaceTest.java b/src/test/java/cz/cvut/kbss/termit/service/repository/VocabularyRepositoryServiceWorkspaceTest.java index 6295b6872..913f22e76 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/repository/VocabularyRepositoryServiceWorkspaceTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/repository/VocabularyRepositoryServiceWorkspaceTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.repository; import cz.cvut.kbss.termit.dto.listing.VocabularyDto; diff --git a/src/test/java/cz/cvut/kbss/termit/service/repository/VocabularyServiceTest.java b/src/test/java/cz/cvut/kbss/termit/service/repository/VocabularyServiceTest.java index 1ddd672d9..e9f76513e 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/repository/VocabularyServiceTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/repository/VocabularyServiceTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.repository; import cz.cvut.kbss.termit.dto.Snapshot; diff --git a/src/test/java/cz/cvut/kbss/termit/service/security/RuntimeBasedLoginTrackerTest.java b/src/test/java/cz/cvut/kbss/termit/service/security/RuntimeBasedLoginTrackerTest.java index 075d3d914..5a84b4a51 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/security/RuntimeBasedLoginTrackerTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/security/RuntimeBasedLoginTrackerTest.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/test/java/cz/cvut/kbss/termit/service/security/SecurityUtilsTest.java b/src/test/java/cz/cvut/kbss/termit/service/security/SecurityUtilsTest.java index 041f92826..8292ec797 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/security/SecurityUtilsTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/security/SecurityUtilsTest.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.service.security; diff --git a/src/test/java/cz/cvut/kbss/termit/service/security/TermItUserDetailsServiceTest.java b/src/test/java/cz/cvut/kbss/termit/service/security/TermItUserDetailsServiceTest.java index 3184a6bf6..0525978b1 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/security/TermItUserDetailsServiceTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/security/TermItUserDetailsServiceTest.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/test/java/cz/cvut/kbss/termit/service/security/authorization/ResourceAuthorizationServiceTest.java b/src/test/java/cz/cvut/kbss/termit/service/security/authorization/ResourceAuthorizationServiceTest.java index c26a6794b..5905b7470 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/security/authorization/ResourceAuthorizationServiceTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/security/authorization/ResourceAuthorizationServiceTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.security.authorization; import cz.cvut.kbss.termit.environment.Generator; diff --git a/src/test/java/cz/cvut/kbss/termit/service/security/authorization/SearchAuthorizationServiceTest.java b/src/test/java/cz/cvut/kbss/termit/service/security/authorization/SearchAuthorizationServiceTest.java index 1b2b7ff42..9ffe2c3f3 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/security/authorization/SearchAuthorizationServiceTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/security/authorization/SearchAuthorizationServiceTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.security.authorization; import cz.cvut.kbss.jopa.vocabulary.SKOS; diff --git a/src/test/java/cz/cvut/kbss/termit/service/security/authorization/SnapshotAuthorizationServiceTest.java b/src/test/java/cz/cvut/kbss/termit/service/security/authorization/SnapshotAuthorizationServiceTest.java index 448748e17..6b0829f3c 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/security/authorization/SnapshotAuthorizationServiceTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/security/authorization/SnapshotAuthorizationServiceTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.security.authorization; import cz.cvut.kbss.termit.dto.Snapshot; diff --git a/src/test/java/cz/cvut/kbss/termit/service/security/authorization/TermAuthorizationServiceTest.java b/src/test/java/cz/cvut/kbss/termit/service/security/authorization/TermAuthorizationServiceTest.java index 38dfe8f32..a5b54dbf4 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/security/authorization/TermAuthorizationServiceTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/security/authorization/TermAuthorizationServiceTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.security.authorization; import cz.cvut.kbss.termit.environment.Generator; diff --git a/src/test/java/cz/cvut/kbss/termit/service/security/authorization/VocabularyAuthorizationServiceTest.java b/src/test/java/cz/cvut/kbss/termit/service/security/authorization/VocabularyAuthorizationServiceTest.java index db62039f2..f7c0204c5 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/security/authorization/VocabularyAuthorizationServiceTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/security/authorization/VocabularyAuthorizationServiceTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.security.authorization; import cz.cvut.kbss.termit.environment.Environment; diff --git a/src/test/java/cz/cvut/kbss/termit/service/security/authorization/acl/AccessControlListBasedAuthorizationServiceTest.java b/src/test/java/cz/cvut/kbss/termit/service/security/authorization/acl/AccessControlListBasedAuthorizationServiceTest.java index 5f83098cf..dc765c5e5 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/security/authorization/acl/AccessControlListBasedAuthorizationServiceTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/security/authorization/acl/AccessControlListBasedAuthorizationServiceTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.security.authorization.acl; import cz.cvut.kbss.termit.environment.Generator; diff --git a/src/test/java/cz/cvut/kbss/termit/service/term/AssertedInferredValueDifferentiatorTest.java b/src/test/java/cz/cvut/kbss/termit/service/term/AssertedInferredValueDifferentiatorTest.java index c9c0f2603..af0d3f9e4 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/term/AssertedInferredValueDifferentiatorTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/term/AssertedInferredValueDifferentiatorTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.term; import cz.cvut.kbss.termit.dto.TermInfo; diff --git a/src/test/java/cz/cvut/kbss/termit/service/workspace/WorkspaceServiceTest.java b/src/test/java/cz/cvut/kbss/termit/service/workspace/WorkspaceServiceTest.java index 7e00c74d2..2e340b4d1 100644 --- a/src/test/java/cz/cvut/kbss/termit/service/workspace/WorkspaceServiceTest.java +++ b/src/test/java/cz/cvut/kbss/termit/service/workspace/WorkspaceServiceTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.service.workspace; import cz.cvut.kbss.termit.environment.Generator; diff --git a/src/test/java/cz/cvut/kbss/termit/util/AuthenticatingServletRequestWrapperTest.java b/src/test/java/cz/cvut/kbss/termit/util/AuthenticatingServletRequestWrapperTest.java index 0e4fdbabe..1fdfa680e 100644 --- a/src/test/java/cz/cvut/kbss/termit/util/AuthenticatingServletRequestWrapperTest.java +++ b/src/test/java/cz/cvut/kbss/termit/util/AuthenticatingServletRequestWrapperTest.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/test/java/cz/cvut/kbss/termit/util/CsvUtilsTest.java b/src/test/java/cz/cvut/kbss/termit/util/CsvUtilsTest.java index c7f8d3a6b..f6dee52dc 100644 --- a/src/test/java/cz/cvut/kbss/termit/util/CsvUtilsTest.java +++ b/src/test/java/cz/cvut/kbss/termit/util/CsvUtilsTest.java @@ -1,6 +1,6 @@ -/** +/* * TermIt - * Copyright (C) 2019 Czech Technical University in Prague + * Copyright (C) 2023 Czech Technical University in Prague * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/test/java/cz/cvut/kbss/termit/util/UtilsTest.java b/src/test/java/cz/cvut/kbss/termit/util/UtilsTest.java index 498cc48f8..6473c6a09 100644 --- a/src/test/java/cz/cvut/kbss/termit/util/UtilsTest.java +++ b/src/test/java/cz/cvut/kbss/termit/util/UtilsTest.java @@ -1,16 +1,19 @@ -/** - * TermIt Copyright (C) 2019 Czech Technical University in Prague - *

- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later - * version. - *

- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - *

- * You should have received a copy of the GNU General Public License along with this program. If not, see - * . +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package cz.cvut.kbss.termit.util; diff --git a/src/test/java/cz/cvut/kbss/termit/util/VocabularyTest.java b/src/test/java/cz/cvut/kbss/termit/util/VocabularyTest.java index 9caaee6bc..9c015ddaf 100644 --- a/src/test/java/cz/cvut/kbss/termit/util/VocabularyTest.java +++ b/src/test/java/cz/cvut/kbss/termit/util/VocabularyTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.util; import org.junit.jupiter.api.Test; diff --git a/src/test/java/cz/cvut/kbss/termit/util/json/MultilingualStringDeserializerTest.java b/src/test/java/cz/cvut/kbss/termit/util/json/MultilingualStringDeserializerTest.java index 2bf9933ad..bcec48fe2 100644 --- a/src/test/java/cz/cvut/kbss/termit/util/json/MultilingualStringDeserializerTest.java +++ b/src/test/java/cz/cvut/kbss/termit/util/json/MultilingualStringDeserializerTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.util.json; import com.fasterxml.jackson.databind.ObjectMapper; diff --git a/src/test/java/cz/cvut/kbss/termit/util/json/MultilingualStringSerializerTest.java b/src/test/java/cz/cvut/kbss/termit/util/json/MultilingualStringSerializerTest.java index 1ab6e11fe..0815a79e9 100644 --- a/src/test/java/cz/cvut/kbss/termit/util/json/MultilingualStringSerializerTest.java +++ b/src/test/java/cz/cvut/kbss/termit/util/json/MultilingualStringSerializerTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.util.json; import com.fasterxml.jackson.core.JsonGenerator; diff --git a/src/test/java/cz/cvut/kbss/termit/util/oidc/OidcGrantedAuthoritiesExtractorTest.java b/src/test/java/cz/cvut/kbss/termit/util/oidc/OidcGrantedAuthoritiesExtractorTest.java new file mode 100644 index 000000000..5a19c1a30 --- /dev/null +++ b/src/test/java/cz/cvut/kbss/termit/util/oidc/OidcGrantedAuthoritiesExtractorTest.java @@ -0,0 +1,113 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package cz.cvut.kbss.termit.util.oidc; + +import cz.cvut.kbss.termit.security.model.UserRole; +import cz.cvut.kbss.termit.util.Configuration; +import cz.cvut.kbss.termit.util.Utils; +import org.junit.jupiter.api.Test; +import org.springframework.security.core.authority.SimpleGrantedAuthority; +import org.springframework.security.oauth2.jwt.Jwt; + +import java.util.Collection; +import java.util.List; +import java.util.Map; + +import static org.hamcrest.MatcherAssert.assertThat; +import static org.hamcrest.Matchers.hasItem; +import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.junit.jupiter.api.Assertions.assertThrows; + +class OidcGrantedAuthoritiesExtractorTest { + + private final Configuration.Security config = new Configuration.Security(); + + @Test + void convertMapsTopLevelClaimWithRolesToGrantedAuthorities() { + config.setRoleClaim("roles"); + final List roles = List.of(UserRole.ADMIN.getName(), UserRole.FULL_USER.getName()); + final Jwt token = Jwt.withTokenValue("abcdef12345") + .header("alg", "RS256") + .header("typ", "JWT") + .claim(config.getRoleClaim(), roles) + .issuer("http://localhost:8080/termit") + .subject("termit") + .expiresAt(Utils.timestamp().plusSeconds(300)) + .build(); + + final OidcGrantedAuthoritiesExtractor sut = new OidcGrantedAuthoritiesExtractor(config); + final Collection result = sut.convert(token); + assertNotNull(result); + for (String r : roles) { + assertThat(result, hasItem(new SimpleGrantedAuthority(r))); + } + } + + @Test + void convertSupportsNestedRolesClaim() { + config.setRoleClaim("realm_access.roles"); + final List roles = List.of(UserRole.ADMIN.getName(), UserRole.FULL_USER.getName()); + final Jwt token = Jwt.withTokenValue("abcdef12345") + .header("alg", "RS256") + .header("typ", "JWT") + .claim("realm_access", Map.of("roles", roles)) + .issuer("http://localhost:8080/termit") + .subject("termit") + .expiresAt(Utils.timestamp().plusSeconds(300)) + .build(); + + final OidcGrantedAuthoritiesExtractor sut = new OidcGrantedAuthoritiesExtractor(config); + final Collection result = sut.convert(token); + assertNotNull(result); + for (String r : roles) { + assertThat(result, hasItem(new SimpleGrantedAuthority(r))); + } + } + + @Test + void convertThrowsIllegalArgumentExceptionWhenExpectedClaimPathIsNotTraversable() { + config.setRoleClaim("realm_access.roles.list"); + final Jwt token = Jwt.withTokenValue("abcdef12345") + .header("alg", "RS256") + .header("typ", "JWT") + .claim("realm_access", Map.of("roles", 1235)) + .issuer("http://localhost:8080/termit") + .subject("termit") + .expiresAt(Utils.timestamp().plusSeconds(300)) + .build(); + + final OidcGrantedAuthoritiesExtractor sut = new OidcGrantedAuthoritiesExtractor(config); + assertThrows(IllegalArgumentException.class, () -> sut.convert(token)); + } + + @Test + void convertThrowsIllegalArgumentExceptionWhenNestedRolesClaimIsNotList() { + config.setRoleClaim("realm_access.roles.notlist"); + final Jwt token = Jwt.withTokenValue("abcdef12345") + .header("alg", "RS256") + .header("typ", "JWT") + .claim("realm_access", Map.of("roles", Map.of("notlist", UserRole.FULL_USER.getName()))) + .issuer("http://localhost:8080/termit") + .subject("termit") + .expiresAt(Utils.timestamp().plusSeconds(300)) + .build(); + + final OidcGrantedAuthoritiesExtractor sut = new OidcGrantedAuthoritiesExtractor(config); + assertThrows(IllegalArgumentException.class, () -> sut.convert(token)); + } +} diff --git a/src/test/java/cz/cvut/kbss/termit/validation/MultilingualStringPrimaryNotBlankValidatorTest.java b/src/test/java/cz/cvut/kbss/termit/validation/MultilingualStringPrimaryNotBlankValidatorTest.java index 3666ef6dc..eff40f102 100644 --- a/src/test/java/cz/cvut/kbss/termit/validation/MultilingualStringPrimaryNotBlankValidatorTest.java +++ b/src/test/java/cz/cvut/kbss/termit/validation/MultilingualStringPrimaryNotBlankValidatorTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.validation; import cz.cvut.kbss.jopa.model.MultilingualString; diff --git a/src/test/java/cz/cvut/kbss/termit/workspace/EditableVocabulariesTest.java b/src/test/java/cz/cvut/kbss/termit/workspace/EditableVocabulariesTest.java index e35433619..5ae9b734a 100644 --- a/src/test/java/cz/cvut/kbss/termit/workspace/EditableVocabulariesTest.java +++ b/src/test/java/cz/cvut/kbss/termit/workspace/EditableVocabulariesTest.java @@ -1,3 +1,20 @@ +/* + * TermIt + * Copyright (C) 2023 Czech Technical University in Prague + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package cz.cvut.kbss.termit.workspace; import cz.cvut.kbss.termit.environment.Generator; diff --git a/src/test/resources/languages/bottomUpTypes.ttl b/src/test/resources/languages/bottomUpTypes.ttl new file mode 100644 index 000000000..694d248b9 --- /dev/null +++ b/src/test/resources/languages/bottomUpTypes.ttl @@ -0,0 +1,53 @@ +@prefix rdf: . +@prefix skos: . +@prefix ufo: . + +ufo:individual a skos:Concept ; + skos:prefLabel "Individuál"@cs, + "Individual"@en . + +ufo:type a skos:Concept ; + skos:prefLabel "Typ"@cs, + "Type"@en . + +ufo:event a skos:Concept ; + skos:prefLabel "Událost"@cs, + "Event"@en ; + skos:scopeNote "An event, perdurant in the ontological sense. Events do not change its properties over time."@en ; + skos:broader ufo:individual . + +ufo:event-type a skos:Concept ; + skos:prefLabel "Typ události"@cs, + "Event Type"@en ; + skos:broader ufo:type . + +ufo:intrinsic-trope a skos:Concept ; + skos:prefLabel "Vlastnost"@cs, + "Aspect"@en ; + skos:broader ufo:individual . + +ufo:intrinsic-trope-type a skos:Concept ; + skos:prefLabel "Typ vlastnosti"@cs, + "Aspect Type"@en ; + skos:broader ufo:type . + +ufo:object a skos:Concept ; + skos:prefLabel "Objekt"@cs, + "Object"@en ; + skos:scopeNote "Object is any identifiable endurant entity existence of which is not directly dependent on an existence of another entity."@en ; + skos:broader ufo:individual . + +ufo:object-type a skos:Concept ; + skos:prefLabel "Typ objektu"@cs, + "Object Type"@en ; + skos:broader ufo:type . + +ufo:relator a skos:Concept ; + skos:prefLabel "Vztah"@cs, + "Relator"@en ; + skos:broader ufo:individual . + +ufo:relator-type a skos:Concept ; + skos:prefLabel "Typ vztahu"@cs, + "Relation"@en ; + skos:broader ufo:type .