@cronapp/templates 2.9.5 → 2.9.6
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 +12 -2
- 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 -1
- 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 +0 -4
- 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 +1 -1
- package/project/W/cronapp-rad-project/src/main/resources/application.properties.ftl +1 -1
- 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
|
|
@@ -205,7 +205,7 @@
|
|
|
205
205
|
<project.cronospass.resource mimetype="folder/src">src/main/java</project.cronospass.resource>
|
|
206
206
|
<project.cronospass.resource mimetype="folder/src">src/main/resources</project.cronospass.resource>
|
|
207
207
|
</#if>
|
|
208
|
-
<#if !
|
|
208
|
+
<#if !(service!"false")?boolean>
|
|
209
209
|
<project.cronospass.resource mimetype="folder/web">src/main/mobileapp/www</project.cronospass.resource>
|
|
210
210
|
<project.cronospass.resource mimetype="folder/web">src/main/webapp</project.cronospass.resource>
|
|
211
211
|
</#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()}",
|
|
@@ -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}
|
|
@@ -79,20 +79,18 @@ parameter.page.1.list.3.authentication=Token|SSO|Saml|Nenhuma
|
|
|
79
79
|
parameter.page.1.list.4.menuPosition=Horizontal|Vertical
|
|
80
80
|
parameter.page.1.list.6.social=Não|Sim
|
|
81
81
|
parameter.page.1.list.7.mutual=Não|Sim
|
|
82
|
-
parameter.page.2.theme.6.theme=Material|Aquamarine|Fuse|DsGov|Cosmo|Cyborg|Darkly|Flatly|Journal|Lumen|Paper|Readable|Sandstone|Simplex|Slate|Spacelab|Superhero|United|Yeti
|
|
82
|
+
parameter.page.2.theme.6.theme=Material|Aquamarine|Fuse|DsGov|Material-Round|Krypton|Cerulean|Cosmo|Cyborg|Darkly|Flatly|Journal|Lumen|Paper|Readable|Sandstone|Simplex|Slate|Spacelab|Superhero|United|Yeti
|
|
83
83
|
|
|
84
84
|
themeDescription.Aquamarine=O tema Aquamarine utiliza o padrão de HTML e CSS do Bootstrap 🆕
|
|
85
85
|
themeDescription.Fuse=O tema Fuse utiliza o padrão de HTML e CSS do Bootstrap 🆕
|
|
86
86
|
themeDescription.DsGov=O tema DsGov utiliza o padrão de HTML e CSS do Gov.br 🆕
|
|
87
87
|
themeDescription.Material=O tema Material utiliza o padrão de HTML e CSS do Bootstrap com suporte à acessibilidade ♿
|
|
88
|
-
themeDescription.Material-Round=Material Round theme uses standard HTML and CSS Bootstrap
|
|
89
88
|
themeDescription.Cerulean=O tema Cerulean utiliza o padrão de HTML e CSS do Bootstrap
|
|
90
89
|
themeDescription.Cosmo=O tema Cosmo utiliza o padrão de HTML e CSS do Bootstrap
|
|
91
90
|
themeDescription.Cyborg=O tema Cyborg utiliza o padrão de HTML e CSS do Bootstrap
|
|
92
91
|
themeDescription.Darkly=O tema Darkly utiliza o padrão de HTML e CSS do Bootstrap
|
|
93
92
|
themeDescription.Flatly=O tema Flatly utiliza o padrão de HTML e CSS do Bootstrap
|
|
94
93
|
themeDescription.Journal=O tema Journal utiliza o padrão de HTML e CSS do Bootstrap
|
|
95
|
-
themeDescription.Krypton=O tema Krypton utiliza o padrão de HTML e CSS do Bootstrap
|
|
96
94
|
themeDescription.Lumen=O tema Lumen utiliza o padrão de HTML e CSS do Bootstrap
|
|
97
95
|
themeDescription.Paper=O tema Paper utiliza o padrão de HTML e CSS do Bootstrap
|
|
98
96
|
themeDescription.Readable=O tema Readable utiliza o padrão de HTML e CSS do Bootstrap
|
|
@@ -103,6 +101,9 @@ themeDescription.Spacelab=O tema Spacelab utiliza o padrão de HTML e CSS do Boo
|
|
|
103
101
|
themeDescription.Superhero=O tema Superhero utiliza o padrão de HTML e CSS do Bootstrap
|
|
104
102
|
themeDescription.United=O tema United utiliza o padrão de HTML e CSS do Bootstrap
|
|
105
103
|
themeDescription.Yeti=O tema Yeti utiliza o padrão de HTML e CSS do Bootstrap
|
|
104
|
+
themeDescription.Material-Round=Material Round theme uses standard HTML and CSS Bootstrap 🆕
|
|
105
|
+
themeDescription.Krypton=The Krypton theme uses standard HTML and CSS Bootstrap 🆕
|
|
106
|
+
|
|
106
107
|
parameter.page.3.list.7.selectdatabase=Utilizar banco de dados temporário em disco (H2)|Criar ou utilizar banco de dados existente na nuvem CronApp|Utilizar outro banco de dados existente
|
|
107
108
|
parameter.page.3.cfdatabase.8.database=
|
|
108
109
|
|
|
@@ -13,14 +13,12 @@ themeDescription.Aquamarine=Aquamarine theme uses standard HTML and CSS Bootstra
|
|
|
13
13
|
themeDescription.Fuse=Fuse theme uses standard HTML and CSS Bootstrap 🆕
|
|
14
14
|
themeDescription.DsGov=DsGov theme uses standard HTML and CSS of Brazilian Gov.br 🆕
|
|
15
15
|
themeDescription.Material=Material theme uses standard HTML and CSS Bootstrap with accessibility support ♿
|
|
16
|
-
themeDescription.Material-Round=Material Round theme uses standard HTML and CSS Bootstrap
|
|
17
16
|
themeDescription.Cerulean=Cerulean theme uses standard HTML and CSS Bootstrap
|
|
18
17
|
themeDescription.Cosmo=Cosmo theme uses standard HTML and CSS Bootstrap
|
|
19
18
|
themeDescription.Cyborg=Cyborg theme uses standard HTML and CSS Bootstrap
|
|
20
19
|
themeDescription.Darkly=The Darkly theme uses standard HTML and CSS Bootstrap
|
|
21
20
|
themeDescription.Flatly=The Flatly theme uses standard HTML and CSS Bootstrap
|
|
22
21
|
themeDescription.Journal=The Journal theme uses standard HTML and CSS Bootstrap
|
|
23
|
-
themeDescription.Krypton=The Krypton theme uses standard HTML and CSS Bootstrap
|
|
24
22
|
themeDescription.Lumen=The Lumen theme uses standard HTML and CSS Bootstrap
|
|
25
23
|
themeDescription.Paper=The Paper theme uses standard HTML and CSS Bootstrap
|
|
26
24
|
themeDescription.Readable=Readable The theme uses standard HTML and CSS Bootstrap
|
|
@@ -31,4 +29,7 @@ themeDescription.Spacelab=Spacelab theme uses standard HTML and CSS Bootstrap
|
|
|
31
29
|
themeDescription.Superhero=The Superhero theme uses standard HTML and CSS Bootstrap
|
|
32
30
|
themeDescription.United=The theme United uses standard HTML and CSS Bootstrap
|
|
33
31
|
themeDescription.Yeti=Yeti theme uses standard HTML and CSS Bootstrap
|
|
32
|
+
themeDescription.Material-Round=Material Round theme uses standard HTML and CSS Bootstrap 🆕
|
|
33
|
+
themeDescription.Krypton=The Krypton theme uses standard HTML and CSS Bootstrap 🆕
|
|
34
|
+
|
|
34
35
|
parameter.page.3.list.7.selectdatabase=Select the database|Available only when the "Include Backend" option is selected. \n\nIn the "Use temporary disk (H2) database" option: \nYou will have a database created automatically within your project. \n\nIn the "Create or use existing database in the CronApp cloud": \nYou can add/select a database in the CronApp cloud. \n\nIn the "Use another existing database" option: \nYou can enter data from a database Already exists.
|
|
@@ -13,14 +13,12 @@ themeDescription.Aquamarine=O tema Aquamarine utiliza o padrão de HTML e CSS do
|
|
|
13
13
|
themeDescription.Fuse=O tema Fuse utiliza o padrão de HTML e CSS do Bootstrap 🆕
|
|
14
14
|
themeDescription.DsGov=O tema DsGov utiliza o padrão de HTML e CSS do Gov.br 🆕
|
|
15
15
|
themeDescription.Material=O tema Material utiliza o padrão de HTML e CSS do Bootstrap com suporte à acessibilidade ♿
|
|
16
|
-
themeDescription.Material-Round=O tema Material Round utiliza o padrão HTML e CSS do Bootstrap
|
|
17
16
|
themeDescription.Cerulean=O tema Cerulean utiliza o padrão de HTML e CSS do Bootstrap
|
|
18
17
|
themeDescription.Cosmo=O tema Cosmo utiliza o padrão de HTML e CSS do Bootstrap
|
|
19
18
|
themeDescription.Cyborg=O tema Cyborg utiliza o padrão de HTML e CSS do Bootstrap
|
|
20
19
|
themeDescription.Darkly=O tema Darkly utiliza o padrão de HTML e CSS do Bootstrap
|
|
21
20
|
themeDescription.Flatly=O tema Flatly utiliza o padrão de HTML e CSS do Bootstrap
|
|
22
21
|
themeDescription.Journal=O tema Journal utiliza o padrão de HTML e CSS do Bootstrap
|
|
23
|
-
themeDescription.Krypton=O tema Krypton utiliza o padrão de HTML e CSS do Bootstrap
|
|
24
22
|
themeDescription.Lumen=O tema Lumen utiliza o padrão de HTML e CSS do Bootstrap
|
|
25
23
|
themeDescription.Paper=O tema Paper utiliza o padrão de HTML e CSS do Bootstrap
|
|
26
24
|
themeDescription.Readable=O tema Readable utiliza o padrão de HTML e CSS do Bootstrap
|
|
@@ -31,4 +29,7 @@ themeDescription.Spacelab=O tema Spacelab utiliza o padrão de HTML e CSS do Boo
|
|
|
31
29
|
themeDescription.Superhero=O tema Superhero utiliza o padrão de HTML e CSS do Bootstrap
|
|
32
30
|
themeDescription.United=O tema United utiliza o padrão de HTML e CSS do Bootstrap
|
|
33
31
|
themeDescription.Yeti=O tema Yeti utiliza o padrão de HTML e CSS do Bootstrap
|
|
32
|
+
themeDescription.Material-Round=O tema Material Round utiliza o padrão HTML e CSS do Bootstrap 🆕
|
|
33
|
+
themeDescription.Krypton=O tema Krypton utiliza o padrão de HTML e CSS do Bootstrap 🆕
|
|
34
|
+
|
|
34
35
|
parameter.page.3.list.7.selectdatabase=Selecione o banco de dados|Disponível apenas quando a opção "Incluir Back-End" estiver selecionada.\n\nNa opção "Utilizar banco de dados temporário em disco (H2)":\nVocê terá um banco criado automaticamente dentro de seu projeto.\n\nNa opção "Criar ou utilizar banco de dados existente na nuvem CronApp":\nVocê poderá adicionar/selecionar um banco de dados na nuvem do CronApp.\n\nNa opção "Utilizar outro banco de dados existente":\nVocê poderá informar os dados de um banco de dados remoto já existente.
|