@cronapp/templates 2.9.1-SP.2
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/$global/components/js/datasource.js +1472 -0
- package/$global/data-layer/BASICDAO.ftl +146 -0
- package/$global/data-layer/BUSINESS.ftl +284 -0
- package/$global/data-layer/DAO.ftl +138 -0
- package/$global/data-layer/ENTITIES.ftl +165 -0
- package/$global/data-layer/REST.ftl +333 -0
- package/$global/data-layer/RESTAPPLICATION.ftl +22 -0
- package/$global/data-layer/REST_EXCEPTION.ftl +106 -0
- package/$global/data-layer/REST_SERVICE.ftl +11 -0
- package/$global/data-layer/SESSIONMANAGER.ftl +292 -0
- package/$global/data-layer/TEST.ftl +9 -0
- package/$global/data-layer/cloud/CloudFactory.ftl +27 -0
- package/$global/data-layer/cloud/CloudManager.ftl +73 -0
- package/$global/data-layer/cloud/CloudService.ftl +14 -0
- package/$global/data-layer/cloud/DropboxService.ftl +81 -0
- package/$global/data-layer/cloud/FileObject.ftl +47 -0
- package/$global/data-layer/cloud/template.properties +8 -0
- package/$global/data-layer/dropbox/DROPBOX_CONSTANTS.ftl +1 -0
- package/$global/data-layer/dropbox/DROPBOX_DELETE.ftl +1 -0
- package/$global/data-layer/dropbox/DROPBOX_GET.ftl +1 -0
- package/$global/data-layer/dropbox/DROPBOX_LIST.ftl +1 -0
- package/$global/data-layer/dropbox/DROPBOX_POST.ftl +19 -0
- package/$global/data-layer/dropbox/DROPBOX_PUT.ftl +20 -0
- package/$global/data-layer/template.properties +9 -0
- package/$global/js/directives.js +162 -0
- package/$global/reports/commons/ReportFront.ftl +76 -0
- package/$global/reports/frontend/parameters.controller.ftl +70 -0
- package/$global/reports/frontend/reports.controller.ftl +63 -0
- package/$global/reports/frontend/reports.parameters.ftl +25 -0
- package/$global/reports/frontend/reports.service.ftl +39 -0
- package/$global/reports/frontend/templates/BOOLEAN.parameter.ftl +4 -0
- package/$global/reports/frontend/templates/DATE.parameter.ftl +4 -0
- package/$global/reports/frontend/templates/DOUBLE.parameter.ftl +4 -0
- package/$global/reports/frontend/templates/FLOAT.parameter.ftl +4 -0
- package/$global/reports/frontend/templates/INTEGER.parameter.ftl +4 -0
- package/$global/reports/frontend/templates/LONG.parameter.ftl +4 -0
- package/$global/reports/frontend/templates/STRING.parameter.ftl +4 -0
- package/README.md +2 -0
- package/file/blockly/EmptyBlockly/__Name__.blockly.ftl +20 -0
- package/file/blockly/EmptyBlockly/blockly.png +0 -0
- package/file/blockly/EmptyBlockly/blockly_client.png +0 -0
- package/file/blockly/EmptyBlockly/blockly_server.png +0 -0
- package/file/blockly/EmptyBlockly/template.properties +8 -0
- package/file/blockly/EmptyBlockly/template_pt_BR.properties +6 -0
- package/file/blockly/JavaBlockly/__ClassName__.java.ftl +32 -0
- package/file/blockly/JavaBlockly/java.svg +15 -0
- package/file/blockly/JavaBlockly/template.properties +9 -0
- package/file/blockly/JavaBlockly/template_pt_BR.properties +5 -0
- package/file/blockly/JavaScriptBlockly/__ClassName__.blockly.js.ftl +16 -0
- package/file/blockly/JavaScriptBlockly/javascript.svg +28 -0
- package/file/blockly/JavaScriptBlockly/template.properties +9 -0
- package/file/blockly/JavaScriptBlockly/template_pt_BR.properties +5 -0
- package/file/blockly/blockly.png +0 -0
- package/file/blockly/blockly_client.png +0 -0
- package/file/blockly/blockly_server.png +0 -0
- package/file/blockly/group.properties +5 -0
- package/file/components.json/EmptyCrudHtml/__FileName__.components.json.ftl +41 -0
- package/file/components.json/EmptyCrudHtml/__FileName__.template.html.ftl +1 -0
- package/file/components.json/EmptyCrudHtml/components.json.png +0 -0
- package/file/components.json/EmptyCrudHtml/template.properties +36 -0
- package/file/components.json/EmptyCrudHtml/template_pt_BR.properties +36 -0
- package/file/components.json/components.json.png +0 -0
- package/file/components.json/group.properties +5 -0
- package/file/crud/angular_crud_view/__FileName__.view.html.ftl +432 -0
- package/file/crud/angular_crud_view/crud-web.png +0 -0
- package/file/crud/angular_crud_view/template.properties +8 -0
- package/file/crud/angular_crud_view/template_en_US.properties +2 -0
- package/file/crud/angular_view/__FileName__.view.html.ftl +70 -0
- package/file/crud/angular_view/list-web.png +0 -0
- package/file/crud/angular_view/project.svg +39 -0
- package/file/crud/angular_view/template.properties +10 -0
- package/file/crud/angular_view/template_en_US.properties +2 -0
- package/file/crud/group.properties +6 -0
- package/file/crud/phonegap_crud_view/__FileName__.view.html.ftl +308 -0
- package/file/crud/phonegap_crud_view/crud-mobile.png +0 -0
- package/file/crud/phonegap_crud_view/project.svg +24 -0
- package/file/crud/phonegap_crud_view/template.properties +9 -0
- package/file/crud/phonegap_crud_view/template_en_US.properties +2 -0
- package/file/crud/phonegap_view/__FileName__.view.html.ftl +74 -0
- package/file/crud/phonegap_view/list-mobile.png +0 -0
- package/file/crud/phonegap_view/project.svg +24 -0
- package/file/crud/phonegap_view/template.properties +11 -0
- package/file/crud/phonegap_view/template_en_US.properties +2 -0
- package/file/crud/view.html.png +0 -0
- package/file/html/EmptyHtml/__FileName__.html.ftl +0 -0
- package/file/html/EmptyHtml/html.png +0 -0
- package/file/html/EmptyHtml/template.properties +4 -0
- package/file/html/EmptyHtml/template_pt_BR.properties +4 -0
- package/file/html/group.properties +4 -0
- package/file/html/html.png +0 -0
- package/file/java/Cronapi/__ClassName__.java.ftl +26 -0
- package/file/java/Cronapi/cronapi.png +0 -0
- package/file/java/Cronapi/template.properties +15 -0
- package/file/java/Cronapi/template_pt_BR.properties +15 -0
- package/file/java/EmptyClass/__ClassName__.java.ftl +23 -0
- package/file/java/EmptyClass/java.png +0 -0
- package/file/java/EmptyClass/template.properties +5 -0
- package/file/java/EmptyClass/template_pt_BR.properties +5 -0
- package/file/java/EnumClass/__EnumName__.java.ftl +18 -0
- package/file/java/EnumClass/java.png +0 -0
- package/file/java/EnumClass/template.properties +5 -0
- package/file/java/EnumClass/template_pt_BR.properties +5 -0
- package/file/java/InterfaceClass/__InterfaceName__.java.ftl +25 -0
- package/file/java/InterfaceClass/java.png +0 -0
- package/file/java/InterfaceClass/template.properties +5 -0
- package/file/java/InterfaceClass/template_pt_BR.properties +5 -0
- package/file/java/JUnitSuiteTestClass/__ClassName__.java.ftl +26 -0
- package/file/java/JUnitSuiteTestClass/junit.png +0 -0
- package/file/java/JUnitSuiteTestClass/template.properties +11 -0
- package/file/java/JUnitSuiteTestClass/template_pt_BR.properties +11 -0
- package/file/java/JUnitTestClass/__ClassName__.java.ftl +42 -0
- package/file/java/JUnitTestClass/junit.png +0 -0
- package/file/java/JUnitTestClass/template.properties +11 -0
- package/file/java/JUnitTestClass/template_pt_BR.properties +11 -0
- package/file/java/group.properties +4 -0
- package/file/java/java.png +0 -0
- package/file/jrxml/EmptyReport/__FileName__.jrxml.ftl +33 -0
- package/file/jrxml/EmptyReport/jrxml.png +0 -0
- package/file/jrxml/EmptyReport/template.properties +6 -0
- package/file/jrxml/EmptyReport/template_pt_BR.properties +6 -0
- package/file/jrxml/TabularReport/__FileName__.jrxml.ftl +27 -0
- package/file/jrxml/TabularReport/jrxml.png +0 -0
- package/file/jrxml/TabularReport/template.properties +11 -0
- package/file/jrxml/TabularReport/template_pt_BR.properties +11 -0
- package/file/jrxml/group.properties +4 -0
- package/file/jrxml/jrxml.png +0 -0
- package/file/js/Cronapi/__FileName__.cronapi.js.ftl +24 -0
- package/file/js/Cronapi/blockly_client.png +0 -0
- package/file/js/Cronapi/template.properties +18 -0
- package/file/js/Cronapi/template_pt_BR.properties +15 -0
- package/file/js/EmptyJs/__FileName__.js.ftl +0 -0
- package/file/js/EmptyJs/js.png +0 -0
- package/file/js/EmptyJs/template.properties +5 -0
- package/file/js/EmptyJs/template_pt_BR.properties +5 -0
- package/file/js/group.properties +4 -0
- package/file/js/js.png +0 -0
- package/file/others/css/CssHelloWorld/__FileName__.css.ftl +3 -0
- package/file/others/css/CssHelloWorld/css.png +0 -0
- package/file/others/css/CssHelloWorld/template.properties +5 -0
- package/file/others/css/CssHelloWorld/template_pt_BR.properties +5 -0
- package/file/others/css/CssVazio/__FileName__.css.ftl +0 -0
- package/file/others/css/CssVazio/css.png +0 -0
- package/file/others/css/CssVazio/template.properties +5 -0
- package/file/others/css/CssVazio/template_pt_BR.properties +5 -0
- package/file/others/group.properties +5 -0
- package/file/others/group_en_US.properties +5 -0
- package/file/others/js/__FileName__.js.ftl +0 -0
- package/file/others/js/js.png +0 -0
- package/file/others/js/template.properties +5 -0
- package/file/others/js/template_pt_BR.properties +5 -0
- package/file/others/jsp/__FileName__.jsp.ftl +12 -0
- package/file/others/jsp/jsp.png +0 -0
- package/file/others/jsp/template.properties +5 -0
- package/file/others/jsp/template_pt_BR.properties +5 -0
- package/file/others/properties/__FileName__.properties.ftl +0 -0
- package/file/others/properties/properties.png +0 -0
- package/file/others/properties/template.properties +5 -0
- package/file/others/properties/template_pt_BR.properties +5 -0
- package/file/others/raml/__FileName__.raml.ftl +12 -0
- package/file/others/raml/raml.png +0 -0
- package/file/others/raml/template.properties +5 -0
- package/file/others/raml/template_pt_BR.properties +5 -0
- package/file/others/scheduler.umlcd/__FileName__.umlcd.ftl +397 -0
- package/file/others/scheduler.umlcd/template.properties +5 -0
- package/file/others/scheduler.umlcd/template_pt_BR.properties +5 -0
- package/file/others/scheduler.umlcd/umlcd.png +0 -0
- package/file/others/txt/__FileName__.txt.ftl +0 -0
- package/file/others/txt/template.properties +5 -0
- package/file/others/txt/template_en_US.properties +5 -0
- package/file/others/txt/txt.png +0 -0
- package/file/others/umlcd/__FileName__.umlcd.ftl +0 -0
- package/file/others/umlcd/template.properties +5 -0
- package/file/others/umlcd/template_pt_BR.properties +5 -0
- package/file/others/umlcd/umlcd.png +0 -0
- package/file/others/unknown.png +0 -0
- package/file/others/xml/__FileName__.xml.ftl +0 -0
- package/file/others/xml/template.properties +5 -0
- package/file/others/xml/template_pt_BR.properties +5 -0
- package/file/others/xml/xml.png +0 -0
- package/file/others/yaml/__FileName__.yaml.ftl +29 -0
- package/file/others/yaml/template.properties +5 -0
- package/file/others/yaml/template_pt_BR.properties +5 -0
- package/file/others/yaml/yaml.png +0 -0
- package/file/tm/EmptyMenu/__FileName__.xml.ftl +14 -0
- package/file/tm/EmptyMenu/template.properties +4 -0
- package/file/tm/EmptyMenu/tm.png +0 -0
- package/file/tm/group.properties +6 -0
- package/file/tm/tm.png +0 -0
- package/file/tp/EmptyPage/__FileName__.xml.ftl +12 -0
- package/file/tp/EmptyPage/template.properties +4 -0
- package/file/tp/EmptyPage/tp.png +0 -0
- package/file/tp/PageHelloWorld/__FileName__.xml.ftl +18 -0
- package/file/tp/PageHelloWorld/template.properties +4 -0
- package/file/tp/PageHelloWorld/tp.png +0 -0
- package/file/tp/group.properties +6 -0
- package/file/tp/tp.png +0 -0
- package/file/view.html/EmptyCrudHtml/__FileName__.view.html.ftl +69 -0
- package/file/view.html/EmptyCrudHtml/template.properties +7 -0
- package/file/view.html/EmptyCrudHtml/template_pt_BR.properties +4 -0
- package/file/view.html/EmptyCrudHtml/view.html.png +0 -0
- package/file/view.html/EmptyIonicViewHtml/__FileName__.view.html.ftl +4 -0
- package/file/view.html/EmptyIonicViewHtml/template.properties +10 -0
- package/file/view.html/EmptyIonicViewHtml/template_pt_BR.properties +3 -0
- package/file/view.html/EmptyIonicViewHtml/view.html.png +0 -0
- package/file/view.html/EmptyViewHtml/__FileName__.view.html.ftl +0 -0
- package/file/view.html/EmptyViewHtml/template.properties +10 -0
- package/file/view.html/EmptyViewHtml/template_pt_BR.properties +3 -0
- package/file/view.html/EmptyViewHtml/view.html.png +0 -0
- package/file/view.html/HeaderIonicViewHtml/__FileName__.view.html.ftl +13 -0
- package/file/view.html/HeaderIonicViewHtml/template.properties +10 -0
- package/file/view.html/HeaderIonicViewHtml/template_pt_BR.properties +3 -0
- package/file/view.html/HeaderIonicViewHtml/view.html.png +0 -0
- package/file/view.html/Login1ViewHtml/__FileName__.view.html.ftl +193 -0
- package/file/view.html/Login1ViewHtml/login1.png +0 -0
- package/file/view.html/Login1ViewHtml/template.properties +10 -0
- package/file/view.html/Login1ViewHtml/template_pt_BR.properties +2 -0
- package/file/view.html/Login2ViewHtml/__FileName__.view.html.ftl +200 -0
- package/file/view.html/Login2ViewHtml/login2.png +0 -0
- package/file/view.html/Login2ViewHtml/template.properties +10 -0
- package/file/view.html/Login2ViewHtml/template_pt_BR.properties +2 -0
- package/file/view.html/Signup1ViewHtml/__FileName__.view.html.ftl +87 -0
- package/file/view.html/Signup1ViewHtml/signup1.png +0 -0
- package/file/view.html/Signup1ViewHtml/template.properties +10 -0
- package/file/view.html/Signup1ViewHtml/template_pt_BR.properties +2 -0
- package/file/view.html/Signup2ViewHtml/__FileName__.view.html.ftl +90 -0
- package/file/view.html/Signup2ViewHtml/signup2.png +0 -0
- package/file/view.html/Signup2ViewHtml/template.properties +10 -0
- package/file/view.html/Signup2ViewHtml/template_pt_BR.properties +2 -0
- package/file/view.html/group.properties +6 -0
- package/file/view.html/view.html.png +0 -0
- package/package.json +5 -0
- package/project/C/Aplicacao Vazia/cfg/jaas.config +5 -0
- package/project/C/Aplicacao Vazia/cfg/techne.template.config.xml +26 -0
- package/project/C/Aplicacao Vazia/cfg/techne.template.xml +6 -0
- package/project/C/Aplicacao Vazia/config/context.xml.ftl +66 -0
- package/project/C/Aplicacao Vazia/data/techne/template/crodata/classes.xml +13 -0
- package/project/C/Aplicacao Vazia/data/techne/template/crodata/menu/modules.xml +14 -0
- package/project/C/Aplicacao Vazia/data/techne/template/crodata/trans/module/index.xml +15 -0
- package/project/C/Aplicacao Vazia/db/README.md +1 -0
- package/project/C/Aplicacao Vazia/pom.xml +34 -0
- package/project/C/Aplicacao Vazia/project.png +0 -0
- package/project/C/Aplicacao Vazia/src/template/security/TemplateSecurityConnection.java +130 -0
- package/project/C/Aplicacao Vazia/template.properties +8 -0
- package/project/C/Aplicacao com CRUD/cfg/jaas.config +5 -0
- package/project/C/Aplicacao com CRUD/cfg/techne.template.config.xml +26 -0
- package/project/C/Aplicacao com CRUD/cfg/techne.template.xml +6 -0
- package/project/C/Aplicacao com CRUD/config/context.xml.ftl +66 -0
- package/project/C/Aplicacao com CRUD/data/techne/template/crodata/block/tb.ftl +9 -0
- package/project/C/Aplicacao com CRUD/data/techne/template/crodata/classes.xml +13 -0
- package/project/C/Aplicacao com CRUD/data/techne/template/crodata/menu/modules.xml +14 -0
- package/project/C/Aplicacao com CRUD/data/techne/template/crodata/trans/module/checkbox.xml +156 -0
- package/project/C/Aplicacao com CRUD/data/techne/template/crodata/trans/module/dropDownSelect.xml +113 -0
- package/project/C/Aplicacao com CRUD/data/techne/template/crodata/trans/module/gridPanelSelect.xml +99 -0
- package/project/C/Aplicacao com CRUD/data/techne/template/crodata/trans/module/index.xml +40 -0
- package/project/C/Aplicacao com CRUD/data/techne/template/crodata/trans/module/recordpanel.xml +239 -0
- package/project/C/Aplicacao com CRUD/db/README.md +1 -0
- package/project/C/Aplicacao com CRUD/db/sql/template/org/h2/Driver/2_tables.sql +309 -0
- package/project/C/Aplicacao com CRUD/pom.xml +85 -0
- package/project/C/Aplicacao com CRUD/project.png +0 -0
- package/project/C/Aplicacao com CRUD/src/template/security/TemplateSecurityConnection.java +130 -0
- package/project/C/Aplicacao com CRUD/template.properties +9 -0
- package/project/C/cronos/cfg/jaas.config +5 -0
- package/project/C/cronos/cfg/techne.template.config.xml +26 -0
- package/project/C/cronos/cfg/techne.template.xml +6 -0
- package/project/C/cronos/config/context.xml.ftl +66 -0
- package/project/C/cronos/data/techne/template/crodata/block/tb.ftl +9 -0
- package/project/C/cronos/data/techne/template/crodata/classes.xml +13 -0
- package/project/C/cronos/data/techne/template/crodata/menu/modules.xml +14 -0
- package/project/C/cronos/data/techne/template/crodata/trans/module/gridPanelMasterDetail.xml +72 -0
- package/project/C/cronos/data/techne/template/crodata/trans/module/gridPanelSelect.xml +99 -0
- package/project/C/cronos/data/techne/template/crodata/trans/module/hello.xml +15 -0
- package/project/C/cronos/data/techne/template/crodata/trans/module/recordPanelMasterCheckBox.xml +190 -0
- package/project/C/cronos/db/README.md +1 -0
- package/project/C/cronos/pom.xml +34 -0
- package/project/C/cronos/project.png +0 -0
- package/project/C/cronos/scripts/sql/aplicacao/org/h2/Driver/2_tables.sql +309 -0
- package/project/C/cronos/src/template/security/TemplateSecurityConnection.java +130 -0
- package/project/C/cronos/template.properties +8 -0
- package/project/C/cronos.png +0 -0
- package/project/C/group.properties +5 -0
- package/project/D/dotnet-zero/project.png +0 -0
- package/project/D/dotnet-zero/template.properties +5 -0
- package/project/D/dotnet-zero/template_en_US.properties +2 -0
- package/project/D/dotnet.png +0 -0
- package/project/D/group.properties +4 -0
- package/project/G/blockly-client-api/project.svg +63 -0
- package/project/G/blockly-client-api/src/main/mobileapp/www/js/cronapi/__FileName__.cronapi.js.ftl +24 -0
- package/project/G/blockly-client-api/src/main/webapp/js/cronapi/__FileName__.cronapi.js.ftl +24 -0
- package/project/G/blockly-client-api/template.properties +15 -0
- package/project/G/blockly-client-api/template.properties._template.ftl +5 -0
- package/project/G/blockly-client-api/template_en.properties._template.ftl +1 -0
- package/project/G/blockly-client-api/template_pt.properties +13 -0
- package/project/G/blockly-client-api/template_pt.properties._template.ftl +1 -0
- package/project/G/blockly-server-api/pom.xml.ftl +63 -0
- package/project/G/blockly-server-api/project.svg +34 -0
- package/project/G/blockly-server-api/src/main/java/cronapi/__ClassName__.java.ftl +24 -0
- package/project/G/blockly-server-api/template.properties +17 -0
- package/project/G/blockly-server-api/template.properties._template.ftl +1 -0
- package/project/G/blockly-server-api/template_en.properties._template.ftl +1 -0
- package/project/G/blockly-server-api/template_pt.properties +14 -0
- package/project/G/blockly-server-api/template_pt.properties._template.ftl +1 -0
- package/project/G/gluonsoft.png +0 -0
- package/project/G/group.properties +4 -0
- package/project/G/visual-component/project.svg +166 -0
- package/project/G/visual-component/src/main/mobileapp/www/components/__WidgetId__.components.json.ftl +22 -0
- package/project/G/visual-component/src/main/mobileapp/www/components/templates/__WidgetId__.template.html.ftl +4 -0
- package/project/G/visual-component/src/main/mobileapp/www/js/__WidgetId__.js +4 -0
- package/project/G/visual-component/src/main/webapp/components/__WidgetId__.components.json.ftl +22 -0
- package/project/G/visual-component/src/main/webapp/components/templates/__WidgetId__.template.html.ftl +4 -0
- package/project/G/visual-component/src/main/webapp/js/__WidgetId__.js +4 -0
- package/project/G/visual-component/template.properties +9 -0
- package/project/G/visual-component/template.properties._template.ftl +5 -0
- package/project/G/visual-component/template_en.properties._template.ftl +1 -0
- package/project/G/visual-component/template_pt.properties +4 -0
- package/project/G/visual-component/template_pt.properties._template.ftl +1 -0
- package/project/J/group.properties +4 -0
- package/project/J/java.png +0 -0
- package/project/J/servlet/.gitignore.ftl +25 -0
- package/project/J/servlet/.vscode/launch.json +1 -0
- package/project/J/servlet/README.md +3 -0
- package/project/J/servlet/pom.xml +70 -0
- package/project/J/servlet/project.svg +1 -0
- package/project/J/servlet/src/main/webapp/index.jsp +5 -0
- package/project/J/servlet/template.properties +6 -0
- package/project/J/servlet/template_en_US.properties +2 -0
- package/project/J/spring-boot/.gitignore.ftl +25 -0
- package/project/J/spring-boot/.vscode/launch.json +1 -0
- package/project/J/spring-boot/README.md +3 -0
- package/project/J/spring-boot/mvnw +225 -0
- package/project/J/spring-boot/mvnw.cmd +143 -0
- package/project/J/spring-boot/pom.xml +50 -0
- package/project/J/spring-boot/project.png +0 -0
- package/project/J/spring-boot/project.svg +1 -0
- package/project/J/spring-boot/src/main/java/com/mycompany/helloworld/HelloWorldApplication.java +12 -0
- package/project/J/spring-boot/src/main/resources/application.properties +0 -0
- package/project/J/spring-boot/src/main/resources/static/static.txt +0 -0
- package/project/J/spring-boot/src/main/resources/templates/templates.txt +0 -0
- package/project/J/spring-boot/template.properties +6 -0
- package/project/J/spring-boot/template_en_US.properties +2 -0
- package/project/M/cronapp-rad-project-mobile-cordova/.gitignore.ftl +28 -0
- package/project/M/cronapp-rad-project-mobile-cordova/README.md +24 -0
- package/project/M/cronapp-rad-project-mobile-cordova/__copydata.ftl +29 -0
- package/project/M/cronapp-rad-project-mobile-cordova/__linksInherit +6 -0
- package/project/M/cronapp-rad-project-mobile-cordova/project.svg +1 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/__copydata.ftl +18 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/__linksInherit +14 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/java/__copydata.ftl +3 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/java/__linksInherit +10 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/java/social.properties +14 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/.gitignore.ftl +3 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/certs/README.md +5 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/config.xml.ftl +110 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/hooks/README.md +23 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/network_security_config.xml +4 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/package.json.ftl +12 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/README.md +29 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/icon/android/drawable-hdpi-icon.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/icon/android/drawable-hdpi-notification-icon.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/icon/android/drawable-ldpi-icon.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/icon/android/drawable-ldpi-notification-icon.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/icon/android/drawable-mdpi-icon.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/icon/android/drawable-mdpi-notification-icon.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/icon/android/drawable-web-icon.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/icon/android/drawable-xhdpi-icon.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/icon/android/drawable-xhdpi-notification-icon.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/icon/android/drawable-xxhdpi-icon.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/icon/android/drawable-xxhdpi-notification-icon.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/icon/android/drawable-xxxhdpi-icon.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/icon/android/drawable-xxxhdpi-notification-icon.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/icon/android/icon-36-hdpi.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/icon/android/icon-48-hdpi.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/icon/ios/icon-1024.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/icon/ios/icon-20.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/icon/ios/icon-24@2x.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/icon/ios/icon-27.5@2x.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/icon/ios/icon-40.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/icon/ios/icon-40@2x.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/icon/ios/icon-40@3x.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/icon/ios/icon-44@2x.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/icon/ios/icon-50.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/icon/ios/icon-50@2x.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/icon/ios/icon-60.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/icon/ios/icon-60@2x.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/icon/ios/icon-60@3x.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/icon/ios/icon-72.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/icon/ios/icon-72@2x.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/icon/ios/icon-76.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/icon/ios/icon-76@2x.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/icon/ios/icon-83.5@2x.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/icon/ios/icon-86@2x.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/icon/ios/icon-98@2x.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/icon/ios/icon-small.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/icon/ios/icon-small@2x.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/icon/ios/icon-small@3x.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/icon/ios/icon.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/icon/ios/icon@2x.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/icon.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/notification_icon.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/screen/android/drawable-land-hdpi-screen.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/screen/android/drawable-land-hdpi.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/screen/android/drawable-land-ldpi-screen.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/screen/android/drawable-land-ldpi.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/screen/android/drawable-land-mdpi-screen.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/screen/android/drawable-land-mdpi.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/screen/android/drawable-land-xhdpi-screen.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/screen/android/drawable-land-xhdpi.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/screen/android/drawable-land-xxhdpi-screen.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/screen/android/drawable-land-xxxhdpi-screen.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/screen/android/drawable-port-hdpi-screen.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/screen/android/drawable-port-hdpi.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/screen/android/drawable-port-ldpi-screen.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/screen/android/drawable-port-ldpi.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/screen/android/drawable-port-mdpi-screen.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/screen/android/drawable-port-mdpi.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/screen/android/drawable-port-xhdpi-screen.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/screen/android/drawable-port-xhdpi.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/screen/android/drawable-port-xxhdpi-screen.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/screen/android/drawable-port-xxxhdpi-screen.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/screen/ios/Default-2436h.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/screen/ios/Default-568h@2x~iphone.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/screen/ios/Default-667h.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/screen/ios/Default-736h.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/screen/ios/Default-Landscape-2436h.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/screen/ios/Default-Landscape-736h.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/screen/ios/Default-Landscape@2x~ipad.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/screen/ios/Default-Landscape@~ipadpro.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/screen/ios/Default-Landscape~ipad.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/screen/ios/Default-Portrait@2x~ipad.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/screen/ios/Default-Portrait@~ipadpro.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/screen/ios/Default-Portrait~ipad.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/screen/ios/Default@2x~ipad~anyany.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/screen/ios/Default@2x~ipad~comany.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/screen/ios/Default@2x~iphone.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/screen/ios/Default@2x~iphone~anyany.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/screen/ios/Default@2x~iphone~comany.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/screen/ios/Default@2x~iphone~comcom.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/screen/ios/Default@2x~universal~anyany.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/screen/ios/Default@3x~iphone~anyany.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/screen/ios/Default@3x~iphone~anycom.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/screen/ios/Default@3x~iphone~comany.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/screen/ios/Default~iphone.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/screen/ios/ipx-landscape.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/screen/ios/ipx-portrait.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/res/screen.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/__copydata.ftl +12 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-autenticacao/.bowerrc +4 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-autenticacao/README.md +32 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-autenticacao/bower.json +30 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-autenticacao/bowerscripts/clean_dependencies.js +3 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-autenticacao/bowerscripts/package-lock.json +187 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-autenticacao/bowerscripts/package.json +14 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-autenticacao/cordova.js +1863 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-autenticacao/cordova_plugins.js +9 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-autenticacao/css/app.css +4 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-autenticacao/favicon.ico +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-autenticacao/i18n/locale_en_us.json +166 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-autenticacao/i18n/locale_pt_br.json +166 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-autenticacao/img/nophoto.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-autenticacao/img/user.png +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-autenticacao/index.html.ftl +76 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-autenticacao/js/blockly/auth/ChangePassword.blockly +44 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-autenticacao/js/blockly/auth/ChangePassword.blockly.js +56 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-autenticacao/js/blockly/auth/Home.blockly +12 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-autenticacao/js/blockly/auth/Home.blockly.js +13 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-autenticacao/js/blockly/auth/Login.blockly +42 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-autenticacao/js/blockly/auth/Login.blockly.js +25 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-autenticacao/js/blockly/auth/UserControl.blockly +129 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-autenticacao/js/blockly/auth/UserControl.blockly.js +64 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-autenticacao/js/events.js +0 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-autenticacao/js/index.js +48 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-autenticacao/views/error/403.view.html +7 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-autenticacao/views/error/404.view.html +7 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-autenticacao/views/logged/home.view.html +20 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-autenticacao/views/logged/menu.view.html +61 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-autenticacao/views/logged/user.view.html +74 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-autenticacao/views/login.view.html.ftl +44 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-autenticacao/views/public/home.view.html +19 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-autenticacao/views/public/menu.view.html +15 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-autenticacao/views/public/reset-password-email.view.html +28 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-autenticacao/views/public/reset-password.view.html +29 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-autenticacao/views/public/signup.view.html +36 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-sem-autenticacao/__linksInherit +10 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-sem-autenticacao/js/blockly/auth/Home.blockly +12 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-sem-autenticacao/js/blockly/auth/Home.blockly.js +13 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-sem-autenticacao/views/error/403.view.html +7 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-sem-autenticacao/views/error/404.view.html +7 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-sem-autenticacao/views/public/home.view.html +22 -0
- package/project/M/cronapp-rad-project-mobile-cordova/src/main/mobileapp/www/www-sem-autenticacao/views/public/menu.view.html +15 -0
- package/project/M/cronapp-rad-project-mobile-cordova/template.properties +129 -0
- package/project/M/cronapp-rad-project-mobile-cordova/template_en_US.properties +29 -0
- package/project/M/cronapp-rad-project-mobile-cordova/template_pt_BR.properties +28 -0
- package/project/M/group.properties +5 -0
- package/project/M/mobile.png +0 -0
- package/project/N/group.properties +4 -0
- package/project/N/nodejs-express/.vscode/launch.json +14 -0
- package/project/N/nodejs-express/app.js +44 -0
- package/project/N/nodejs-express/bin/www +90 -0
- package/project/N/nodejs-express/package-lock.json +928 -0
- package/project/N/nodejs-express/package.json +16 -0
- package/project/N/nodejs-express/project.png +0 -0
- package/project/N/nodejs-express/project.svg +1 -0
- package/project/N/nodejs-express/public/stylesheets/style.css +8 -0
- package/project/N/nodejs-express/routes/index.js +9 -0
- package/project/N/nodejs-express/routes/users.js +9 -0
- package/project/N/nodejs-express/template.properties +6 -0
- package/project/N/nodejs-express/template_en_US.properties +2 -0
- package/project/N/nodejs-express/views/error.pug +6 -0
- package/project/N/nodejs-express/views/index.pug +5 -0
- package/project/N/nodejs-express/views/layout.pug +7 -0
- package/project/N/nodejs.png +0 -0
- package/project/P/django/.vscode/launch.json +21 -0
- package/project/P/django/cronapp/settings.py +121 -0
- package/project/P/django/cronapp/urls.py +21 -0
- package/project/P/django/cronapp/wsgi.py +16 -0
- package/project/P/django/manage.py +19 -0
- package/project/P/django/project.svg +48 -0
- package/project/P/django/requirements.txt +6 -0
- package/project/P/django/template.properties +5 -0
- package/project/P/django/template_en_US.properties +2 -0
- package/project/P/flask/.vscode/launch.json +24 -0
- package/project/P/flask/main.py +14 -0
- package/project/P/flask/project.svg +45 -0
- package/project/P/flask/requirements.txt +6 -0
- package/project/P/flask/template.properties +5 -0
- package/project/P/flask/template_en_US.properties +2 -0
- package/project/P/group.properties +4 -0
- package/project/P/python.png +0 -0
- package/project/P/scientific/.vscode/launch.json +15 -0
- package/project/P/scientific/README.md +0 -0
- package/project/P/scientific/main.py +27 -0
- package/project/P/scientific/project.png +0 -0
- package/project/P/scientific/project.svg +48 -0
- package/project/P/scientific/requirements.txt +2 -0
- package/project/P/scientific/template.properties +5 -0
- package/project/P/scientific/template_en_US.properties +2 -0
- package/project/W/cronapp-rad-project/.dockerignore +5 -0
- package/project/W/cronapp-rad-project/.gitignore.ftl +28 -0
- package/project/W/cronapp-rad-project/Dockerfile +26 -0
- package/project/W/cronapp-rad-project/Jenkinsfile +43 -0
- package/project/W/cronapp-rad-project/README.md +24 -0
- package/project/W/cronapp-rad-project/__copydata.ftl +22 -0
- package/project/W/cronapp-rad-project/config/__copydata.ftl +5 -0
- package/project/W/cronapp-rad-project/config/app.config.ftl +17 -0
- package/project/W/cronapp-rad-project/config/context.xml.ftl +27 -0
- package/project/W/cronapp-rad-project/config/test/Tests.side +59 -0
- package/project/W/cronapp-rad-project/diagram/__copydata.ftl +11 -0
- package/project/W/cronapp-rad-project/diagram/app.umlcd +4493 -0
- package/project/W/cronapp-rad-project/diagram/app.umlcd.ftl +1000 -0
- package/project/W/cronapp-rad-project/diagram/domain.umlcd +10596 -0
- package/project/W/cronapp-rad-project/docs/architecture/architecture.html +50 -0
- package/project/W/cronapp-rad-project/docs/architecture/img/layers.png +0 -0
- package/project/W/cronapp-rad-project/docs/login.prototype +24 -0
- package/project/W/cronapp-rad-project/pom.xml.ftl +236 -0
- package/project/W/cronapp-rad-project/project.svg +1 -0
- package/project/W/cronapp-rad-project/spring-boot.png +0 -0
- package/project/W/cronapp-rad-project/src/__copydata.ftl +7 -0
- package/project/W/cronapp-rad-project/src/main/__copydata.ftl +18 -0
- package/project/W/cronapp-rad-project/src/main/java/META-INF/__copydata.ftl +7 -0
- package/project/W/cronapp-rad-project/src/main/java/META-INF/customQuery.json.ftl +2192 -0
- package/project/W/cronapp-rad-project/src/main/java/META-INF/datasources/__copydata.ftl +23 -0
- package/project/W/cronapp-rad-project/src/main/java/META-INF/datasources/appUserManager.datasource.json +96 -0
- package/project/W/cronapp-rad-project/src/main/java/META-INF/datasources/auditlogcleanup.datasource.json +103 -0
- package/project/W/cronapp-rad-project/src/main/java/META-INF/datasources/auditlogquery.datasource.json +104 -0
- package/project/W/cronapp-rad-project/src/main/java/META-INF/datasources/auth.datasource.json +120 -0
- package/project/W/cronapp-rad-project/src/main/java/META-INF/datasources/device.datasource.json +96 -0
- package/project/W/cronapp-rad-project/src/main/java/META-INF/datasources/keyManager.datasource.json +126 -0
- package/project/W/cronapp-rad-project/src/main/java/META-INF/datasources/roleManager.datasource.json +255 -0
- package/project/W/cronapp-rad-project/src/main/java/META-INF/datasources/roleSecurableManager.datasource.json +127 -0
- package/project/W/cronapp-rad-project/src/main/java/META-INF/datasources/roleSecurables.datasource.json +158 -0
- package/project/W/cronapp-rad-project/src/main/java/META-INF/datasources/roles.datasource.json +143 -0
- package/project/W/cronapp-rad-project/src/main/java/META-INF/datasources/securableManager.datasource.json +127 -0
- package/project/W/cronapp-rad-project/src/main/java/META-INF/datasources/securableViews.datasource.json +186 -0
- package/project/W/cronapp-rad-project/src/main/java/META-INF/datasources/securables.datasource.json +134 -0
- package/project/W/cronapp-rad-project/src/main/java/META-INF/datasources/userManager.datasource.json +271 -0
- package/project/W/cronapp-rad-project/src/main/java/META-INF/datasources/userRoleManager.datasource.json +127 -0
- package/project/W/cronapp-rad-project/src/main/java/META-INF/datasources/userSecurableManager.datasource.json +127 -0
- package/project/W/cronapp-rad-project/src/main/java/META-INF/datasources/userSecurables.datasource.json +135 -0
- package/project/W/cronapp-rad-project/src/main/java/META-INF/persistence.xml.ftl +41 -0
- package/project/W/cronapp-rad-project/src/main/java/SpringBootMain.java.ftl +48 -0
- package/project/W/cronapp-rad-project/src/main/java/__copydata.ftl +26 -0
- package/project/W/cronapp-rad-project/src/main/java/app/AppConfiguration.java.ftl +66 -0
- package/project/W/cronapp-rad-project/src/main/java/app/__copydata.ftl +25 -0
- package/project/W/cronapp-rad-project/src/main/java/app/dao/ApplicationDAO.java +24 -0
- package/project/W/cronapp-rad-project/src/main/java/app/dao/ApplicationUserDAO.java +24 -0
- package/project/W/cronapp-rad-project/src/main/java/app/dao/AuditLogDAO.java +24 -0
- package/project/W/cronapp-rad-project/src/main/java/app/dao/DeviceDAO.java +24 -0
- package/project/W/cronapp-rad-project/src/main/java/app/dao/LoginDAO.java +24 -0
- package/project/W/cronapp-rad-project/src/main/java/app/dao/RoleDAO.java +24 -0
- package/project/W/cronapp-rad-project/src/main/java/app/dao/RoleSecurableDAO.java +24 -0
- package/project/W/cronapp-rad-project/src/main/java/app/dao/SecurableDAO.java +24 -0
- package/project/W/cronapp-rad-project/src/main/java/app/dao/UserDAO.java +24 -0
- package/project/W/cronapp-rad-project/src/main/java/app/dao/UserRoleDAO.java +24 -0
- package/project/W/cronapp-rad-project/src/main/java/app/dao/UserSecurableDAO.java +24 -0
- package/project/W/cronapp-rad-project/src/main/java/app/dao/ViewDAO.java +24 -0
- package/project/W/cronapp-rad-project/src/main/java/app/dao/__copydata.ftl +34 -0
- package/project/W/cronapp-rad-project/src/main/java/app/entity/Application.java +111 -0
- package/project/W/cronapp-rad-project/src/main/java/app/entity/ApplicationUser.java +139 -0
- package/project/W/cronapp-rad-project/src/main/java/app/entity/AuditLog.java +399 -0
- package/project/W/cronapp-rad-project/src/main/java/app/entity/Device.java +241 -0
- package/project/W/cronapp-rad-project/src/main/java/app/entity/Login.java +190 -0
- package/project/W/cronapp-rad-project/src/main/java/app/entity/Role.java +218 -0
- package/project/W/cronapp-rad-project/src/main/java/app/entity/RoleSecurable.java +139 -0
- package/project/W/cronapp-rad-project/src/main/java/app/entity/Securable.java +139 -0
- package/project/W/cronapp-rad-project/src/main/java/app/entity/User.java +565 -0
- package/project/W/cronapp-rad-project/src/main/java/app/entity/UserRole.java +139 -0
- package/project/W/cronapp-rad-project/src/main/java/app/entity/UserSecurable.java +139 -0
- package/project/W/cronapp-rad-project/src/main/java/app/entity/View.java +375 -0
- package/project/W/cronapp-rad-project/src/main/java/app/entity/__copydata.ftl +34 -0
- package/project/W/cronapp-rad-project/src/main/java/app/populate.json.ftl +976 -0
- package/project/W/cronapp-rad-project/src/main/java/auth/permission/SecurityPermission.java.ftl +56 -0
- package/project/W/cronapp-rad-project/src/main/java/blockly/Application.blockly +12 -0
- package/project/W/cronapp-rad-project/src/main/java/blockly/Application.java +30 -0
- package/project/W/cronapp-rad-project/src/main/java/blockly/RoleManager.blockly +60 -0
- package/project/W/cronapp-rad-project/src/main/java/blockly/RoleManager.java +61 -0
- package/project/W/cronapp-rad-project/src/main/java/blockly/UserControl.blockly +90 -0
- package/project/W/cronapp-rad-project/src/main/java/blockly/UserControl.java +55 -0
- package/project/W/cronapp-rad-project/src/main/java/blockly/UserManager.blockly +79 -0
- package/project/W/cronapp-rad-project/src/main/java/blockly/UserManager.java +76 -0
- package/project/W/cronapp-rad-project/src/main/java/i18n/Messages.java +31 -0
- package/project/W/cronapp-rad-project/src/main/java/i18n/Messages_en_US.properties +56 -0
- package/project/W/cronapp-rad-project/src/main/java/i18n/Messages_pt_BR.properties +57 -0
- package/project/W/cronapp-rad-project/src/main/java/i18n/translate.string.ftl +1 -0
- package/project/W/cronapp-rad-project/src/main/java/social.properties +14 -0
- package/project/W/cronapp-rad-project/src/main/resources/application.properties +25 -0
- package/project/W/cronapp-rad-project/src/main/resources/templates/reset-password.ftlh +113 -0
- package/project/W/cronapp-rad-project/src/main/resources/templates/reset-password_pt_BR.ftlh +114 -0
- package/project/W/cronapp-rad-project/src/main/webapp-autenticacao/webapp/.bowerrc +4 -0
- package/project/W/cronapp-rad-project/src/main/webapp-autenticacao/webapp/bower.json +30 -0
- package/project/W/cronapp-rad-project/src/main/webapp-autenticacao/webapp/bowerscripts/clean_dependencies.js +3 -0
- package/project/W/cronapp-rad-project/src/main/webapp-autenticacao/webapp/bowerscripts/package-lock.json +187 -0
- package/project/W/cronapp-rad-project/src/main/webapp-autenticacao/webapp/bowerscripts/package.json +14 -0
- package/project/W/cronapp-rad-project/src/main/webapp-autenticacao/webapp/cronapp.json +1 -0
- package/project/W/cronapp-rad-project/src/main/webapp-autenticacao/webapp/css/app.css.ftl +0 -0
- package/project/W/cronapp-rad-project/src/main/webapp-autenticacao/webapp/i18n/locale_en_us.json +182 -0
- package/project/W/cronapp-rad-project/src/main/webapp-autenticacao/webapp/i18n/locale_pt_br.json +182 -0
- package/project/W/cronapp-rad-project/src/main/webapp-autenticacao/webapp/index.html.ftl +97 -0
- package/project/W/cronapp-rad-project/src/main/webapp-autenticacao/webapp/js/blockly/MutualAuth.blockly +21 -0
- package/project/W/cronapp-rad-project/src/main/webapp-autenticacao/webapp/js/blockly/MutualAuth.blockly.js +38 -0
- package/project/W/cronapp-rad-project/src/main/webapp-autenticacao/webapp/js/blockly/UserControl.blockly +129 -0
- package/project/W/cronapp-rad-project/src/main/webapp-autenticacao/webapp/js/blockly/UserControl.blockly.js +63 -0
- package/project/W/cronapp-rad-project/src/main/webapp-autenticacao/webapp/js/blockly/privacy/Cookies.blockly +417 -0
- package/project/W/cronapp-rad-project/src/main/webapp-autenticacao/webapp/js/blockly/privacy/Cookies.blockly.js +129 -0
- package/project/W/cronapp-rad-project/src/main/webapp-autenticacao/webapp/js/custom.controllers.js +11 -0
- package/project/W/cronapp-rad-project/src/main/webapp-autenticacao/webapp/js/customModules.js +1 -0
- package/project/W/cronapp-rad-project/src/main/webapp-autenticacao/webapp/js/events.js +0 -0
- package/project/W/cronapp-rad-project/src/main/webapp-autenticacao/webapp/views/admin/__copydata.ftl +3 -0
- package/project/W/cronapp-rad-project/src/main/webapp-autenticacao/webapp/views/admin/auditlog.search.view.html +95 -0
- package/project/W/cronapp-rad-project/src/main/webapp-autenticacao/webapp/views/admin/role.view.html +99 -0
- package/project/W/cronapp-rad-project/src/main/webapp-autenticacao/webapp/views/admin/user.view.html +130 -0
- package/project/W/cronapp-rad-project/src/main/webapp-autenticacao/webapp/views/error/403.view.html +13 -0
- package/project/W/cronapp-rad-project/src/main/webapp-autenticacao/webapp/views/error/404.view.html +13 -0
- package/project/W/cronapp-rad-project/src/main/webapp-autenticacao/webapp/views/logged/__copydata.ftl +1 -0
- package/project/W/cronapp-rad-project/src/main/webapp-autenticacao/webapp/views/logged/home.view.html.ftl +99 -0
- package/project/W/cronapp-rad-project/src/main/webapp-autenticacao/webapp/views/logged/home2.view.html.ftl +162 -0
- package/project/W/cronapp-rad-project/src/main/webapp-autenticacao/webapp/views/login.view.html.ftl +195 -0
- package/project/W/cronapp-rad-project/src/main/webapp-autenticacao/webapp/views/public/home.view.html.ftl +25 -0
- package/project/W/cronapp-rad-project/src/main/webapp-autenticacao/webapp/views/public/privacy/cookies.view.html +75 -0
- package/project/W/cronapp-rad-project/src/main/webapp-autenticacao/webapp/views/public/reset-password.view.html.ftl +30 -0
- package/project/W/cronapp-rad-project/src/main/webapp-autenticacao/webapp/views/public/signup.view.html +65 -0
- package/project/W/cronapp-rad-project/src/main/webapp-sem-autenticacao/webapp/__linksInherit +3 -0
- package/project/W/cronapp-rad-project/src/main/webapp-sem-autenticacao/webapp/cronapp.json +1 -0
- package/project/W/cronapp-rad-project/src/main/webapp-sem-autenticacao/webapp/index.html.ftl +84 -0
- package/project/W/cronapp-rad-project/src/main/webapp-sem-autenticacao/webapp/views/__linksInherit +1 -0
- package/project/W/cronapp-rad-project/src/main/webapp-sem-autenticacao/webapp/views/home.view.html.ftl +39 -0
- package/project/W/cronapp-rad-project/template.properties +116 -0
- package/project/W/cronapp-rad-project/template_en_US.properties +32 -0
- package/project/W/cronapp-rad-project/template_pt_BR.properties +32 -0
- package/project/W/group.properties +5 -0
- package/project/W/web.png +0 -0
- package/templates/low-code/aquamarine.png +0 -0
- package/templates/low-code/cerulean.png +0 -0
- package/templates/low-code/cosmo.png +0 -0
- package/templates/low-code/cyborg.png +0 -0
- package/templates/low-code/darkly.png +0 -0
- package/templates/low-code/data-layer/BUSINESS.ftl +340 -0
- package/templates/low-code/data-layer/DAO.ftl +46 -0
- package/templates/low-code/data-layer/ENTITIES.ftl +349 -0
- package/templates/low-code/data-layer/ENTITIESPK.ftl +119 -0
- package/templates/low-code/data-layer/Job.java.ftl +59 -0
- package/templates/low-code/data-layer/REST.ftl +359 -0
- package/templates/low-code/data-layer/RESTAPPLICATION.ftl +76 -0
- package/templates/low-code/data-layer/RESTWebService.ftl +106 -0
- package/templates/low-code/data-layer/RESTWebServicePageExample.ftl +64 -0
- package/templates/low-code/data-layer/SecurityPermission.java.ftl +43 -0
- package/templates/low-code/data-layer/SpringBootMain.java.ftl +44 -0
- package/templates/low-code/data-layer/TEST.ftl +9 -0
- package/templates/low-code/data-layer/dropbox/DROPBOX_CONSTANTS.ftl +1 -0
- package/templates/low-code/data-layer/dropbox/DROPBOX_DELETE.ftl +1 -0
- package/templates/low-code/data-layer/dropbox/DROPBOX_GET.ftl +1 -0
- package/templates/low-code/data-layer/dropbox/DROPBOX_LIST.ftl +1 -0
- package/templates/low-code/data-layer/dropbox/DROPBOX_POST.ftl +20 -0
- package/templates/low-code/data-layer/dropbox/DROPBOX_PUT.ftl +21 -0
- package/templates/low-code/data-layer/template.properties +58 -0
- package/templates/low-code/dsgov.png +0 -0
- package/templates/low-code/flatly.png +0 -0
- package/templates/low-code/fuse.png +0 -0
- package/templates/low-code/journal.png +0 -0
- package/templates/low-code/lumen.png +0 -0
- package/templates/low-code/material.png +0 -0
- package/templates/low-code/paper.png +0 -0
- package/templates/low-code/readable.png +0 -0
- package/templates/low-code/sandstone.png +0 -0
- package/templates/low-code/simplex.png +0 -0
- package/templates/low-code/slate.png +0 -0
- package/templates/low-code/spacelab.png +0 -0
- package/templates/low-code/superhero.png +0 -0
- package/templates/low-code/united.png +0 -0
- package/templates/low-code/yeti.png +0 -0
- package/user/.code/User/keybindings.json +3 -0
- package/user/.code/User/settings.json +6 -0
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
package ${entityPackage};
|
|
2
|
+
|
|
3
|
+
import java.io.*;
|
|
4
|
+
import javax.persistence.*;
|
|
5
|
+
import java.util.*;
|
|
6
|
+
import javax.xml.bind.annotation.*;
|
|
7
|
+
<#list clazz.imports as import>
|
|
8
|
+
import ${import};
|
|
9
|
+
</#list>
|
|
10
|
+
<#if (clazz.multitenantClass)>
|
|
11
|
+
import org.eclipse.persistence.annotations.*;
|
|
12
|
+
</#if>
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Classe que representa a tabela <#if tableName??>${tableName}<#else>${clazz.name?upper_case}</#if>
|
|
16
|
+
* @generated
|
|
17
|
+
*/
|
|
18
|
+
@Entity
|
|
19
|
+
@Table(name = "\"<#if tableName??><#if persistenceProvider == "oracle">${tableName?upper_case}<#else>${tableName}</#if><#else>${clazz.name?upper_case}</#if>\""<#if schemeName??>, schema="\"<#if persistenceProvider == "oracle">${schemeName?upper_case}<#else>${schemeName}</#if>\"" </#if>)
|
|
20
|
+
@NamedQueries({
|
|
21
|
+
<#list clazz.namedQueries as namedQuery>@NamedQuery(name = "${clazz.name?uncap_first}${namedQuery.name?cap_first}", query = "${namedQuery.query?replace('(\n)+', ' ','r')}")<#if namedQuery_has_next>,</#if></#list>
|
|
22
|
+
})
|
|
23
|
+
@XmlRootElement
|
|
24
|
+
<#if (clazz.multitenantClass)>
|
|
25
|
+
@Multitenant(MultitenantType.SINGLE_TABLE)
|
|
26
|
+
<#if (clazz.multitententFields?size > 1)>
|
|
27
|
+
@TenantDiscriminatorColumns({
|
|
28
|
+
</#if>
|
|
29
|
+
<#list clazz.multitententFields as field>
|
|
30
|
+
@TenantDiscriminatorColumn(name = "${field.dbFieldName}", contextProperty = "${field.multitenantContext}")<#if field_has_next>,</#if>
|
|
31
|
+
</#list>
|
|
32
|
+
</#if>
|
|
33
|
+
public class ${clazz.name} implements Serializable {
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* UID da classe, necessário na serialização
|
|
37
|
+
* @generated
|
|
38
|
+
*/
|
|
39
|
+
private static final long serialVersionUID = 1L;
|
|
40
|
+
<#list clazz.fields as field>
|
|
41
|
+
<#if field.primaryKey>
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @generated
|
|
45
|
+
*/
|
|
46
|
+
@Id
|
|
47
|
+
<#if field.generationType?? && field.generationType == "Identity">
|
|
48
|
+
<#if persistenceProvider == "mysql">
|
|
49
|
+
@GeneratedValue(strategy = GenerationType.AUTO)
|
|
50
|
+
<#else>
|
|
51
|
+
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
52
|
+
</#if>
|
|
53
|
+
</#if>
|
|
54
|
+
${field.modifier} <#if field.arrayRelation>${field.type}<#else>${field.type}</#if> ${field.name}<#if field.defaultValue?has_content> = ${field.defaultValue}<#elseif field.primaryKey && field.generationType?? && field.generationType == "UUID"> = UUID.randomUUID().toString().toUpperCase()</#if>;
|
|
55
|
+
<#else>
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @generated
|
|
59
|
+
*/
|
|
60
|
+
<#if field.relation>
|
|
61
|
+
@OneToOne
|
|
62
|
+
<#elseif field.reverseRelation>
|
|
63
|
+
@ManyToOne
|
|
64
|
+
</#if>
|
|
65
|
+
<#if (field.relationNames?size == 1)>
|
|
66
|
+
<#list field.relationNames?keys as key>
|
|
67
|
+
<#if key??>
|
|
68
|
+
@JoinColumn(name="${key}", referencedColumnName = "${field.relationNames[key]}", insertable=${field.insertable?c}, updatable=${field.updatable?c})
|
|
69
|
+
</#if>
|
|
70
|
+
</#list>
|
|
71
|
+
<#elseif (field.relationNames?size > 1)>
|
|
72
|
+
<#assign i= field.relationNames?size>
|
|
73
|
+
@JoinColumns({
|
|
74
|
+
<#list field.relationNames?keys as key>
|
|
75
|
+
<#if key??>
|
|
76
|
+
@JoinColumn(name="${key}", referencedColumnName = "${field.relationNames[key]}", insertable=${field.insertable?c}, updatable=${field.updatable?c})
|
|
77
|
+
<#if (i>1)>,
|
|
78
|
+
</#if>
|
|
79
|
+
</#if>
|
|
80
|
+
<#assign i = i-1>
|
|
81
|
+
</#list>
|
|
82
|
+
})
|
|
83
|
+
<#elseif field.arrayRelation>
|
|
84
|
+
@OneToMany(fetch = FetchType.LAZY, mappedBy="${field.mappedBy}", insertable=${field.insertable?c}, updatable=${field.updatable?c})
|
|
85
|
+
<#else>
|
|
86
|
+
<#if field.transient>
|
|
87
|
+
@Transient
|
|
88
|
+
<#else>
|
|
89
|
+
<#if field.isDate()>
|
|
90
|
+
@Temporal(TemporalType.DATE)
|
|
91
|
+
<#elseif field.isTime()>
|
|
92
|
+
@Temporal(TemporalType.TIME)
|
|
93
|
+
<#elseif field.isTimestamp()>
|
|
94
|
+
@Temporal(TemporalType.TIMESTAMP)
|
|
95
|
+
</#if>
|
|
96
|
+
@Column(name = "${field.dbFieldName}"<#if !field.primaryKey>, nullable = ${field.nullable?c}, unique = ${field.unique?c}</#if><#if field.length??>, length=${field.length?c}</#if><#if field.precision??>, precision=${field.precision?c}</#if><#if field.scale??>, scale=${field.scale?c}</#if>, insertable=${field.insertable?c}, updatable=${field.updatable?c})
|
|
97
|
+
</#if>
|
|
98
|
+
</#if>
|
|
99
|
+
<#if (field.ignore)>
|
|
100
|
+
@JsonIgnore
|
|
101
|
+
</#if>
|
|
102
|
+
${field.modifier} <#if field.arrayRelation>${field.type}<#else>${field.type}</#if> ${field.name}<#if field.defaultValue?has_content> = ${field.defaultValue}</#if>;
|
|
103
|
+
</#if>
|
|
104
|
+
</#list>
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Construtor
|
|
108
|
+
* @generated
|
|
109
|
+
*/
|
|
110
|
+
public ${clazz.name}(){
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
<#list clazz.fields as field>
|
|
114
|
+
/**
|
|
115
|
+
* Obtém ${field.name}
|
|
116
|
+
*
|
|
117
|
+
* return ${field.name}
|
|
118
|
+
* @generated
|
|
119
|
+
*/
|
|
120
|
+
public ${field.type} get${field.name?cap_first}(){
|
|
121
|
+
return this.${field.name};
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Define ${field.name}
|
|
126
|
+
* @param ${field.name} ${field.name}
|
|
127
|
+
* @generated
|
|
128
|
+
*/
|
|
129
|
+
public ${clazz.name} set${field.name?cap_first}(${field.type} ${field.name}){
|
|
130
|
+
this.${field.name} = ${field.name};
|
|
131
|
+
return this;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
</#list>
|
|
135
|
+
/**
|
|
136
|
+
* @generated
|
|
137
|
+
*/
|
|
138
|
+
@Override
|
|
139
|
+
public boolean equals(Object obj) {
|
|
140
|
+
if (this == obj) return true;
|
|
141
|
+
if (obj == null || getClass() != obj.getClass()) return false;
|
|
142
|
+
${clazz.name} object = (${clazz.name})obj;
|
|
143
|
+
<#list clazz.fields as field>
|
|
144
|
+
<#if field.primaryKey>
|
|
145
|
+
if (${field.name} != null ? !${field.name}.equals(object.${field.name}) : object.${field.name} != null) return false;
|
|
146
|
+
</#if>
|
|
147
|
+
</#list>
|
|
148
|
+
return true;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* @generated
|
|
153
|
+
*/
|
|
154
|
+
@Override
|
|
155
|
+
public int hashCode() {
|
|
156
|
+
int result = 1;
|
|
157
|
+
<#list clazz.fields as field>
|
|
158
|
+
<#if field.primaryKey && !field.isTypePrimitive()>
|
|
159
|
+
result = 31 * result + ((${field.name} == null) ? 0 : ${field.name}.hashCode());
|
|
160
|
+
</#if>
|
|
161
|
+
</#list>
|
|
162
|
+
return result;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
}
|
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
package ${restPackage};
|
|
2
|
+
|
|
3
|
+
import java.util.*;
|
|
4
|
+
import javax.ws.rs.*;
|
|
5
|
+
import javax.ws.rs.core.*;
|
|
6
|
+
import javax.persistence.*;
|
|
7
|
+
|
|
8
|
+
import ${restPackage}.util.*;
|
|
9
|
+
|
|
10
|
+
import ${daoPackage}.*;
|
|
11
|
+
import ${entityPackage}.*;
|
|
12
|
+
import ${bussinessPackage}.*;
|
|
13
|
+
import ${exceptionPackage}.*;
|
|
14
|
+
<#if daoPackage != sessionManagerPackage>
|
|
15
|
+
import ${sessionManagerPackage}.*;
|
|
16
|
+
</#if>
|
|
17
|
+
import javax.servlet.http.HttpServletRequest;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Publicando metodos de negocio via REST
|
|
21
|
+
* @generated
|
|
22
|
+
**/
|
|
23
|
+
@Path("/${clazz.name}")
|
|
24
|
+
@Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML})
|
|
25
|
+
@Consumes({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML})
|
|
26
|
+
public class ${clazz.name}REST implements RESTService<${clazz.name}> {
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @generated
|
|
30
|
+
*/
|
|
31
|
+
private SessionManager session;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @generated
|
|
35
|
+
*/
|
|
36
|
+
private ${clazz.name}Business business;
|
|
37
|
+
<#list clazz.allRelations as relation>
|
|
38
|
+
/**
|
|
39
|
+
* @generated
|
|
40
|
+
*/
|
|
41
|
+
private ${relation.name}Business ${relation.name?uncap_first}Business;
|
|
42
|
+
|
|
43
|
+
</#list>
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @generated
|
|
47
|
+
*/
|
|
48
|
+
@Context
|
|
49
|
+
private HttpServletRequest request;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @generated
|
|
53
|
+
*/
|
|
54
|
+
public ${clazz.name}REST() {
|
|
55
|
+
this.session = SessionManager.getInstance();
|
|
56
|
+
this.session.getEntityManager().clear();
|
|
57
|
+
this.business = new ${clazz.name}Business(session);
|
|
58
|
+
<#list clazz.allRelations as relation>
|
|
59
|
+
this.${relation.name?uncap_first}Business = new ${relation.name}Business(session);
|
|
60
|
+
</#list>
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* @generated
|
|
65
|
+
*/
|
|
66
|
+
@POST
|
|
67
|
+
public Response post(${clazz.name} entity) {
|
|
68
|
+
try {
|
|
69
|
+
session.begin();
|
|
70
|
+
business.save(entity);
|
|
71
|
+
session.commit();
|
|
72
|
+
business.refresh(entity);
|
|
73
|
+
return Response.ok(entity).build();
|
|
74
|
+
}
|
|
75
|
+
catch(Exception exception){
|
|
76
|
+
session.rollBack();
|
|
77
|
+
throw new CustomWebApplicationException(exception);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* @generated
|
|
83
|
+
*/
|
|
84
|
+
@PUT
|
|
85
|
+
public Response put(${clazz.name} entity) {
|
|
86
|
+
try {
|
|
87
|
+
session.begin();
|
|
88
|
+
${clazz.name} updatedEntity = business.update(entity);
|
|
89
|
+
session.commit();
|
|
90
|
+
return Response.ok(updatedEntity).build();
|
|
91
|
+
}
|
|
92
|
+
catch(Exception exception){
|
|
93
|
+
session.rollBack();
|
|
94
|
+
throw new CustomWebApplicationException(exception);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* @generated
|
|
100
|
+
*/
|
|
101
|
+
@PUT
|
|
102
|
+
@Path("/<#list clazz.primaryKeys as field>{${field.name}}<#if field_has_next>/</#if></#list>")
|
|
103
|
+
public Response putWithId(${clazz.name} entity) {
|
|
104
|
+
try {
|
|
105
|
+
session.begin();
|
|
106
|
+
${clazz.name} updatedEntity = business.update(entity);
|
|
107
|
+
session.commit();
|
|
108
|
+
return Response.ok(updatedEntity).build();
|
|
109
|
+
}
|
|
110
|
+
catch(Exception exception){
|
|
111
|
+
session.rollBack();
|
|
112
|
+
throw new CustomWebApplicationException(exception);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* @generated
|
|
118
|
+
*/
|
|
119
|
+
@DELETE
|
|
120
|
+
public Response delete(${clazz.name} entity) {
|
|
121
|
+
try {
|
|
122
|
+
session.begin();
|
|
123
|
+
${clazz.name} updatedEntity = business.update(entity);
|
|
124
|
+
business.delete(updatedEntity);
|
|
125
|
+
session.commit();
|
|
126
|
+
return Response.ok().build();
|
|
127
|
+
}
|
|
128
|
+
catch (Exception exception) {
|
|
129
|
+
session.rollBack();
|
|
130
|
+
throw new CustomWebApplicationException(exception);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* @generated
|
|
136
|
+
*/
|
|
137
|
+
@DELETE
|
|
138
|
+
@Path("/<#list clazz.primaryKeys as field>{${field.name}}<#if field_has_next>/</#if></#list>")
|
|
139
|
+
public Response delete(<#list clazz.primaryKeys as field>@PathParam("${field.name}") ${field.type} ${field.name}<#if field_has_next>, </#if></#list>) {
|
|
140
|
+
try {
|
|
141
|
+
session.begin();
|
|
142
|
+
if (business.deleteById(<#list clazz.primaryKeys as field>${field.name}<#if field_has_next>, </#if></#list>) > 0) {
|
|
143
|
+
session.commit();
|
|
144
|
+
return Response.ok().build();
|
|
145
|
+
} else {
|
|
146
|
+
return Response.status(404).build();
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
catch (Exception exception) {
|
|
150
|
+
session.rollBack();
|
|
151
|
+
throw new CustomWebApplicationException(exception);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
<#list clazz.fields as field>
|
|
156
|
+
</#list>
|
|
157
|
+
<#list clazz.oneToManyRelation as relation>
|
|
158
|
+
/**
|
|
159
|
+
* OneToMany Relationship GET
|
|
160
|
+
* @generated
|
|
161
|
+
*/
|
|
162
|
+
@GET
|
|
163
|
+
@Path("/<#list clazz.primaryKeys as field>{instance${field.name?cap_first}}<#if field_has_next>/</#if></#list><#if clazz.primaryKeys?size gt 0>/</#if>${relation.relationName?cap_first}")
|
|
164
|
+
public GenericEntity<List<${relation.clazz.name}>> find${relation.relationName?cap_first}(<#list clazz.primaryKeys as field>@PathParam("instance${field.name?cap_first}") ${field.type} instance${field.name?cap_first}<#if field_has_next>, </#if></#list><#if clazz.primaryKeys?size gt 0>, </#if>@DefaultValue("100") @QueryParam("limit") int limit, @DefaultValue("0") @QueryParam("offset") int offset) {
|
|
165
|
+
return new GenericEntity<List<${relation.clazz.name}>>(this.business.find${relation.relationName?cap_first}(<#list clazz.primaryKeys as field>instance${field.name?cap_first}<#if field_has_next>, </#if></#list><#if clazz.primaryKeys?size gt 0>, </#if>limit, offset)){};
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* OneToMany Relationship DELETE
|
|
170
|
+
* @generated
|
|
171
|
+
*/
|
|
172
|
+
@DELETE
|
|
173
|
+
@Path("/<#list clazz.primaryKeys as field>{instance${field.name?cap_first}}<#if field_has_next>/</#if></#list><#if clazz.primaryKeys?size gt 0>/</#if>${relation.relationName?cap_first}/<#list relation.clazz.primaryKeys as field>{relation${field.name?cap_first}}<#if field_has_next>/</#if></#list>")
|
|
174
|
+
public Response delete${relation.relationName?cap_first}(<#list relation.clazz.primaryKeys as field>@PathParam("relation${field.name?cap_first}") ${field.type} relation${field.name?cap_first}<#if field_has_next>, </#if></#list>) {
|
|
175
|
+
try {
|
|
176
|
+
session.begin();
|
|
177
|
+
if (this.${relation.clazz.name?uncap_first}Business.deleteById(<#list relation.clazz.primaryKeys as field>relation${field.name?cap_first}<#if field_has_next>, </#if></#list>) > 0) {
|
|
178
|
+
session.commit();
|
|
179
|
+
return Response.ok().build();
|
|
180
|
+
} else {
|
|
181
|
+
session.rollBack();
|
|
182
|
+
return Response.status(404).build();
|
|
183
|
+
}
|
|
184
|
+
} catch(Exception exception) {
|
|
185
|
+
session.rollBack();
|
|
186
|
+
throw new CustomWebApplicationException(exception);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* OneToMany Relationship PUT
|
|
192
|
+
* @generated
|
|
193
|
+
*/
|
|
194
|
+
@PUT
|
|
195
|
+
@Path("/<#list clazz.primaryKeys as field>{instance${field.name?cap_first}}<#if field_has_next>/</#if></#list><#if clazz.primaryKeys?size gt 0>/</#if>${relation.relationName?cap_first}/<#list relation.clazz.primaryKeys as field>{relation${field.name?cap_first}}<#if field_has_next>/</#if></#list>")
|
|
196
|
+
public Response put${relation.relationName?cap_first}(${relation.clazz.name} entity, <#list relation.clazz.primaryKeys as field>@PathParam("relation${field.name?cap_first}") ${field.type} relation${field.name?cap_first}<#if field_has_next>, </#if></#list>) {
|
|
197
|
+
try {
|
|
198
|
+
session.begin();
|
|
199
|
+
${relation.clazz.name} updatedEntity = this.${relation.clazz.name?uncap_first}Business.update(entity);
|
|
200
|
+
session.commit();
|
|
201
|
+
return Response.ok(updatedEntity).build();
|
|
202
|
+
} catch(Exception exception) {
|
|
203
|
+
session.rollBack();
|
|
204
|
+
throw new CustomWebApplicationException(exception);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* OneToMany Relationship POST
|
|
210
|
+
* @generated
|
|
211
|
+
*/
|
|
212
|
+
@POST
|
|
213
|
+
@Path("/<#list clazz.primaryKeys as field>{instance${field.name?cap_first}}<#if field_has_next>/</#if></#list><#if clazz.primaryKeys?size gt 0>/</#if>${relation.relationName?cap_first}")
|
|
214
|
+
public Response post${relation.relationName?cap_first}(${relation.clazz.name} entity, <#list clazz.primaryKeys as field>@PathParam("instance${field.name?cap_first}") ${field.type} instance${field.name?cap_first}<#if field_has_next>, </#if></#list>) {
|
|
215
|
+
try {
|
|
216
|
+
session.begin();
|
|
217
|
+
${clazz.name} ${relation.relationField.name} = this.business.findById(<#list clazz.primaryKeys as field>instance${field.name?cap_first}<#if field_has_next>, </#if></#list>);
|
|
218
|
+
entity.set${relation.relationField.name?cap_first}(${relation.relationField.name});
|
|
219
|
+
this.${relation.clazz.name?uncap_first}Business.save(entity);
|
|
220
|
+
session.commit();
|
|
221
|
+
this.${relation.clazz.name?uncap_first}Business.refresh(entity);
|
|
222
|
+
return Response.ok(entity).build();
|
|
223
|
+
} catch(Exception exception) {
|
|
224
|
+
session.rollBack();
|
|
225
|
+
throw new CustomWebApplicationException(exception);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
</#list>
|
|
230
|
+
<#list clazz.manyToManyRelation as relation>
|
|
231
|
+
/**
|
|
232
|
+
* ManyToMany Relationship GET
|
|
233
|
+
* @generated
|
|
234
|
+
*/
|
|
235
|
+
@GET
|
|
236
|
+
@Path("/<#list clazz.primaryKeys as field>{instance${field.name?cap_first}}<#if field_has_next>/</#if></#list><#if clazz.primaryKeys?size gt 0>/</#if>${relation.relationName?cap_first}")
|
|
237
|
+
public GenericEntity<List<${relation.relationClassField.type}>> list${relation.relationName?cap_first}(<#list clazz.primaryKeys as field>@PathParam("instance${field.name?cap_first}") ${field.type} instance${field.name?cap_first}<#if field_has_next>, </#if></#list><#if clazz.primaryKeys?size gt 0>, </#if>@DefaultValue("100") @QueryParam("limit") int limit, @DefaultValue("0") @QueryParam("offset") int offset) {
|
|
238
|
+
return new GenericEntity<List<${relation.relationClassField.type}>>(this.business.list${relation.relationName?cap_first}(<#list clazz.primaryKeys as field>instance${field.name?cap_first}<#if field_has_next>, </#if></#list><#if clazz.primaryKeys?size gt 0>, </#if>limit, offset)){};
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* ManyToMany Relationship POST
|
|
243
|
+
* @generated
|
|
244
|
+
*/
|
|
245
|
+
@POST
|
|
246
|
+
@Path("/<#list clazz.primaryKeys as field>{instance${field.name?cap_first}}<#if field_has_next>/</#if></#list><#if clazz.primaryKeys?size gt 0>/</#if>${relation.relationName?cap_first}")
|
|
247
|
+
public Response post${relation.relationName?cap_first}(${relation.relationClassField.type} entity, <#list clazz.primaryKeys as field>@PathParam("instance${field.name?cap_first}") ${field.type} instance${field.name?cap_first}<#if field_has_next>, </#if></#list>) {
|
|
248
|
+
try {
|
|
249
|
+
session.begin();
|
|
250
|
+
${relation.relationClassField.clazz.name} new${relation.relationClassField.clazz.name?cap_first} = new ${relation.relationClassField.clazz.name}();
|
|
251
|
+
|
|
252
|
+
${clazz.name} instance = this.business.findById(<#list clazz.primaryKeys as field>instance${field.name?cap_first}<#if field_has_next>, </#if></#list>);
|
|
253
|
+
|
|
254
|
+
new${relation.relationClassField.clazz.name?cap_first}.set${relation.relationClassField.name?cap_first}(entity);
|
|
255
|
+
new${relation.relationClassField.clazz.name?cap_first}.set${relation.associativeClassField.name?cap_first}(instance);
|
|
256
|
+
|
|
257
|
+
this.${relation.relationClassField.clazz.name?uncap_first}Business.save(new${relation.relationClassField.clazz.name?cap_first});
|
|
258
|
+
session.commit();
|
|
259
|
+
this.${relation.relationClassField.clazz.name?uncap_first}Business.refresh(new${relation.relationClassField.clazz.name?cap_first});
|
|
260
|
+
return Response.ok(new${relation.relationClassField.clazz.name?cap_first}.get${relation.associativeClassField.name?cap_first}()).build();
|
|
261
|
+
} catch(Exception exception) {
|
|
262
|
+
session.rollBack();
|
|
263
|
+
throw new CustomWebApplicationException(exception);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* ManyToMany Relationship DELETE
|
|
269
|
+
* @generated
|
|
270
|
+
*/
|
|
271
|
+
@DELETE
|
|
272
|
+
@Path("/<#list clazz.primaryKeys as field>{instance${field.name?cap_first}}<#if field_has_next>/</#if></#list><#if clazz.primaryKeys?size gt 0>/</#if>${relation.relationName?cap_first}/<#list relation.relationClass.primaryKeys as field>{relation${field.name?cap_first}}<#if field_has_next>/</#if></#list>")
|
|
273
|
+
public Response delete${relation.relationName?cap_first}(<#list clazz.primaryKeys as field>@PathParam("instance${field.name?cap_first}") ${field.type} instance${field.name?cap_first}<#if field_has_next>, </#if></#list>, <#list relation.relationClass.primaryKeys as field>@PathParam("relation${field.name?cap_first}") ${field.type} relation${field.name?cap_first}<#if field_has_next>, </#if></#list>) {
|
|
274
|
+
try {
|
|
275
|
+
session.begin();
|
|
276
|
+
if (this.business.delete${relation.relationName?cap_first}(<#list clazz.primaryKeys as field>instance${field.name?cap_first}<#if field_has_next>, </#if></#list><#if clazz.primaryKeys?size gt 0>, </#if><#list relation.relationClass.primaryKeys as field>relation${field.name?cap_first}<#if field_has_next>, </#if></#list>) > 0) {
|
|
277
|
+
session.commit();
|
|
278
|
+
return Response.ok().build();
|
|
279
|
+
} else {
|
|
280
|
+
session.rollBack();
|
|
281
|
+
return Response.status(404).build();
|
|
282
|
+
}
|
|
283
|
+
} catch(Exception exception) {
|
|
284
|
+
session.rollBack();
|
|
285
|
+
throw new CustomWebApplicationException(exception);
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
</#list>
|
|
290
|
+
<#list clazz.namedQueries as namedQuery><#if namedQuery.isRest()><#assign keys = namedQuery.params?keys>
|
|
291
|
+
/**
|
|
292
|
+
* NamedQuery ${namedQuery.name}
|
|
293
|
+
* @generated
|
|
294
|
+
*/
|
|
295
|
+
<#if namedQuery.queryType == "select">@GET</#if>
|
|
296
|
+
<#if namedQuery.queryType == "update">@PUT</#if>
|
|
297
|
+
<#if namedQuery.queryType == "delete">@DELETE</#if>
|
|
298
|
+
<#if namedQuery.name != "list">@Path("/${namedQuery.name}<#if keys?size gt 0>/</#if><#list keys as key>{${key}}<#if key_has_next>/</#if></#list>")</#if>
|
|
299
|
+
public <#if !namedQuery.void>GenericEntity<List<${clazz.name}>><#else>Response</#if> ${namedQuery.name}(<#list keys as key>@PathParam("${key}")${namedQuery.params[key]} ${key}<#if key_has_next>, </#if></#list><#if !namedQuery.void><#if keys?size gt 0>, </#if>@DefaultValue("100") @QueryParam("limit") int limit, @DefaultValue("0") @QueryParam("offset") int offset</#if>){
|
|
300
|
+
<#if !namedQuery.void>return new GenericEntity<List<${clazz.name}>>(business.${namedQuery.name}(<#list keys as key>${key}<#if key_has_next>, </#if></#list><#if !namedQuery.void><#if keys?size gt 0>, </#if>limit, offset</#if>)){};</#if>
|
|
301
|
+
<#if namedQuery.void>
|
|
302
|
+
try {
|
|
303
|
+
session.begin();
|
|
304
|
+
business.${namedQuery.name}(<#list keys as key>${key}<#if key_has_next>, </#if></#list>);
|
|
305
|
+
session.commit();
|
|
306
|
+
return Response.ok().build();
|
|
307
|
+
} catch (Exception exception) {
|
|
308
|
+
session.rollBack();
|
|
309
|
+
throw new CustomWebApplicationException(exception);
|
|
310
|
+
}
|
|
311
|
+
</#if>
|
|
312
|
+
}
|
|
313
|
+
</#if>
|
|
314
|
+
</#list>
|
|
315
|
+
<#list clazz.namedQueries as namedQuery><#assign keys = namedQuery.params?keys><#if namedQuery.isRest()>
|
|
316
|
+
<#if namedQuery.name != "list">
|
|
317
|
+
<#if keys?size gt 0>
|
|
318
|
+
/**
|
|
319
|
+
* NamedQuery ${namedQuery.name}
|
|
320
|
+
* @generated
|
|
321
|
+
*/
|
|
322
|
+
<#if namedQuery.queryType == "select">@GET</#if>
|
|
323
|
+
<#if namedQuery.queryType == "update">@PUT</#if>
|
|
324
|
+
<#if namedQuery.queryType == "delete">@DELETE</#if>
|
|
325
|
+
@Path("/${namedQuery.name}")
|
|
326
|
+
public <#if !namedQuery.void>GenericEntity<List<${clazz.name}>><#else>int</#if> ${namedQuery.name}Params(<#list keys as key>@QueryParam("${key}")${namedQuery.params[key]} ${key}<#if key_has_next>, </#if></#list><#if !namedQuery.void><#if keys?size gt 0>, </#if>@DefaultValue("100") @QueryParam("limit") int limit, @DefaultValue("0") @QueryParam("offset") int offset</#if>){
|
|
327
|
+
return new GenericEntity<List<${clazz.name}>>(business.${namedQuery.name}(<#list keys as key>${key}<#if key_has_next>, </#if></#list><#if !namedQuery.void><#if keys?size gt 0>, </#if>limit, offset</#if>)){};
|
|
328
|
+
}
|
|
329
|
+
</#if>
|
|
330
|
+
</#if>
|
|
331
|
+
</#if>
|
|
332
|
+
</#list>
|
|
333
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
package ${restPackage};
|
|
2
|
+
|
|
3
|
+
import javax.ws.rs.ApplicationPath;
|
|
4
|
+
import org.glassfish.jersey.server.ResourceConfig;
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Realiza disponibiliza os pacotes rest.
|
|
9
|
+
* @generated
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
@ApplicationPath("${restPath}")
|
|
13
|
+
public class RESTApplication extends ResourceConfig {
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* @generated
|
|
17
|
+
*/
|
|
18
|
+
public RESTApplication() {
|
|
19
|
+
packages("${restPackage}");
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
package ${exceptionPackage};
|
|
2
|
+
|
|
3
|
+
import javax.ws.rs.core.*;
|
|
4
|
+
import javax.ws.rs.WebApplicationException;
|
|
5
|
+
import java.io.*;
|
|
6
|
+
import javax.xml.bind.annotation.*;
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @generated
|
|
10
|
+
*/
|
|
11
|
+
public class CustomWebApplicationException extends WebApplicationException implements Serializable {
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* UID da classe, necessário na serialização
|
|
15
|
+
* @generated
|
|
16
|
+
*/
|
|
17
|
+
private static final long serialVersionUID = 2127320450194633408l;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Create a HTTP 404 (Not Found) exception.
|
|
21
|
+
* @generated
|
|
22
|
+
*/
|
|
23
|
+
public CustomWebApplicationException() {
|
|
24
|
+
super(Response.ok().build());
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Create a HTTP 404 (Not Found) exception.
|
|
29
|
+
*
|
|
30
|
+
* @param message
|
|
31
|
+
* the String that is the entity of the 404 response.
|
|
32
|
+
* @generated
|
|
33
|
+
*/
|
|
34
|
+
public CustomWebApplicationException(ExceptionInfo message) {
|
|
35
|
+
super(Response.status(500).entity(message).type(MediaType.APPLICATION_JSON).build());
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @generated
|
|
40
|
+
*/
|
|
41
|
+
static ExceptionInfo toExceptionInfo(Throwable exception) {
|
|
42
|
+
StringWriter sw = new StringWriter();
|
|
43
|
+
PrintWriter pw = new PrintWriter(sw);
|
|
44
|
+
exception.printStackTrace(pw);
|
|
45
|
+
|
|
46
|
+
String title = exception.getCause() == null ? exception.getMessage() : exception.getCause().toString();
|
|
47
|
+
|
|
48
|
+
ExceptionInfo message = new ExceptionInfo(500, title.toString(), sw.toString());
|
|
49
|
+
return message;
|
|
50
|
+
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @generated
|
|
55
|
+
*/
|
|
56
|
+
public CustomWebApplicationException(Throwable exception) {
|
|
57
|
+
this(toExceptionInfo(exception));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* @generated
|
|
64
|
+
*/
|
|
65
|
+
@XmlAccessorType(XmlAccessType.FIELD)
|
|
66
|
+
@XmlRootElement
|
|
67
|
+
class ExceptionInfo {
|
|
68
|
+
private int status;
|
|
69
|
+
private String msg, desc;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* @generated
|
|
73
|
+
*/
|
|
74
|
+
public ExceptionInfo() {
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* @generated
|
|
79
|
+
*/
|
|
80
|
+
public ExceptionInfo(int status, String msg, String desc) {
|
|
81
|
+
this.status = status;
|
|
82
|
+
this.msg = msg;
|
|
83
|
+
this.desc = desc;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* @generated
|
|
88
|
+
*/
|
|
89
|
+
public int getStatus() {
|
|
90
|
+
return status;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* @generated
|
|
95
|
+
*/
|
|
96
|
+
public String getMessage() {
|
|
97
|
+
return msg;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* @generated
|
|
102
|
+
*/
|
|
103
|
+
public String getDescription() {
|
|
104
|
+
return desc;
|
|
105
|
+
}
|
|
106
|
+
}
|