diff --git a/pom.xml.releaseBackup b/pom.xml.releaseBackup new file mode 100644 index 000000000..fe73cc552 --- /dev/null +++ b/pom.xml.releaseBackup @@ -0,0 +1,852 @@ + + + 4.0.0 + + + archetype + it.cnr.si + 1.0.7 + + + it.cnr.si.flows + sprint-flows + 0.3.0-SNAPSHOT + war + + + sprint-flows + + + 3.0.0 + + + + scm:git:ssh://git@git.si.cnr.it/dev/sprint-flows.git + scm:git:ssh://git@git.si.cnr.it/dev/sprint-flows.git + HEAD + + + + 2.3.3 + 5.22.0 + 3.5.2 + 9.7.0 + 1.11 + 2.1.7 + 0.7.7.201606060606 + 2.9 + 6.6.0 + 2.2.0 + 3.5 + 3.4.2 + 1.0.0.Final + 1.4.1 + 3.0.1 + 3.0.0 + yyyyMMddHHmmss + + + 3.0.2 + 2.5.0 + 1.4.0.RELEASE + 4.1.1.RELEASE + 4.3.2.RELEASE + 2.0.1 + it.cnr.si.FlowsApp + 0.0.6 + + + + + + com.github.ralfstuckert.pdfbox-layout + pdfbox1-layout + 0.8.1 + + + com.opencsv + opencsv + 3.9 + + + org.apache.pdfbox + pdfbox + 1.8.12 + + + org.apache.poi + poi + 3.6 + + + org.json + json + 20160810 + + + org.slf4j + slf4j-api + 1.7.21 + + + org.springframework + spring-context + ${spring.version} + + + org.springframework + spring-core + ${spring.version} + + + org.springframework + spring-tx + ${spring.version} + + + org.springframework + spring-web + ${spring.version} + + + org.springframework + spring-webmvc + ${spring.version} + + + org.springframework.security + spring-security-config + ${spring.security.version} + + + org.springframework.security + spring-security-core + ${spring.security.version} + + + org.springframework.security + spring-security-data + ${spring.security.version} + + + org.springframework.security + spring-security-ldap + ${spring.security.version} + + + org.springframework.security + spring-security-web + ${spring.security.version} + + + org.thymeleaf + thymeleaf-spring4 + 3.0.6.RELEASE + + + + + + + com.github.ralfstuckert.pdfbox-layout + pdfbox1-layout + 0.8.1 + + + com.lowagie + itext + 2.1.7.js2 + + + + com.opencsv + opencsv + 3.9 + + + + + io.github.openfeign + feign-core + ${feign.version} + + + io.github.openfeign + feign-gson + ${feign.version} + + + io.github.openfeign.form + feign-form + 3.3.0 + + + + it.cnr + jada-ejb3 + ${jada.version} + + + persistence-api + javax.persistence + + + + + it.cnr.commons + firmadigitale + ${firmadigitale.version} + + + + it.cnr.si + ace-client + ${ace-client.version} + + + + it.cnr.si + storage-cloud-cmis + ${storage-cloud-cmis.version} + + + it.cnr.si + storage-cloud-commons + ${storage-cloud-cmis.version} + + + it.cnr.si.sprint + sprint-core + ${sprint.version} + + + json + org.apache.geronimo.bundles + + + + + it.cnr.si.sprint + sprint-ldap + ${sprint.version} + + + net.dongliu + gson-java8-datatype + 1.1.0 + + + net.sf.jasperreports + jasperreports + ${jasperreports.version} + + + xml-apis + xml-apis + + + jackson-databind + com.fasterxml.jackson.core + + + jackson-core + com.fasterxml.jackson.core + + + jackson-annotations + com.fasterxml.jackson.core + + + castor + org.codehaus.castor + + + jdtcore + eclipse + + + com.lowagie + itext + + + org.olap4j + olap4j + + + + + net.sf.jasperreports + jasperreports-fonts + 6.0.0 + + + org.activiti + activiti-spring-boot-starter-actuator + ${activiti.version} + + + + org.activiti + activiti-spring-boot-starter-basic + ${activiti.version} + + + + org.activiti + activiti-spring-boot-starter-rest-api + ${activiti.version} + + + + org.apache.pdfbox + pdfbox + 1.8.12 + + + org.apache.poi + poi + 3.6 + + + org.apache.tika + tika-core + 1.13 + + + org.codehaus.groovy + groovy + 2.4.3 + compile + + + org.json + json + 20160810 + + + org.jsoup + jsoup + 1.8.2 + + + org.olap4j + olap4j + 1.2.0 + + + org.projectlombok + lombok + 1.18.0 + provided + + + org.springframework.boot + spring-boot-starter-test + ${spring-boot.version} + test + + + org.thymeleaf + thymeleaf-spring4 + 3.0.6.RELEASE + + + + + spring-boot:run + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + org.jacoco + jacoco-maven-plugin + ${jacoco-maven-plugin.version} + + prepare-agent + + + + + + + + + com.github.eirslett + frontend-maven-plugin + ${frontend-maven-plugin.version} + + install-node-and-npm + npm + bower + gulp + + + + + + + + + + + + + org.springframework.boot + spring-boot-maven-plugin + ${spring-boot.version} + + + + repackage + + + ${start-class} + + + + + ${start-class} + + + + + + + com.github.ekryd.sortpom + sortpom-maven-plugin + ${sortpom-maven-plugin.version} + + + verify + + sort + + + + + true + 4 + groupId,artifactId + groupId,artifactId + true + false + + + + com.spotify + docker-maven-plugin + 0.4.10 + + sprint + src/main/docker + + + / + ${project.build.directory} + ${project.build.finalName}.war + + + + + + io.gatling + gatling-maven-plugin + ${gatling-maven-plugin.version} + + src/test/gatling/conf + src/test/gatling/data + target/gatling/results + src/test/gatling/bodies + src/test/gatling/simulations + + * + + + + org.apache.maven.plugins + maven-eclipse-plugin + 2.10 + + true + true + + + + org.apache.maven.plugins + maven-enforcer-plugin + ${maven-enforcer-plugin.version} + + + enforce-versions + + enforce + + + + + + + You are running an older version of + Maven. + JHipster requires at least Maven + 3.0 + [3.0.0,) + + + You are running an older version of + Java. + JHipster requires at least JDK + ${java.version} + [${java.version}.0,) + + + + + + org.apache.maven.plugins + maven-resources-plugin + ${maven-resources-plugin.version} + + + default-resources + validate + + copy-resources + + + target/classes + false + + # + + + + src/main/resources/ + true + + **/*.xml + **/*.yml + + + + src/main/resources/ + false + + **/*.xml + **/*.yml + + + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.12.4 + + -Djava.security.egd=file:/dev/./urandom + -Xmx256m + ${surefireArgLine} + + alphabetical + + + + org.bsc.maven + maven-processor-plugin + 2.2.4 + + + process + generate-sources + + process + + + + + + org.mapstruct + mapstruct-processor + ${mapstruct.version} + + + + ${project.build.directory}/generated-sources + + org.mapstruct.ap.MappingProcessor + + + true + spring + + + + + + + org.jacoco + jacoco-maven-plugin + ${jacoco-maven-plugin.version} + + + pre-unit-tests + + prepare-agent + + + + ${project.testresult.directory}/coverage/jacoco/jacoco.exec + + surefireArgLine + + + + + post-unit-test + test + + report + + + ${project.testresult.directory}/coverage/jacoco/jacoco.exec + ${project.testresult.directory}/coverage/jacoco + + + + + + org.liquibase + liquibase-maven-plugin + ${liquibase.version} + + + org.javassist + javassist + 3.18.2-GA + + + org.liquibase.ext + liquibase-hibernate4 + ${liquibase-hibernate4.version} + + + org.springframework.boot + spring-boot-starter-data-jpa + ${spring-boot.version} + + + + src/main/resources/config/liquibase/master.xml + src/main/resources/config/liquibase/changelog/${maven.build.timestamp}_changelog.xml + + public + + + + + + flows + + + jdbc:h2:file:./DB-H2/flows-oiv;DB_CLOSE_DELAY=-1 + hibernate:spring:it.cnr.si.domain?dialect=&hibernate.ejb.naming_strategy=org.springframework.boot.orm.jpa.hibernate.SpringNamingStrategy + true + debug + oauth_access_token, + oauth_approvals, + oauth_client_details, + oauth_client_token, + oauth_code, + oauth_refresh_token + + + + org.sonarsource.scanner.maven + sonar-maven-plugin + ${sonar-maven-plugin.version} + + + org.springframework.boot + spring-boot-maven-plugin + + true + + + + + + + + + no-liquibase + + ,no-liquibase + + + + swagger + + ,swagger + + + + dev + + true + + + + + org.apache.maven.plugins + maven-war-plugin + ${maven-war-plugin.version} + + src/main/webapp/ + WEB-INF/lib/tomcat-*.jar + + + + + + + DEBUG + + dev${profile.no-liquibase} + + + + org.springframework.boot + spring-boot-devtools + ${spring-boot.version} + true + + + org.springframework.boot + spring-boot-starter-tomcat + ${spring-boot.version} + + + + + prod + + + + com.github.eirslett + frontend-maven-plugin + 1.0 + + + install node and npm + + install-node-and-npm + + + v6.17.1 + 3.10.5 + + + + npm install + + npm + + + install + + + + bower install + + bower + + + install --allow-root --no-color + + + + gulp build + + gulp + + + build --no-notification + + + + gulp test + test + + gulp + + + test --no-notification + + + + + + maven-clean-plugin + 2.5 + + + + target/www/ + + + + + + org.apache.maven.plugins + maven-war-plugin + ${maven-war-plugin.version} + + false + target/www/ + WEB-INF/lib/tomcat-*.jar + + + + org.springframework.boot + spring-boot-maven-plugin + ${spring-boot.version} + + true + + + + + + + INFO + + prod${profile.swagger}${profile.no-liquibase} + + + + org.springframework.boot + spring-boot-starter-tomcat + ${spring-boot.version} + + + + + diff --git a/release.properties b/release.properties new file mode 100644 index 000000000..085b040f8 --- /dev/null +++ b/release.properties @@ -0,0 +1,18 @@ +#release configuration +#Thu Jun 06 11:50:46 CEST 2019 +project.scm.it.cnr.si.flows\:sprint-flows.tag=HEAD +project.scm.it.cnr.si.flows\:sprint-flows.connection=scm\:git\:ssh\://git@git.si.cnr.it/dev/sprint-flows.git +scm.tagNameFormat=@{project.version} +scm.tag=0.3.0 +pushChanges=false +scm.url=scm\:git\:ssh\://git@git.si.cnr.it/dev/sprint-flows.git +preparationGoals=clean verify +project.scm.it.cnr.si.flows\:sprint-flows.developerConnection=scm\:git\:ssh\://git@git.si.cnr.it/dev/sprint-flows.git +remoteTagging=true +projectVersionPolicyId=default +scm.commentPrefix=[maven-release-plugin] +project.dev.it.cnr.si.flows\:sprint-flows=0.3.1-SNAPSHOT +exec.snapshotReleasePluginAllowed=false +exec.additionalArguments=-P nexus,prod +completedPhase=generate-release-poms +project.rel.it.cnr.si.flows\:sprint-flows=0.3.0 diff --git a/src/main/java/it/cnr/si/domain/enumeration/ExternalApplication.java b/src/main/java/it/cnr/si/domain/enumeration/ExternalApplication.java new file mode 100644 index 000000000..a36210f8b --- /dev/null +++ b/src/main/java/it/cnr/si/domain/enumeration/ExternalApplication.java @@ -0,0 +1,34 @@ +package it.cnr.si.domain.enumeration; + +import org.springframework.http.ResponseEntity; +import org.springframework.security.oauth2.client.DefaultOAuth2ClientContext; +import org.springframework.security.oauth2.client.OAuth2RestTemplate; +import org.springframework.security.oauth2.client.token.grant.password.ResourceOwnerPasswordResourceDetails; +import org.springframework.web.client.RestTemplate; + +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +/** + * The ExternalApplication enumeration. + */ +public enum ExternalApplication { + ABIL, + SIGLA, + ACE, + MISSIONI, + ATTESTATI, + GENERIC; + + private RestTemplate template; + public void setTemplate(RestTemplate template) { + this.template = template; + } + public RestTemplate getTemplate() { + if (this.template != null) + return this.template; + else + throw new IllegalStateException("RestTemplate assente per l'aplpication "+ this.name()); + } +} diff --git a/src/main/resources/config/liquibase/changelog/20190320102314_added_entity_ExternalMessage.xml b/src/main/resources/config/liquibase/changelog/20190320102314_added_entity_ExternalMessage.xml new file mode 100644 index 000000000..fac300323 --- /dev/null +++ b/src/main/resources/config/liquibase/changelog/20190320102314_added_entity_ExternalMessage.xml @@ -0,0 +1,56 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/webapp/i18n/en/externalApplication.json b/src/main/webapp/i18n/en/externalApplication.json new file mode 100644 index 000000000..bbdc4c4c2 --- /dev/null +++ b/src/main/webapp/i18n/en/externalApplication.json @@ -0,0 +1,13 @@ +{ + "sprintApp": { + "ExternalApplication" : { + "null": "", + "ABIL": "ABIL", + "SIGLA": "SIGLA", + "ACE": "ACE", + "MISSIONI": "MISSIONI", + "ATTESTATI": "ATTESTATI", + "GENERIC": "GENERIC" + } + } +} diff --git a/src/main/webapp/i18n/it/externalApplication.json b/src/main/webapp/i18n/it/externalApplication.json new file mode 100644 index 000000000..bbdc4c4c2 --- /dev/null +++ b/src/main/webapp/i18n/it/externalApplication.json @@ -0,0 +1,13 @@ +{ + "sprintApp": { + "ExternalApplication" : { + "null": "", + "ABIL": "ABIL", + "SIGLA": "SIGLA", + "ACE": "ACE", + "MISSIONI": "MISSIONI", + "ATTESTATI": "ATTESTATI", + "GENERIC": "GENERIC" + } + } +}