@cronapp/templates 2.9.5 → 2.9.6-SP.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/file/crud/angular_crud_input/__FileName__.view.html.ftl +63 -0
- package/file/crud/angular_crud_input/template.properties +4 -0
- package/file/crud/angular_crud_input/template_en_US.properties +1 -0
- package/file/crud/phonegap_crud_input/__FileName__.view.html.ftl +122 -0
- package/file/crud/phonegap_crud_input/template.properties +4 -0
- package/file/crud/phonegap_crud_input/template_en_US.properties +1 -0
- package/file/report/Blank/Blank.png +0 -0
- package/file/report/Blank/__FileName__.report.ftl +44 -0
- package/file/report/Blank/template.properties +6 -0
- package/file/report/Blank/template_pt_BR.properties +2 -0
- package/file/report/CrossTabWithDetailing/CrossTabWithDetailing.png +0 -0
- package/file/report/CrossTabWithDetailing/__FileName__.report.ftl +1900 -0
- package/file/report/CrossTabWithDetailing/template.properties +6 -0
- package/file/report/CrossTabWithDetailing/template_pt_BR.properties +2 -0
- package/file/report/Indicators/Indicators.png +0 -0
- package/file/report/Indicators/__FileName__.report.ftl +2074 -0
- package/file/report/Indicators/template.properties +6 -0
- package/file/report/Indicators/template_pt_BR.properties +2 -0
- package/file/report/InsuranceWithSelectingCountry/InsuranceWithSelectingCountry.png +0 -0
- package/file/report/InsuranceWithSelectingCountry/__FileName__.report.ftl +1875 -0
- package/file/report/InsuranceWithSelectingCountry/template.properties +6 -0
- package/file/report/InsuranceWithSelectingCountry/template_pt_BR.properties +2 -0
- package/file/report/InvoiceQuotation/InvoiceQuotation.png +0 -0
- package/file/report/InvoiceQuotation/__FileName__.report.ftl +900 -0
- package/file/report/InvoiceQuotation/template.properties +6 -0
- package/file/report/InvoiceQuotation/template_pt_BR.properties +2 -0
- package/file/report/InvoiceSoftware/InvoiceSoftware.png +0 -0
- package/file/report/InvoiceSoftware/__FileName__.report.ftl +665 -0
- package/file/report/InvoiceSoftware/template.properties +6 -0
- package/file/report/InvoiceSoftware/template_pt_BR.properties +2 -0
- package/file/report/Labels/Labels.png +0 -0
- package/file/report/Labels/__FileName__.report.ftl +675 -0
- package/file/report/Labels/template.properties +6 -0
- package/file/report/Labels/template_pt_BR.properties +2 -0
- package/file/report/MasterDetail/MasterDetail.png +0 -0
- package/file/report/MasterDetail/__FileName__.report.ftl +816 -0
- package/file/report/MasterDetail/template.properties +6 -0
- package/file/report/MasterDetail/template_pt_BR.properties +2 -0
- package/file/report/MultiColumnList/MultiColumnList.png +0 -0
- package/file/report/MultiColumnList/__FileName__.report.ftl +536 -0
- package/file/report/MultiColumnList/template.properties +6 -0
- package/file/report/MultiColumnList/template_pt_BR.properties +2 -0
- package/file/report/PurchaseOrder/PurchaseOrder.png +0 -0
- package/file/report/PurchaseOrder/__FileName__.report.ftl +1541 -0
- package/file/report/PurchaseOrder/template.properties +6 -0
- package/file/report/PurchaseOrder/template_pt_BR.properties +2 -0
- package/file/report/SimpleGroup/SimpleGroup.png +0 -0
- package/file/report/SimpleGroup/__FileName__.report.ftl +697 -0
- package/file/report/SimpleGroup/template.properties +6 -0
- package/file/report/SimpleGroup/template_pt_BR.properties +2 -0
- package/file/report/Tree/Tree.png +0 -0
- package/file/report/Tree/__FileName__.report.ftl +525 -0
- package/file/report/Tree/template.properties +6 -0
- package/file/report/Tree/template_pt_BR.properties +2 -0
- package/file/report/TreeWithHeadersAndFooters/TreeWithHeadersAndFooters.png +0 -0
- package/file/report/TreeWithHeadersAndFooters/__FileName__.report.ftl +698 -0
- package/file/report/TreeWithHeadersAndFooters/template.properties +6 -0
- package/file/report/TreeWithHeadersAndFooters/template_pt_BR.properties +2 -0
- package/file/report/TwoMastersOnOneDetail/TwoMastersOnOneDetail.png +0 -0
- package/file/report/TwoMastersOnOneDetail/__FileName__.report.ftl +1297 -0
- package/file/report/TwoMastersOnOneDetail/template.properties +6 -0
- package/file/report/TwoMastersOnOneDetail/template_pt_BR.properties +2 -0
- package/file/report/group.properties +6 -0
- package/file/report/report.png +0 -0
- package/package.json +1 -1
- package/project/M/cronapp-lyceum-project-mobile-cordova/template.properties +4 -1
- package/project/M/cronapp-lyceum-project-mobile-cordova/template_en_US.properties +2 -0
- package/project/M/cronapp-lyceum-project-mobile-cordova/template_pt_BR.properties +2 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-autenticacao/views/logged/user.view.html +6 -3
- package/project/M/cronapp-rad-project-mobile-cordova/template.properties +3 -1
- package/project/M/cronapp-rad-project-mobile-cordova/template_en_US.properties +3 -1
- package/project/M/cronapp-rad-project-mobile-cordova/template_pt_BR.properties +3 -1
- package/project/S/business-service/src/main/java/META-INF/authorities.json.ftl +26 -0
- package/project/S/business-service/template.properties +6 -3
- package/project/S/business-service/template_en_US.properties +1 -2
- package/project/S/business-service/template_pt_BR.properties +1 -1
- package/project/S/data-service/README.md +24 -0
- package/project/S/data-service/__linksInherit +1 -0
- package/project/S/data-service/config/context.xml.ftl +27 -0
- package/project/S/data-service/diagram/app.umlcd +233 -0
- package/project/S/data-service/project.svg +116 -0
- package/project/S/data-service/src/main/java/META-INF/persistence.xml.ftl +26 -0
- package/project/S/data-service/src/main/java/app/AppConfiguration.java +63 -0
- package/project/S/data-service/src/main/java/app/dao/SampleDAO.java +24 -0
- package/project/S/data-service/src/main/java/app/entity/Sample.java +112 -0
- package/project/S/data-service/template.properties +81 -0
- package/project/S/data-service/template_en_US.properties +4 -0
- package/project/S/data-service/template_pt_BR.properties +4 -0
- package/project/W/cronapp-rad-project/__copydata.ftl +1 -1
- package/project/W/cronapp-rad-project/config/__copydata.ftl +1 -1
- package/project/W/cronapp-rad-project/config/app.config.ftl +1 -1
- package/project/W/cronapp-rad-project/diagram/app.umlcd +1 -1
- package/project/W/cronapp-rad-project/diagram/app.umlcd.ftl +1 -1
- package/project/W/cronapp-rad-project/pom.xml.ftl +1 -46
- package/project/W/cronapp-rad-project/src/main/__copydata.ftl +2 -2
- package/project/W/cronapp-rad-project/src/main/java/META-INF/__copydata.ftl +2 -2
- package/project/W/cronapp-rad-project/src/main/java/META-INF/customQuery.json.ftl +1 -1
- package/project/W/cronapp-rad-project/src/main/java/META-INF/datasources/__copydata.ftl +2 -2
- package/project/W/cronapp-rad-project/src/main/java/META-INF/persistence.xml.ftl +1 -1
- package/project/W/cronapp-rad-project/src/main/java/SpringBootMain.java.ftl +2 -2
- package/project/W/cronapp-rad-project/src/main/java/__copydata.ftl +2 -2
- package/project/W/cronapp-rad-project/src/main/java/app/AppConfiguration.java.ftl +1 -1
- package/project/W/cronapp-rad-project/src/main/java/app/__copydata.ftl +1 -1
- package/project/W/cronapp-rad-project/src/main/java/app/dao/__copydata.ftl +1 -1
- package/project/W/cronapp-rad-project/src/main/java/app/entity/AuditLog.java +1 -1
- package/project/W/cronapp-rad-project/src/main/java/app/entity/__copydata.ftl +1 -1
- package/project/W/cronapp-rad-project/src/main/java/app/populate.json.ftl +1 -5
- package/project/W/cronapp-rad-project/src/main/java/blockly/__copydata.ftl +1 -1
- package/project/W/cronapp-rad-project/src/main/resources/__copydata.ftl +2 -2
- package/project/W/cronapp-rad-project/src/main/resources/application.properties.ftl +1 -1
- package/project/W/cronapp-rad-project/src/main/resources/templates/__copydata.ftl +4 -0
- package/project/W/cronapp-rad-project/src/main/webapp-autenticacao/webapp/views/logged/home.view.html.ftl +6 -15
- package/project/W/cronapp-rad-project/template.properties +4 -3
- package/project/W/cronapp-rad-project/template_en_US.properties +3 -2
- package/project/W/cronapp-rad-project/template_pt_BR.properties +3 -2
- package/templates/low-code/data-layer/RESTWebService.ftl +28 -23
- /package/templates/low-code/{krypton-thumb.png → krypton.png} +0 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
package app;
|
|
2
|
+
|
|
3
|
+
import org.springframework.orm.jpa.*;
|
|
4
|
+
import org.springframework.context.annotation.*;
|
|
5
|
+
import org.springframework.data.jpa.repository.config.*;
|
|
6
|
+
import org.springframework.transaction.*;
|
|
7
|
+
import org.springframework.transaction.annotation.*;
|
|
8
|
+
import org.springframework.core.io.*;
|
|
9
|
+
import org.springframework.data.repository.init.*;
|
|
10
|
+
import java.net.URL;
|
|
11
|
+
import java.io.File;
|
|
12
|
+
import java.util.Scanner;
|
|
13
|
+
import java.util.regex.Pattern;
|
|
14
|
+
|
|
15
|
+
@Configuration
|
|
16
|
+
@EnableTransactionManagement
|
|
17
|
+
@EnableJpaRepositories(
|
|
18
|
+
entityManagerFactoryRef = "app-EntityManagerFactory",
|
|
19
|
+
transactionManagerRef = "app-TransactionManager"
|
|
20
|
+
)
|
|
21
|
+
public class AppConfiguration {
|
|
22
|
+
|
|
23
|
+
@Primary
|
|
24
|
+
@Bean(name="app-EntityManagerFactory")
|
|
25
|
+
public LocalEntityManagerFactoryBean entityManagerFactory() {
|
|
26
|
+
LocalEntityManagerFactoryBean factoryBean = new LocalEntityManagerFactoryBean();
|
|
27
|
+
factoryBean.setPersistenceUnitName("app");
|
|
28
|
+
return factoryBean;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@Primary
|
|
32
|
+
@Bean(name = "app-TransactionManager")
|
|
33
|
+
public PlatformTransactionManager transactionManager() {
|
|
34
|
+
return new JpaTransactionManager(entityManagerFactory().getObject());
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@Bean
|
|
38
|
+
public Jackson2RepositoryPopulatorFactoryBean repositoryPopulator() {
|
|
39
|
+
|
|
40
|
+
Jackson2RepositoryPopulatorFactoryBean factory = new Jackson2RepositoryPopulatorFactoryBean();
|
|
41
|
+
URL url = this.getClass().getClassLoader().getResource("app//populate.json");
|
|
42
|
+
|
|
43
|
+
String strJSON = "[]";
|
|
44
|
+
if (url != null) {
|
|
45
|
+
File file = new File(url.getFile());
|
|
46
|
+
|
|
47
|
+
try {
|
|
48
|
+
Scanner scanner = new Scanner(file);
|
|
49
|
+
strJSON = scanner.useDelimiter("\\A").next();
|
|
50
|
+
scanner.close();
|
|
51
|
+
|
|
52
|
+
strJSON = strJSON.replaceAll(Pattern.quote("{{ROLE_ADMIN_NAME}}"), "Administrators");
|
|
53
|
+
} catch (Exception e) {
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
Resource sourceData = new InputStreamResource(new java.io.ByteArrayInputStream(strJSON.getBytes()));
|
|
58
|
+
factory.setResources(new Resource[] { sourceData });
|
|
59
|
+
|
|
60
|
+
return factory;
|
|
61
|
+
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
package app.dao;
|
|
2
|
+
|
|
3
|
+
import app.entity.*;
|
|
4
|
+
import java.util.*;
|
|
5
|
+
import org.springframework.stereotype.*;
|
|
6
|
+
import org.springframework.data.jpa.repository.*;
|
|
7
|
+
import org.springframework.data.domain.*;
|
|
8
|
+
import org.springframework.data.repository.query.*;
|
|
9
|
+
import org.springframework.transaction.annotation.*;
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Realiza operação de Create, Read, Update e Delete no banco de dados.
|
|
14
|
+
* Os métodos de create, edit, delete e outros estão abstraídos no JpaRepository
|
|
15
|
+
*
|
|
16
|
+
* @see org.springframework.data.jpa.repository.JpaRepository
|
|
17
|
+
*
|
|
18
|
+
* @generated
|
|
19
|
+
*/
|
|
20
|
+
@Repository("app-SampleDAO")
|
|
21
|
+
@Transactional(transactionManager="app-TransactionManager")
|
|
22
|
+
public interface SampleDAO extends JpaRepository<Sample, java.lang.String> {
|
|
23
|
+
|
|
24
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
|
|
2
|
+
package app.entity;
|
|
3
|
+
|
|
4
|
+
import java.io.*;
|
|
5
|
+
import javax.persistence.*;
|
|
6
|
+
import java.util.*;
|
|
7
|
+
import javax.xml.bind.annotation.*;
|
|
8
|
+
import com.fasterxml.jackson.annotation.JsonIgnore;
|
|
9
|
+
import com.fasterxml.jackson.annotation.JsonFilter;
|
|
10
|
+
import cronapi.rest.security.CronappSecurity;
|
|
11
|
+
import cronapi.swagger.CronappSwagger;
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Classe que representa a tabela sample
|
|
16
|
+
* @generated
|
|
17
|
+
*/
|
|
18
|
+
@javax.persistence.Entity
|
|
19
|
+
@javax.persistence.Table(name = "\"sample\"")
|
|
20
|
+
@XmlRootElement
|
|
21
|
+
@CronappSecurity
|
|
22
|
+
@JsonFilter("app.entity.Sample")
|
|
23
|
+
public class Sample implements Serializable {
|
|
24
|
+
/**
|
|
25
|
+
* UID da classe, necessário na serialização
|
|
26
|
+
* @generated
|
|
27
|
+
*/
|
|
28
|
+
private static final long serialVersionUID = 1L;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @generated
|
|
32
|
+
*/
|
|
33
|
+
@Id
|
|
34
|
+
@Column(name = "id", nullable = false, insertable=true, updatable=true)
|
|
35
|
+
private java.lang.String id = UUID.randomUUID().toString().toUpperCase();
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @generated
|
|
40
|
+
*/
|
|
41
|
+
@Column(name = "name", nullable = true, unique = false, insertable=true, updatable=true)
|
|
42
|
+
|
|
43
|
+
private java.lang.String name;
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Construtor
|
|
48
|
+
* @generated
|
|
49
|
+
*/
|
|
50
|
+
public Sample(){
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Obtém id
|
|
55
|
+
* return id
|
|
56
|
+
* @generated
|
|
57
|
+
*/
|
|
58
|
+
public java.lang.String getId() {
|
|
59
|
+
return this.id;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Define id
|
|
64
|
+
* @param id id
|
|
65
|
+
* @generated
|
|
66
|
+
*/
|
|
67
|
+
public Sample setId(java.lang.String id) {
|
|
68
|
+
this.id = id;
|
|
69
|
+
return this;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Obtém name
|
|
73
|
+
* return name
|
|
74
|
+
* @generated
|
|
75
|
+
*/
|
|
76
|
+
public java.lang.String getName() {
|
|
77
|
+
return this.name;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Define name
|
|
82
|
+
* @param name name
|
|
83
|
+
* @generated
|
|
84
|
+
*/
|
|
85
|
+
public Sample setName(java.lang.String name) {
|
|
86
|
+
this.name = name;
|
|
87
|
+
return this;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* @generated
|
|
92
|
+
*/
|
|
93
|
+
@Override
|
|
94
|
+
public boolean equals(Object obj) {
|
|
95
|
+
if (this == obj) return true;
|
|
96
|
+
if (obj == null || getClass() != obj.getClass()) return false;
|
|
97
|
+
Sample object = (Sample)obj;
|
|
98
|
+
if (id != null ? !id.equals(object.id) : object.id != null) return false;
|
|
99
|
+
return true;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* @generated
|
|
104
|
+
*/
|
|
105
|
+
@Override
|
|
106
|
+
public int hashCode() {
|
|
107
|
+
int result = 1;
|
|
108
|
+
result = 31 * result + ((id == null) ? 0 : id.hashCode());
|
|
109
|
+
return result;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
icon=project.svg
|
|
2
|
+
name=Data Service
|
|
3
|
+
description=Data Service Description
|
|
4
|
+
encoding=UTF-8
|
|
5
|
+
template=low-code
|
|
6
|
+
mimetype.src=folder/regular
|
|
7
|
+
mimetype.src.main.java=folder/src
|
|
8
|
+
mimetype.src.main.resources=folder/src
|
|
9
|
+
mimetype.src.test.java=folder/src
|
|
10
|
+
mimetype.config=folder/servercontext
|
|
11
|
+
planTypes=techne,cronapp
|
|
12
|
+
template.id=data-service
|
|
13
|
+
|
|
14
|
+
parameter.hidden.frontend=false
|
|
15
|
+
parameter.hidden.backend=true
|
|
16
|
+
parameter.hidden.service=true
|
|
17
|
+
parameter.hidden.businessService=true
|
|
18
|
+
parameter.hidden.dataService=true
|
|
19
|
+
|
|
20
|
+
bower.required=cronapp-common-js;cronapp-lib-js
|
|
21
|
+
maven.required=olingo-odata2-jpa-processor-core;cronapp-compile-plugin
|
|
22
|
+
|
|
23
|
+
maven.parent.artifactId=spring-boot-starter-parent
|
|
24
|
+
maven.parent.groupId=org.springframework.boot
|
|
25
|
+
maven.parent.version=2.0.1.RELEASE
|
|
26
|
+
|
|
27
|
+
maven.dependencies.resolve=true
|
|
28
|
+
|
|
29
|
+
maven.dependecies.new.dependency.1.name=spring-boot-starter
|
|
30
|
+
maven.dependecies.new.dependency.1.groupId=org.springframework.boot
|
|
31
|
+
maven.dependecies.new.dependency.1.artifactId=spring-boot-starter
|
|
32
|
+
maven.dependecies.new.dependency.1.version=2.0.1.RELEASE
|
|
33
|
+
|
|
34
|
+
maven.dependecies.new.dependency.2.name=spring-boot-starter-test
|
|
35
|
+
maven.dependecies.new.dependency.2.groupId=org.springframework.boot
|
|
36
|
+
maven.dependecies.new.dependency.2.artifactId=spring-boot-starter-test
|
|
37
|
+
maven.dependecies.new.dependency.2.version=2.0.1.RELEASE
|
|
38
|
+
|
|
39
|
+
maven.dependecies.new.dependency.3.name=spring-boot-starter-data-jpa
|
|
40
|
+
maven.dependecies.new.dependency.3.groupId=org.springframework.boot
|
|
41
|
+
maven.dependecies.new.dependency.3.artifactId=spring-boot-starter-data-jpa
|
|
42
|
+
maven.dependecies.new.dependency.3.version=2.0.1.RELEASE
|
|
43
|
+
|
|
44
|
+
maven.dependecies.new.dependency.4.name=spring-boot-starter-web
|
|
45
|
+
maven.dependecies.new.dependency.4.groupId=org.springframework.boot
|
|
46
|
+
maven.dependecies.new.dependency.4.artifactId=spring-boot-starter-web
|
|
47
|
+
maven.dependecies.new.dependency.4.version=2.0.1.RELEASE
|
|
48
|
+
|
|
49
|
+
maven.dependecies.new.dependency.6.name=spring-boot-starter-tomcat
|
|
50
|
+
maven.dependecies.new.dependency.6.groupId=org.springframework.boot
|
|
51
|
+
maven.dependecies.new.dependency.6.artifactId=spring-boot-starter-tomcat
|
|
52
|
+
maven.dependecies.new.dependency.6.scope=provided
|
|
53
|
+
maven.dependecies.new.dependency.6.version=2.0.1.RELEASE
|
|
54
|
+
|
|
55
|
+
maven.dependecies.new.dependency.7.name=com.h2database
|
|
56
|
+
maven.dependecies.new.dependency.7.groupId=com.h2database
|
|
57
|
+
maven.dependecies.new.dependency.7.artifactId=h2
|
|
58
|
+
maven.dependecies.new.dependency.7.version=1.4.197
|
|
59
|
+
|
|
60
|
+
maven.dependecies.new.dependency.8.name=eclipselink
|
|
61
|
+
maven.dependecies.new.dependency.8.groupId=org.eclipse.persistence
|
|
62
|
+
maven.dependecies.new.dependency.8.artifactId=eclipselink
|
|
63
|
+
maven.dependecies.new.dependency.8.version=2.5.2
|
|
64
|
+
|
|
65
|
+
maven.dependecies.new.dependency.9.name=mysql-connector-java
|
|
66
|
+
maven.dependecies.new.dependency.9.groupId=mysql
|
|
67
|
+
maven.dependecies.new.dependency.9.artifactId=mysql-connector-java
|
|
68
|
+
maven.dependecies.new.dependency.9.version=5.1.39
|
|
69
|
+
maven.dependecies.new.dependency.9.scope=runtime
|
|
70
|
+
|
|
71
|
+
maven.dependecies.new.dependency.10.name=spring-boot-starter-security
|
|
72
|
+
maven.dependecies.new.dependency.10.groupId=org.springframework.boot
|
|
73
|
+
maven.dependecies.new.dependency.10.artifactId=spring-boot-starter-security
|
|
74
|
+
maven.dependecies.new.dependency.10.version=1.3.5.RELEASE
|
|
75
|
+
maven.dependecies.new.dependency.10.scope=provided
|
|
76
|
+
|
|
77
|
+
features=eclipselink|jpa|maven|springboot
|
|
78
|
+
authenticationTypes=Token
|
|
79
|
+
|
|
80
|
+
parameter.page.1.string.0.appid=${generateAppId}
|
|
81
|
+
parameter.page.1.list.1.authentication=Token
|
|
@@ -49,51 +49,6 @@
|
|
|
49
49
|
<groupId>org.springframework.boot</groupId>
|
|
50
50
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
51
51
|
</plugin>
|
|
52
|
-
</#if>
|
|
53
|
-
<#if (((frontend??) && (frontend?lower_case) == "true") || (isMobileProject))>
|
|
54
|
-
<plugin>
|
|
55
|
-
<groupId>org.codehaus.mojo</groupId>
|
|
56
|
-
<artifactId>exec-maven-plugin</artifactId>
|
|
57
|
-
<version>1.6.0</version>
|
|
58
|
-
<executions>
|
|
59
|
-
<#if ((frontend??) && (frontend?lower_case) == "true")>
|
|
60
|
-
<execution>
|
|
61
|
-
<id>npm-install-web</id>
|
|
62
|
-
<phase>generate-resources</phase>
|
|
63
|
-
<goals>
|
|
64
|
-
<goal>exec</goal>
|
|
65
|
-
</goals>
|
|
66
|
-
<configuration>
|
|
67
|
-
<skip>false</skip>
|
|
68
|
-
<executable>bash</executable>
|
|
69
|
-
<arguments>
|
|
70
|
-
<argument>-c</argument>
|
|
71
|
-
<argument>npm install</argument>
|
|
72
|
-
</arguments>
|
|
73
|
-
<workingDirectory>src/main/webapp</workingDirectory>
|
|
74
|
-
</configuration>
|
|
75
|
-
</execution>
|
|
76
|
-
</#if>
|
|
77
|
-
<#if (isMobileProject)>
|
|
78
|
-
<execution>
|
|
79
|
-
<id>npm-install-mobile</id>
|
|
80
|
-
<phase>generate-resources</phase>
|
|
81
|
-
<goals>
|
|
82
|
-
<goal>exec</goal>
|
|
83
|
-
</goals>
|
|
84
|
-
<configuration>
|
|
85
|
-
<skip>false</skip>
|
|
86
|
-
<executable>bash</executable>
|
|
87
|
-
<arguments>
|
|
88
|
-
<argument>-c</argument>
|
|
89
|
-
<argument>npm install</argument>
|
|
90
|
-
</arguments>
|
|
91
|
-
<workingDirectory>src/main/mobileapp/www</workingDirectory>
|
|
92
|
-
</configuration>
|
|
93
|
-
</execution>
|
|
94
|
-
</#if>
|
|
95
|
-
</executions>
|
|
96
|
-
</plugin>
|
|
97
52
|
</#if>
|
|
98
53
|
<plugin>
|
|
99
54
|
<groupId>io.cronapp</groupId>
|
|
@@ -205,7 +160,7 @@
|
|
|
205
160
|
<project.cronospass.resource mimetype="folder/src">src/main/java</project.cronospass.resource>
|
|
206
161
|
<project.cronospass.resource mimetype="folder/src">src/main/resources</project.cronospass.resource>
|
|
207
162
|
</#if>
|
|
208
|
-
<#if !
|
|
163
|
+
<#if !(service!"false")?boolean>
|
|
209
164
|
<project.cronospass.resource mimetype="folder/web">src/main/mobileapp/www</project.cronospass.resource>
|
|
210
165
|
<project.cronospass.resource mimetype="folder/web">src/main/webapp</project.cronospass.resource>
|
|
211
166
|
</#if>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<#-- Verificar se existem parametros -->
|
|
2
2
|
<#if (authentication?? && backend?? && frontend??) >
|
|
3
|
-
<#if ((authentication?lower_case) != "nenhuma" && (frontend?lower_case) == "true" && (backend?lower_case) == "true") && !
|
|
3
|
+
<#if ((authentication?lower_case) != "nenhuma" && (frontend?lower_case) == "true" && (backend?lower_case) == "true") && !(service!"false")?boolean >
|
|
4
4
|
path.content=/webapp-autenticacao
|
|
5
5
|
</#if>
|
|
6
|
-
<#if (((authentication?lower_case) == "nenhuma" && (frontend?lower_case) == "true") || ((backend?lower_case) == "false" && (frontend?lower_case) == "true")) && !
|
|
6
|
+
<#if (((authentication?lower_case) == "nenhuma" && (frontend?lower_case) == "true") || ((backend?lower_case) == "false" && (frontend?lower_case) == "true")) && !(service!"false")?boolean>
|
|
7
7
|
path.content=/webapp-sem-autenticacao
|
|
8
8
|
</#if>
|
|
9
9
|
<#if (backend?lower_case) == "true" >
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
<#if ((frontend?lower_case) == "true" && (backend?lower_case) == "false") && !
|
|
1
|
+
<#if ((frontend?lower_case) == "true" && (backend?lower_case) == "false") && !(service!"false")?boolean >
|
|
2
2
|
file=components.json
|
|
3
|
-
<#elseif !
|
|
3
|
+
<#elseif !(service!"false")?boolean>
|
|
4
4
|
file=components.json
|
|
5
5
|
file=persistence.xml.ftl
|
|
6
6
|
path=/datasources
|
|
@@ -330,7 +330,7 @@
|
|
|
330
330
|
}
|
|
331
331
|
</#noparse>
|
|
332
332
|
<#if (authentication??) >
|
|
333
|
-
<#if ((authentication?lower_case) != "nenhuma") ||
|
|
333
|
+
<#if ((authentication?lower_case) != "nenhuma") || (service!"false")?boolean>
|
|
334
334
|
,
|
|
335
335
|
<#noparse>
|
|
336
336
|
"userSecurables": {
|
|
@@ -2,11 +2,11 @@ file=auditlogcleanup.datasource.json
|
|
|
2
2
|
file=auditlogquery.datasource.json
|
|
3
3
|
file=device.datasource.json
|
|
4
4
|
<#if (authentication??) >
|
|
5
|
-
<#if ((authentication?lower_case) != "nenhuma") && !
|
|
5
|
+
<#if ((authentication?lower_case) != "nenhuma") && !(service!"false")?boolean>
|
|
6
6
|
file=appUserManager.datasource.json
|
|
7
7
|
file=auth.datasource.json
|
|
8
8
|
<#if mutual?? && mutual?lower_case == "sim">
|
|
9
|
-
keyManager.datasource.json
|
|
9
|
+
file=keyManager.datasource.json
|
|
10
10
|
</#if>
|
|
11
11
|
file=roleManager.datasource.json
|
|
12
12
|
file=roleSecurableManager.datasource.json
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<class>app.entity.AuditLog</class>
|
|
7
7
|
<class>app.entity.Device</class>
|
|
8
8
|
<#if (authentication??) >
|
|
9
|
-
<#if ((authentication?lower_case) != "nenhuma") && !
|
|
9
|
+
<#if ((authentication?lower_case) != "nenhuma") && !(service!"false")?boolean>
|
|
10
10
|
<class>app.entity.RoleSecurable</class>
|
|
11
11
|
<class>app.entity.Securable</class>
|
|
12
12
|
<class>app.entity.UserSecurable</class>
|
|
@@ -15,8 +15,8 @@ import cronapp.framework.boot.CronappInitializer;
|
|
|
15
15
|
@SpringBootApplication
|
|
16
16
|
@ComponentScan(basePackages = {
|
|
17
17
|
<#if social?? && social?lower_case == "sim">"cronapp.framework.authentication.social",</#if>
|
|
18
|
-
<#if (authentication??) && !
|
|
19
|
-
<#if
|
|
18
|
+
<#if (authentication??) && !(service!"false")?boolean>"cronapp.framework.authentication.${authentication?lower_case}",</#if>
|
|
19
|
+
<#if (service!"false")?boolean>"cronapp.framework.authentication.token",</#if>
|
|
20
20
|
"cronapp.framework.authentication.security",
|
|
21
21
|
"cronapp.framework.rest",
|
|
22
22
|
<#if mutual?? && mutual?lower_case == "sim" && (enterprise)!false>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<#-- Verificar se existem parametros -->
|
|
2
2
|
<#if (backend?? && frontend??)>
|
|
3
3
|
<#if ((backend?lower_case) == "true" && (frontend?lower_case) == "true") || (backend?lower_case) == "true">
|
|
4
|
-
<#if !
|
|
4
|
+
<#if !(service!"false")?boolean>
|
|
5
5
|
path=/app
|
|
6
6
|
</#if>
|
|
7
7
|
path=/i18n
|
|
@@ -17,7 +17,7 @@ path=/META-INF
|
|
|
17
17
|
</#if>
|
|
18
18
|
<#-- Caso contrario copiar tudo -->
|
|
19
19
|
<#else>
|
|
20
|
-
<#if !
|
|
20
|
+
<#if !(service!"false")?boolean>
|
|
21
21
|
path=/app
|
|
22
22
|
</#if>
|
|
23
23
|
path=/i18n
|
|
@@ -38,7 +38,7 @@ public class AppConfiguration {
|
|
|
38
38
|
return new JpaTransactionManager(entityManagerFactory().getObject());
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
<#if ((!authentication??) || (authentication?lower_case) == "normal" || (authentication?lower_case) == "token" || (authentication?lower_case) == "sso" || authentication?lower_case == "saml") && !
|
|
41
|
+
<#if ((!authentication??) || (authentication?lower_case) == "normal" || (authentication?lower_case) == "token" || (authentication?lower_case) == "sso" || authentication?lower_case == "saml") && !(service!"false")?boolean >
|
|
42
42
|
@Bean
|
|
43
43
|
public Jackson2RepositoryPopulatorFactoryBean repositoryPopulator() {
|
|
44
44
|
Jackson2RepositoryPopulatorFactoryBean factory = new Jackson2RepositoryPopulatorFactoryBean();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<#-- Verificar se existem parametros -->
|
|
2
2
|
<#if (authentication??) >
|
|
3
|
-
<#if ((authentication?lower_case) == "nenhuma") && !
|
|
3
|
+
<#if ((authentication?lower_case) == "nenhuma") && !(service!"false")?boolean>
|
|
4
4
|
file=AppConfiguration.java.ftl
|
|
5
5
|
path=/entity
|
|
6
6
|
path=/dao
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<#-- Verificar se existem parametros -->
|
|
2
2
|
<#if (authentication??) >
|
|
3
|
-
<#if ((authentication?lower_case) == "nenhuma") ||
|
|
3
|
+
<#if ((authentication?lower_case) == "nenhuma") || (service!"false")?boolean>
|
|
4
4
|
file=AuditLogDAO.java
|
|
5
5
|
file=DeviceDAO.java
|
|
6
6
|
<#else>
|
|
@@ -52,7 +52,7 @@ public class AuditLog implements Serializable {
|
|
|
52
52
|
* @generated
|
|
53
53
|
*/
|
|
54
54
|
@Temporal(TemporalType.TIMESTAMP)
|
|
55
|
-
@Column(name = "dateCreated", nullable = false, unique = false, insertable=true, updatable=true
|
|
55
|
+
@Column(name = "dateCreated", nullable = false, unique = false, insertable=true, updatable=true)
|
|
56
56
|
|
|
57
57
|
private java.util.Date date;
|
|
58
58
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<#-- Verificar se existem parametros -->
|
|
2
2
|
<#if (authentication??) >
|
|
3
|
-
<#if ((authentication?lower_case) == "nenhuma") ||
|
|
3
|
+
<#if ((authentication?lower_case) == "nenhuma") || (service!"false")?boolean>
|
|
4
4
|
file=AuditLog.java
|
|
5
5
|
file=Device.java
|
|
6
6
|
<#else>
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
"id": "${appguid}",
|
|
12
12
|
"name": "${appid}"
|
|
13
13
|
},
|
|
14
|
-
<#if !isServiceProject!false>
|
|
15
14
|
{
|
|
16
15
|
"_class": "app.entity.User",
|
|
17
16
|
"id": "${administratorUser}",
|
|
@@ -58,7 +57,6 @@
|
|
|
58
57
|
},
|
|
59
58
|
"builtIn": true
|
|
60
59
|
},
|
|
61
|
-
</#if>
|
|
62
60
|
{
|
|
63
61
|
"id": "${publicSecurable}",
|
|
64
62
|
"name": "Public",
|
|
@@ -80,7 +78,6 @@
|
|
|
80
78
|
"name": "Administrators",
|
|
81
79
|
"_class": "app.entity.Securable"
|
|
82
80
|
},
|
|
83
|
-
<#if !isServiceProject!false>
|
|
84
81
|
{
|
|
85
82
|
"_class": "app.entity.RoleSecurable",
|
|
86
83
|
"id": "${statics["java.util.UUID"].randomUUID()}",
|
|
@@ -382,7 +379,7 @@
|
|
|
382
379
|
"securable": {
|
|
383
380
|
"id": "${publicSecurable}"
|
|
384
381
|
},
|
|
385
|
-
"pattern": "/views
|
|
382
|
+
"pattern": "/views/login.view.html",
|
|
386
383
|
"getMethodAllowed": true,
|
|
387
384
|
"headMethodAllowed": true,
|
|
388
385
|
"putMethodAllowed": true,
|
|
@@ -976,5 +973,4 @@
|
|
|
976
973
|
},
|
|
977
974
|
"_class": "app.entity.View"
|
|
978
975
|
}
|
|
979
|
-
</#if>
|
|
980
976
|
]
|
|
@@ -25,4 +25,4 @@ security.oauth2.saml.maxAuthenticationAge=7200
|
|
|
25
25
|
security.oauth2.saml.forceAuthN=false
|
|
26
26
|
security.oauth2.sso.login-path=/login
|
|
27
27
|
spring.output.ansi.enabled=ALWAYS
|
|
28
|
-
cronapp.security.authentication=${(!
|
|
28
|
+
cronapp.security.authentication=${(!(service!"false")?boolean)?string}
|
|
@@ -32,21 +32,12 @@
|
|
|
32
32
|
</ul>
|
|
33
33
|
</div>
|
|
34
34
|
<div id="navbar2" class="navbar-collapse collapse">
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
<ul class="dropdown-menu">
|
|
42
|
-
<li><a href="" class="component-holder" ng-click="cronapi.screen.showModal('modalPassword')" data-component="crn-anchor">{{"Home.view.ChangePassword" | translate}}</a></li>
|
|
43
|
-
<#if mutual?? && mutual?lower_case == "sim" && (enterprise)!false>
|
|
44
|
-
<li><a ng-click="cronapi.client('js.blockly.MutualAuth.signup').run()" href="" data-component="crn-anchor">{{'LinkCertificate' | translate}}</a></li>
|
|
45
|
-
</#if>
|
|
46
|
-
<li><a ng-click="logout()" href="" data-component="crn-anchor">{{"Home.view.Logout" | translate}}</a></li>
|
|
47
|
-
</ul>
|
|
48
|
-
</li>
|
|
49
|
-
</ul>
|
|
35
|
+
<ul class="nav navbar-nav navbar-right">
|
|
36
|
+
<li>
|
|
37
|
+
<cron-dynamic-menu options="{"subMenuOptions":[{"id":"qxfhylqx9sh1","name":"Profile","title":"{{'Home.view.Perfil' | translate}}","iconClass":"fa fa-gear","level":1,"textPosition":"left","imagePosition":"left","contentTheme":"light","iconTheme":"light","menuItems":[{"id":"skq2m5tg9h6a","name":"Password","title":"{{'Home.view.ChangePassword' | translate}}","iconClass":"fa fa-lock","action":"cronapi.screen.showModal('modalPassword')","level":2,"textPosition":"left","imagePosition":"left","contentTheme":"light","iconTheme":"light","menuItems":[]},{"id":"qe1juldmy0kk","name":"Logout","title":"{{'Home.view.Logout' | translate}}","iconClass":"fa fa-sign-out","action":"logout()","level":2,"textPosition":"left","imagePosition":"left","contentTheme":"light","iconTheme":"light","menuItems":[]}]}]}" data-component="crn-dynamic-menu" id="crn-dynamic-menu-271461" class="">
|
|
38
|
+
Dynamic Menu
|
|
39
|
+
</cron-dynamic-menu> </li>
|
|
40
|
+
</ul>
|
|
50
41
|
</div>
|
|
51
42
|
</div>
|
|
52
43
|
</nav>
|