@eui/cli 15.0.0-next.1 → 15.0.0-next.11
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/.version.properties +1 -1
- package/lib/build.js +0 -66
- package/lib/cli.js +8 -32
- package/lib/config.js +0 -60
- package/lib/generators.js +5 -77
- package/lib/maven-build/build.xml +0 -104
- package/lib/maven-build/pom.xml +0 -37
- package/lib/skeletons/_angular/base/angular.json +5 -8
- package/lib/skeletons/_angular/base/package.json +3 -3
- package/lib/skeletons/_angular/base/src/app/app.component.html +1 -1
- package/lib/skeletons/_angular/base/src/app/app.component.ts +3 -3
- package/lib/skeletons/_angular/base/src/app/core/core.module.ts +1 -1
- package/lib/skeletons/_angular/base/src/app/features/home/home.module.ts +1 -1
- package/lib/skeletons/_angular/base/src/app/features/module1/module1.module.ts +1 -1
- package/lib/skeletons/_angular/base/src/app/features/module2/module2.module.ts +1 -1
- package/lib/skeletons/_angular/base/src/app/shared/shared.module.ts +28 -6
- package/lib/skeletons/_angular/base/tsconfig.json +11 -4
- package/lib/skeletons/_angular/base-mobile/package.json +5 -28
- package/lib/skeletons/_angular/base-mobile/src/app/core/core.module.ts +1 -1
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/module1.module.ts +1 -1
- package/lib/skeletons/_angular/base-mobile/src/app/features/module2/module2.module.ts +1 -1
- package/lib/skeletons/_angular/options/ecl/angular.json +11 -1
- package/lib/skeletons/_angular/options/ecl/package.json +5 -5
- package/lib/skeletons/_angular/options/ecl/src/app/app.component.ts +2 -2
- package/lib/skeletons/_angular/options/ecl/src/config/global.ts +1 -5
- package/lib/skeletons/_angular/options/openid-jwt/package.json +4 -4
- package/lib/skeletons/_angular/options/openid-jwt/src/app/core/core.module.ts +1 -1
- package/lib/skeletons/web-symfony/myapp-web/package.json +2 -2
- package/lib/utils.js +0 -2
- package/package.json +2 -2
- package/lib/__old-to-review/build-feature.js +0 -74
- package/lib/__old-to-review/build-module.js +0 -113
- package/lib/__old-to-review/cli-feature.js +0 -42
- package/lib/__old-to-review/cli-module.js +0 -65
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/.editorconfig +0 -16
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/.euirc.json +0 -29
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/.stylelintrc +0 -24
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/README.md +0 -26
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/angular.json +0 -203
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/e2e/protractor.conf.js +0 -28
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/e2e/src/app.e2e-spec.ts +0 -14
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/e2e/src/app.po.ts +0 -11
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/e2e/tsconfig.e2e.json +0 -13
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/gitignore_TO_REPLACE +0 -44
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/json/core/buildings.js +0 -22
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/json/core/config.js +0 -32
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/json/core/people.js +0 -7
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/json/core/translated.api.js +0 -7
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/json/core/user.js +0 -34
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/json/lowdb.js +0 -29
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/json/middlewares/delay.js +0 -10
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/json/middlewares/errors.js +0 -73
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/json/middlewares/sse.js +0 -28
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/json/routes.json +0 -3
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/json/server.js +0 -75
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/mean/app/models/user.js +0 -7
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/mean/app/routes/config_route.js +0 -8
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/mean/app/routes/index.js +0 -7
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/mean/app/routes/user_routes.js +0 -24
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/mean/db/db.json +0 -12
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/mean/server.js +0 -16
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/package.json +0 -44
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/proxy-mock.conf.json +0 -6
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/proxy.conf.json +0 -13
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/app-routing.module.ts +0 -22
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/app-starter.service.ts +0 -251
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/app.component.html +0 -43
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/app.component.spec.ts +0 -93
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/app.component.ts +0 -137
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/app.module.ts +0 -27
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/core/components/.gitkeep +0 -0
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/core/core.module.ts +0 -86
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/core/operators.ts +0 -10
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/core/reducers/index.ts +0 -33
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/home/home-routing.module.ts +0 -15
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/home/home.component.html +0 -39
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/home/home.component.spec.ts +0 -77
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/home/home.component.ts +0 -8
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/home/home.module.ts +0 -18
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/module1/components/page1/page1.component.html +0 -7
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/module1/components/page1/page1.component.spec.ts +0 -35
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/module1/components/page1/page1.component.ts +0 -7
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/module1/components/page2/page2.component.html +0 -7
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/module1/components/page2/page2.component.spec.ts +0 -35
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/module1/components/page2/page2.component.ts +0 -7
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/module1/module1-routing.module.ts +0 -18
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/module1/module1.component.html +0 -8
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/module1/module1.component.spec.ts +0 -43
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/module1/module1.component.ts +0 -8
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/module1/module1.module.ts +0 -21
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/module2/module2-routing.module.ts +0 -16
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/module2/module2.component.html +0 -8
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/module2/module2.component.spec.ts +0 -35
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/module2/module2.component.ts +0 -7
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/module2/module2.module.ts +0 -17
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/shared/shared.module.ts +0 -21
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/shared/testing/router.mock.ts +0 -18
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/assets/.gitkeep +0 -0
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/assets/config/env-json-config.json +0 -9
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/assets/configuration.json +0 -9
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/assets/i18n/en.json +0 -7
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/assets/i18n/fr.json +0 -7
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/browserslist +0 -11
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/config/global.ts +0 -24
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/config/index.ts +0 -8
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/config/modules.ts +0 -4
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/environments/environment.dev.ts +0 -9
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/environments/environment.prod.ts +0 -28
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/environments/environment.ts +0 -9
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/favicon.ico +0 -0
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/index.html +0 -24
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/main.ts +0 -14
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/polyfills.ts +0 -86
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/styles.scss +0 -1
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/test.ts +0 -33
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/tsconfig.app.json +0 -14
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/tsconfig.spec.json +0 -18
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/tslint.json +0 -17
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/tsconfig-ci.json +0 -23
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/tsconfig.json +0 -23
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/tslint.json +0 -128
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/webpack.extra.js +0 -6
- package/lib/__old-to-review/skeletons/_angular/features/ApiQueue/src/app/features/api-queue/api-queue.module.ts +0 -30
- package/lib/__old-to-review/skeletons/_angular/features/ApiQueue/src/app/features/api-queue/form/form.component.html +0 -38
- package/lib/__old-to-review/skeletons/_angular/features/ApiQueue/src/app/features/api-queue/form/form.component.spec.ts +0 -101
- package/lib/__old-to-review/skeletons/_angular/features/ApiQueue/src/app/features/api-queue/form/form.component.ts +0 -142
- package/lib/__old-to-review/skeletons/_angular/features/DynamicComponent/src/app/features/dynamic-component/dynamic-component.module.ts +0 -10
- package/lib/__old-to-review/skeletons/_angular/features/DynamicConfiguration/src/app/features/dynamic-configuration/dynamic-configuration.module.ts +0 -31
- package/lib/__old-to-review/skeletons/_angular/features/ErrorHandling/src/app/core/core.module.ts +0 -74
- package/lib/__old-to-review/skeletons/_angular/features/ErrorHandling/src/app/features/error-handling/api.service.spec.ts +0 -49
- package/lib/__old-to-review/skeletons/_angular/features/ErrorHandling/src/app/features/error-handling/api.service.ts +0 -30
- package/lib/__old-to-review/skeletons/_angular/features/ErrorHandling/src/app/features/error-handling/error-handling.component.html +0 -22
- package/lib/__old-to-review/skeletons/_angular/features/ErrorHandling/src/app/features/error-handling/error-handling.component.spec.ts +0 -81
- package/lib/__old-to-review/skeletons/_angular/features/ErrorHandling/src/app/features/error-handling/error-handling.component.ts +0 -31
- package/lib/__old-to-review/skeletons/_angular/features/ErrorHandling/src/app/features/error-handling/error-handling.module.ts +0 -62
- package/lib/__old-to-review/skeletons/_angular/features/ErrorHandling/src/config/index.ts +0 -49
- package/lib/__old-to-review/skeletons/_angular/features/HttpInterceptor/src/app/features/http-interceptor/http-interceptor.module.ts +0 -10
- package/lib/__old-to-review/skeletons/_angular/features/Migration/src/app/features/migration/migration.module.ts +0 -22
- package/lib/__old-to-review/skeletons/_angular/features/Permission/src/app/features/permission/accessible/accessible.component.html +0 -29
- package/lib/__old-to-review/skeletons/_angular/features/Permission/src/app/features/permission/accessible/accessible.component.spec.ts +0 -123
- package/lib/__old-to-review/skeletons/_angular/features/Permission/src/app/features/permission/accessible/accessible.component.ts +0 -37
- package/lib/__old-to-review/skeletons/_angular/features/Permission/src/app/features/permission/auth-guard.service.spec.ts +0 -49
- package/lib/__old-to-review/skeletons/_angular/features/Permission/src/app/features/permission/auth-guard.service.ts +0 -40
- package/lib/__old-to-review/skeletons/_angular/features/Permission/src/app/features/permission/inaccessible/inaccessible.component.html +0 -3
- package/lib/__old-to-review/skeletons/_angular/features/Permission/src/app/features/permission/inaccessible/inaccessible.component.spec.ts +0 -25
- package/lib/__old-to-review/skeletons/_angular/features/Permission/src/app/features/permission/inaccessible/inaccessible.component.ts +0 -14
- package/lib/__old-to-review/skeletons/_angular/features/Permission/src/app/features/permission/main/main.component.html +0 -3
- package/lib/__old-to-review/skeletons/_angular/features/Permission/src/app/features/permission/main/main.component.spec.ts +0 -33
- package/lib/__old-to-review/skeletons/_angular/features/Permission/src/app/features/permission/main/main.component.ts +0 -13
- package/lib/__old-to-review/skeletons/_angular/features/Permission/src/app/features/permission/permission.module.ts +0 -34
- package/lib/__old-to-review/skeletons/_angular/features/Translation/src/app/features/translation/components/main/main.component.html +0 -18
- package/lib/__old-to-review/skeletons/_angular/features/Translation/src/app/features/translation/components/main/main.component.spec.ts +0 -30
- package/lib/__old-to-review/skeletons/_angular/features/Translation/src/app/features/translation/components/main/main.component.ts +0 -56
- package/lib/__old-to-review/skeletons/_angular/features/Translation/src/app/features/translation/pipes/service-translate.pipe.ts +0 -22
- package/lib/__old-to-review/skeletons/_angular/features/Translation/src/app/features/translation/services/api.service.ts +0 -43
- package/lib/__old-to-review/skeletons/_angular/features/Translation/src/app/features/translation/translation.module.ts +0 -37
- package/lib/__old-to-review/skeletons/_angular/features/Translation/src/assets/i18n/en.json +0 -31
- package/lib/__old-to-review/skeletons/_angular/features/Translation/src/assets/i18n/fr.json +0 -27
- package/lib/__old-to-review/skeletons/_angular/features/Translation/src/config/index.ts +0 -24
- package/lib/__old-to-review/skeletons/_angular/features/WebStorage/src/app/features/web-storage/main/main.component.html +0 -46
- package/lib/__old-to-review/skeletons/_angular/features/WebStorage/src/app/features/web-storage/main/main.component.spec.ts +0 -25
- package/lib/__old-to-review/skeletons/_angular/features/WebStorage/src/app/features/web-storage/main/main.component.ts +0 -93
- package/lib/__old-to-review/skeletons/_angular/features/WebStorage/src/app/features/web-storage/web-routing.module.ts +0 -18
- package/lib/__old-to-review/skeletons/_angular/features/WebStorage/src/app/features/web-storage/web-storage.module.ts +0 -53
- package/lib/__old-to-review/skeletons/_angular/features/full-json-mock/core/buildings.js +0 -22
- package/lib/__old-to-review/skeletons/_angular/features/full-json-mock/core/config.js +0 -32
- package/lib/__old-to-review/skeletons/_angular/features/full-json-mock/core/people.js +0 -7
- package/lib/__old-to-review/skeletons/_angular/features/full-json-mock/core/translated.api.js +0 -7
- package/lib/__old-to-review/skeletons/_angular/features/full-json-mock/core/user.js +0 -34
- package/lib/__old-to-review/skeletons/_angular/features/full-json-mock/lowdb.js +0 -29
- package/lib/__old-to-review/skeletons/_angular/features/full-json-mock/middlewares/delay.js +0 -10
- package/lib/__old-to-review/skeletons/_angular/features/full-json-mock/middlewares/errors.js +0 -73
- package/lib/__old-to-review/skeletons/_angular/features/full-json-mock/middlewares/sse.js +0 -28
- package/lib/__old-to-review/skeletons/_angular/features/full-json-mock/routes.json +0 -3
- package/lib/__old-to-review/skeletons/_angular/features/full-json-mock/server.js +0 -75
- package/lib/__old-to-review/skeletons/_angular/module-base/assets/i18n/en.json +0 -3
- package/lib/__old-to-review/skeletons/_angular/module-base/assets/i18n/fr.json +0 -3
- package/lib/__old-to-review/skeletons/_angular/module-base/karma.conf.js +0 -7
- package/lib/__old-to-review/skeletons/_angular/module-base/ng-package.json +0 -7
- package/lib/__old-to-review/skeletons/_angular/module-base/package.json +0 -4
- package/lib/__old-to-review/skeletons/_angular/module-base/src/index.ts +0 -7
- package/lib/__old-to-review/skeletons/_angular/module-base/src/lib/components/cmp1/cmp1.component.html +0 -1
- package/lib/__old-to-review/skeletons/_angular/module-base/src/lib/components/cmp1/cmp1.component.spec.ts +0 -25
- package/lib/__old-to-review/skeletons/_angular/module-base/src/lib/components/cmp1/cmp1.component.ts +0 -14
- package/lib/__old-to-review/skeletons/_angular/module-base/src/lib/core/module.service.spec.ts +0 -12
- package/lib/__old-to-review/skeletons/_angular/module-base/src/lib/core/module.service.ts +0 -8
- package/lib/__old-to-review/skeletons/_angular/module-base/src/lib/module.module.ts +0 -14
- package/lib/__old-to-review/skeletons/_angular/module-base/src/test.ts +0 -22
- package/lib/__old-to-review/skeletons/_angular/module-base/tsconfig.lib.json +0 -32
- package/lib/__old-to-review/skeletons/_angular/module-base/tsconfig.spec.json +0 -17
- package/lib/__old-to-review/skeletons/_angular/module-base/tslint.json +0 -17
- package/lib/__old-to-review/skeletons/_angular/module-element/package.json +0 -7
- package/lib/__old-to-review/skeletons/_angular/module-options/route-module/src/lib/module-routing.module.ts +0 -14
- package/lib/__old-to-review/skeletons/_angular/module-options/route-module/src/lib/module.module.ts +0 -17
- package/lib/skeletons/_commons/web-java-commons/jetty-run.bat +0 -3
- package/lib/skeletons/_commons/web-java-commons/pom.xml +0 -423
- package/lib/skeletons/_commons/web-java-commons/src/main/java/eu/europa/ec/digit/eui/angular2starter/servlet/Angular2RouterFilter.java +0 -25
- package/lib/skeletons/_commons/web-java-commons/src/main/java/eu/europa/ec/digit/eui/common/dto/UserDTO.java +0 -86
- package/lib/skeletons/_commons/web-java-commons/src/main/java/eu/europa/ec/digit/eui/entity/User.java +0 -97
- package/lib/skeletons/_commons/web-java-commons/src/main/java/eu/europa/ec/digit/eui/repository/UserPredicates.java +0 -32
- package/lib/skeletons/_commons/web-java-commons/src/main/java/eu/europa/ec/digit/eui/repository/UserRepository.java +0 -23
- package/lib/skeletons/_commons/web-java-commons/src/main/java/eu/europa/ec/digit/eui/service/UserService.java +0 -63
- package/lib/skeletons/_commons/web-java-commons/src/main/java/eu/europa/ec/digit/eui/web/api/ApiController.java +0 -40
- package/lib/skeletons/_commons/web-java-commons/src/main/resources/hsql-db-init.sql +0 -12
- package/lib/skeletons/_commons/web-java-commons/src/main/resources/jetty-webdefault.xml +0 -535
- package/lib/skeletons/_commons/web-java-commons/src/main/webapp/WEB-INF/applicationContext.xml +0 -12
- package/lib/skeletons/_commons/web-java-commons/src/main/webapp/WEB-INF/datasourceContext-hsql-db.xml +0 -49
- package/lib/skeletons/_commons/web-java-commons/src/main/webapp/WEB-INF/spring-REST-servlet.xml +0 -18
- package/lib/skeletons/_commons/web-java-commons/src/main/webapp/WEB-INF/web.xml +0 -35
- package/lib/skeletons/_commons/web-java-commons/src/main/webapp/WEB-INF/weblogic.xml +0 -41
- package/lib/skeletons/full-stack/maven.settings.template.xml +0 -144
- package/lib/skeletons/full-stack/myapp-common/pom.xml +0 -24
- package/lib/skeletons/full-stack/myapp-common/src/main/java/myapp/common/Constant.java +0 -10
- package/lib/skeletons/full-stack/myapp-common/src/main/java/myapp/common/dto/security/RightDTO.java +0 -52
- package/lib/skeletons/full-stack/myapp-common/src/main/java/myapp/common/dto/security/RoleDTO.java +0 -48
- package/lib/skeletons/full-stack/myapp-common/src/main/java/myapp/common/dto/security/UserDTO.java +0 -67
- package/lib/skeletons/full-stack/myapp-common/src/main/java/myapp/common/ecas/UserHolder.java +0 -53
- package/lib/skeletons/full-stack/myapp-common/src/main/java/myapp/common/exception/AppException.java +0 -57
- package/lib/skeletons/full-stack/myapp-common/src/main/java/myapp/common/exception/CodedException.java +0 -7
- package/lib/skeletons/full-stack/myapp-common/src/main/java/myapp/common/exception/NotFoundException.java +0 -17
- package/lib/skeletons/full-stack/myapp-common/src/main/java/myapp/common/exception/person/IdentityNotFoundException.java +0 -33
- package/lib/skeletons/full-stack/myapp-common/src/main/java/myapp/common/helper/ConversionHelper.java +0 -44
- package/lib/skeletons/full-stack/myapp-common/src/main/java/myapp/common/security/UserContext.java +0 -184
- package/lib/skeletons/full-stack/myapp-ear/pom.xml +0 -81
- package/lib/skeletons/full-stack/myapp-ear/src/main/application/META-INF/weblogic-application.xml +0 -18
- package/lib/skeletons/full-stack/myapp-persistence/pom.xml +0 -106
- package/lib/skeletons/full-stack/myapp-persistence/src/main/java/myapp/entity/security/Right.java +0 -58
- package/lib/skeletons/full-stack/myapp-persistence/src/main/java/myapp/entity/security/Role.java +0 -71
- package/lib/skeletons/full-stack/myapp-persistence/src/main/java/myapp/entity/security/User.java +0 -59
- package/lib/skeletons/full-stack/myapp-persistence/src/main/java/myapp/repository/security/SecurityRightRepository.java +0 -9
- package/lib/skeletons/full-stack/myapp-persistence/src/main/java/myapp/repository/security/SecurityRoleRepository.java +0 -10
- package/lib/skeletons/full-stack/myapp-persistence/src/main/java/myapp/repository/security/SecurityUserRepository.java +0 -10
- package/lib/skeletons/full-stack/myapp-persistence/src/main/resources/META-INF/persistence.xml.tmp +0 -27
- package/lib/skeletons/full-stack/myapp-service/pom.xml +0 -122
- package/lib/skeletons/full-stack/myapp-service/src/main/java/myapp/mapper/security/RightMapper.java +0 -24
- package/lib/skeletons/full-stack/myapp-service/src/main/java/myapp/mapper/security/RoleMapper.java +0 -19
- package/lib/skeletons/full-stack/myapp-service/src/main/java/myapp/mapper/security/UserMapper.java +0 -19
- package/lib/skeletons/full-stack/myapp-service/src/main/java/myapp/service/security/SecurityService.java +0 -242
- package/lib/skeletons/full-stack/myapp-service/src/main/java/myapp/service/security/UserDetailsServiceCustom.java +0 -85
- package/lib/skeletons/full-stack/myapp-web/pom.xml +0 -73
- package/lib/skeletons/full-stack/myapp-web/src/main/resources/datasourceContext-hsql-db.xml +0 -49
- package/lib/skeletons/full-stack/myapp-web/src/main/resources/datasourceContext-hsql.xml +0 -50
- package/lib/skeletons/full-stack/myapp-web/src/main/resources/datasourceContext.xml +0 -40
- package/lib/skeletons/full-stack/myapp-web/src/main/resources/ecas-config-myapp.xml +0 -40
- package/lib/skeletons/full-stack/myapp-web/src/main/resources/hsql-db-init.sql +0 -22
- package/lib/skeletons/full-stack/myapp-web/src/main/resources/log4j.xml +0 -36
- package/lib/skeletons/full-stack/myapp-web/src/main/resources/log4j.xml.ecas +0 -156
- package/lib/skeletons/full-stack/myapp-web/src/main/resources/spring-security.xml +0 -42
- package/lib/skeletons/full-stack/myapp-web/src/main/webapp/WEB-INF/applicationContext.xml +0 -18
- package/lib/skeletons/full-stack/myapp-web/src/main/webapp/WEB-INF/spring-REST-servlet.xml +0 -17
- package/lib/skeletons/full-stack/myapp-web/src/main/webapp/WEB-INF/web.xml +0 -113
- package/lib/skeletons/full-stack/myapp-web/src/main/webapp/WEB-INF/weblogic.xml +0 -45
- package/lib/skeletons/full-stack/myapp-web/src/main/webapp/index.jsp +0 -26
- package/lib/skeletons/full-stack/myapp-web-rest/pom.xml +0 -155
- package/lib/skeletons/full-stack/myapp-web-rest/src/main/java/myapp/web/SingleSignoutController.java +0 -106
- package/lib/skeletons/full-stack/myapp-web-rest/src/main/java/myapp/web/exception/ExceptionControllerAdvice.java +0 -23
- package/lib/skeletons/full-stack/myapp-web-rest/src/main/java/myapp/web/exception/ExceptionResponse.java +0 -19
- package/lib/skeletons/full-stack/myapp-web-rest/src/main/java/myapp/web/exception/RestException.java +0 -17
- package/lib/skeletons/full-stack/myapp-web-rest/src/main/java/myapp/web/filter/UserFilter.java +0 -48
- package/lib/skeletons/full-stack/myapp-web-rest/src/main/java/myapp/web/rest/TestResource.java +0 -42
- package/lib/skeletons/full-stack/myapp-web-rest/src/main/java/myapp/web/rest/UserDetailsResource.java +0 -23
- package/lib/skeletons/full-stack/myapp-web-rest/src/main/java/myapp/web/util/ecas/RbacEcasExtraGroupHandler.java +0 -35
- package/lib/skeletons/full-stack/myapp-web-rest-swagger/pom.xml +0 -23
- package/lib/skeletons/full-stack/myapp-web-rest-swagger/src/main/java/myapp/codegen/AbstractTypescriptClientCodegen.java +0 -362
- package/lib/skeletons/full-stack/myapp-web-rest-swagger/src/main/java/myapp/codegen/TypescriptClientCodegen.java +0 -245
- package/lib/skeletons/full-stack/myapp-web-rest-swagger/src/main/resources/META-INF/services/io.swagger.codegen.CodegenConfig +0 -1
- package/lib/skeletons/full-stack/myapp-web-rest-swagger/src/main/resources/typescript-codegen/README.mustache +0 -44
- package/lib/skeletons/full-stack/myapp-web-rest-swagger/src/main/resources/typescript-codegen/api.mustache +0 -228
- package/lib/skeletons/full-stack/myapp-web-rest-swagger/src/main/resources/typescript-codegen/apis.mustache +0 -7
- package/lib/skeletons/full-stack/myapp-web-rest-swagger/src/main/resources/typescript-codegen/classType.mustache +0 -3
- package/lib/skeletons/full-stack/myapp-web-rest-swagger/src/main/resources/typescript-codegen/configuration.mustache +0 -6
- package/lib/skeletons/full-stack/myapp-web-rest-swagger/src/main/resources/typescript-codegen/index.mustache +0 -5
- package/lib/skeletons/full-stack/myapp-web-rest-swagger/src/main/resources/typescript-codegen/licenseInfo.mustache +0 -23
- package/lib/skeletons/full-stack/myapp-web-rest-swagger/src/main/resources/typescript-codegen/model.mustache +0 -80
- package/lib/skeletons/full-stack/myapp-web-rest-swagger/src/main/resources/typescript-codegen/models.mustache +0 -5
- package/lib/skeletons/full-stack/myapp-web-rest-swagger/src/main/resources/typescript-codegen/package.mustache +0 -46
- package/lib/skeletons/full-stack/myapp-web-rest-swagger/src/main/resources/typescript-codegen/tsconfig.mustache +0 -27
- package/lib/skeletons/full-stack/myapp-web-rest-swagger/src/main/resources/typescript-codegen/typings.mustache +0 -5
- package/lib/skeletons/full-stack/myapp-web-rest-swagger/src/main/resources/typescript-codegen/variables.mustache +0 -3
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/pom.xml +0 -40
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/WEB-INF/web.xml +0 -9
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/WEB-INF/weblogic.xml +0 -30
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/css/print.css +0 -1
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/css/reset.css +0 -1
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/css/screen.css +0 -1
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/css/style.css +0 -1
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/css/typography.css +0 -0
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/fonts/DroidSans-Bold.ttf +0 -0
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/fonts/DroidSans.ttf +0 -0
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/images/collapse.gif +0 -0
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/images/expand.gif +0 -0
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/images/explorer_icons.png +0 -0
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/images/favicon-16x16.png +0 -0
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/images/favicon-32x32.png +0 -0
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/images/favicon.ico +0 -0
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/images/logo_small.png +0 -0
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/images/pet_store_api.png +0 -0
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/images/throbber.gif +0 -0
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/images/wordnik_api.png +0 -0
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/index.html +0 -108
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lang/ca.js +0 -53
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lang/el.js +0 -56
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lang/en.js +0 -56
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lang/es.js +0 -53
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lang/fr.js +0 -54
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lang/geo.js +0 -56
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lang/it.js +0 -52
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lang/ja.js +0 -56
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lang/ko-kr.js +0 -53
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lang/pl.js +0 -53
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lang/pt.js +0 -53
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lang/ru.js +0 -56
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lang/tr.js +0 -53
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lang/translator.js +0 -39
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lang/zh-cn.js +0 -56
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lib/backbone-min.js +0 -1
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lib/es5-shim.js +0 -1
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lib/handlebars-4.0.5.js +0 -3
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lib/highlight.9.1.0.pack.js +0 -1
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lib/highlight.9.1.0.pack_extended.js +0 -1
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lib/jquery-1.8.0.min.js +0 -3
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lib/jquery.ba-bbq.min.js +0 -1
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lib/jquery.slideto.min.js +0 -1
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lib/jquery.wiggle.min.js +0 -1
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lib/js-yaml.min.js +0 -2
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lib/jsoneditor.min.js +0 -5
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lib/lodash.min.js +0 -2
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lib/marked.js +0 -1
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lib/object-assign-pollyfill.js +0 -1
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lib/sanitize-html.min.js +0 -4
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lib/swagger-oauth.js +0 -1
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/o2c.html +0 -20
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/swagger-ui.js +0 -25378
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/swagger-ui.min.js +0 -15
- package/lib/skeletons/full-stack/package.json +0 -17
- package/lib/skeletons/full-stack/pom.xml +0 -500
- package/lib/skeletons/web-spring-boot-todo/myapp-web/pom.xml +0 -65
- package/lib/skeletons/web-spring-boot-todo/myapp-web/src/main/angular/src/app/app-routing.module.ts +0 -18
- package/lib/skeletons/web-spring-boot-todo/myapp-web/src/main/angular/src/app/features/buildings/buildings-routing.module.ts +0 -16
- package/lib/skeletons/web-spring-boot-todo/myapp-web/src/main/angular/src/app/features/buildings/buildings.module.ts +0 -18
- package/lib/skeletons/web-spring-boot-todo/myapp-web/src/main/angular/src/app/features/buildings/components/buildings-overview.component.css +0 -11
- package/lib/skeletons/web-spring-boot-todo/myapp-web/src/main/angular/src/app/features/buildings/components/buildings-overview.component.html +0 -66
- package/lib/skeletons/web-spring-boot-todo/myapp-web/src/main/angular/src/app/features/buildings/components/buildings-overview.component.ts +0 -72
- package/lib/skeletons/web-spring-boot-todo/myapp-web/src/main/angular/src/app/features/buildings/models/address.model.ts +0 -11
- package/lib/skeletons/web-spring-boot-todo/myapp-web/src/main/angular/src/app/features/buildings/models/building.model.ts +0 -7
- package/lib/skeletons/web-spring-boot-todo/myapp-web/src/main/angular/src/app/features/buildings/services/buildings.service.ts +0 -20
- package/lib/skeletons/web-spring-boot-todo/myapp-web/src/main/angular/src/app/features/home/home.component.html +0 -9
- package/lib/skeletons/web-spring-boot-todo/myapp-web/src/main/angular/src/app/shared/models/page.model.ts +0 -63
- package/lib/skeletons/web-spring-boot-todo/myapp-web/src/main/angular/src/environments/environment.ts +0 -9
- package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/pom.xml +0 -84
- package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/java/myapp/MyappApplication.java +0 -46
- package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/java/myapp/domain/Address.java +0 -65
- package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/java/myapp/domain/Building.java +0 -44
- package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/java/myapp/repositories/BuildingRepository.java +0 -11
- package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/java/myapp/resources/BuildingResource.java +0 -26
- package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/java/myapp/resources/SwaggerConfig.java +0 -21
- package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/java/myapp/resources/support/HateoasPageableHandlerMethodArgumentResolver.java +0 -45
- package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/java/myapp/resources/support/HypermediaSupport.java +0 -25
- package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/java/myapp/resources/support/PageJsonSerializer.java +0 -17
- package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/java/myapp/security/CachingPreventionFilter.java +0 -29
- package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/java/myapp/security/CsrfPreventionFilter.java +0 -35
- package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/java/myapp/security/FakeAuthenticationFilter.java +0 -372
- package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/java/myapp/security/SecurityConfig.java +0 -42
- package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/java/myapp/services/BuildingSearchCriteria.java +0 -26
- package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/java/myapp/services/BuildingService.java +0 -10
- package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/java/myapp/services/BuildingServiceImpl.java +0 -26
- package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/resources/application.properties +0 -0
- package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/resources/data.sql +0 -11
- package/lib/skeletons/web-spring-boot-todo/pom.xml +0 -30
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
2
|
-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
|
3
|
-
<modelVersion>4.0.0</modelVersion>
|
|
4
|
-
<parent>
|
|
5
|
-
<groupId>@app.group.id@.@app.name@</groupId>
|
|
6
|
-
<version>0.0.1-SNAPSHOT</version>
|
|
7
|
-
<artifactId>@app.name@</artifactId>
|
|
8
|
-
</parent>
|
|
9
|
-
|
|
10
|
-
<artifactId>@app.name@-web-rest</artifactId>
|
|
11
|
-
<name>@app.name.display@ REST module</name>
|
|
12
|
-
|
|
13
|
-
<dependencies>
|
|
14
|
-
|
|
15
|
-
<dependency>
|
|
16
|
-
<groupId>javax.servlet</groupId>
|
|
17
|
-
<artifactId>servlet-api</artifactId>
|
|
18
|
-
</dependency>
|
|
19
|
-
|
|
20
|
-
<dependency>
|
|
21
|
-
<groupId>org.springframework</groupId>
|
|
22
|
-
<artifactId>spring-beans</artifactId>
|
|
23
|
-
</dependency>
|
|
24
|
-
<dependency>
|
|
25
|
-
<groupId>org.springframework</groupId>
|
|
26
|
-
<artifactId>spring-expression</artifactId>
|
|
27
|
-
</dependency>
|
|
28
|
-
|
|
29
|
-
<dependency>
|
|
30
|
-
<groupId>org.springframework</groupId>
|
|
31
|
-
<artifactId>spring-aop</artifactId>
|
|
32
|
-
</dependency>
|
|
33
|
-
<dependency>
|
|
34
|
-
<groupId>org.springframework</groupId>
|
|
35
|
-
<artifactId>spring-core</artifactId>
|
|
36
|
-
</dependency>
|
|
37
|
-
<dependency>
|
|
38
|
-
<groupId>org.springframework</groupId>
|
|
39
|
-
<artifactId>spring-jdbc</artifactId>
|
|
40
|
-
</dependency>
|
|
41
|
-
<dependency>
|
|
42
|
-
<groupId>org.springframework</groupId>
|
|
43
|
-
<artifactId>spring-tx</artifactId>
|
|
44
|
-
</dependency>
|
|
45
|
-
<dependency>
|
|
46
|
-
<groupId>org.springframework</groupId>
|
|
47
|
-
<artifactId>spring-context-support</artifactId>
|
|
48
|
-
</dependency>
|
|
49
|
-
<dependency>
|
|
50
|
-
<groupId>org.springframework</groupId>
|
|
51
|
-
<artifactId>spring-context</artifactId>
|
|
52
|
-
</dependency>
|
|
53
|
-
<dependency>
|
|
54
|
-
<groupId>org.springframework</groupId>
|
|
55
|
-
<artifactId>spring-web</artifactId>
|
|
56
|
-
</dependency>
|
|
57
|
-
<dependency>
|
|
58
|
-
<groupId>org.springframework</groupId>
|
|
59
|
-
<artifactId>spring-webmvc</artifactId>
|
|
60
|
-
</dependency>
|
|
61
|
-
|
|
62
|
-
<dependency>
|
|
63
|
-
<groupId>com.fasterxml.jackson.core</groupId>
|
|
64
|
-
<artifactId>jackson-databind</artifactId>
|
|
65
|
-
</dependency>
|
|
66
|
-
<dependency>
|
|
67
|
-
<groupId>javax.inject</groupId>
|
|
68
|
-
<artifactId>javax.inject</artifactId>
|
|
69
|
-
</dependency>
|
|
70
|
-
|
|
71
|
-
<dependency>
|
|
72
|
-
<groupId>commons-fileupload</groupId>
|
|
73
|
-
<artifactId>commons-fileupload</artifactId>
|
|
74
|
-
</dependency>
|
|
75
|
-
|
|
76
|
-
<dependency>
|
|
77
|
-
<groupId>org.apache.poi</groupId>
|
|
78
|
-
<artifactId>poi</artifactId>
|
|
79
|
-
</dependency>
|
|
80
|
-
|
|
81
|
-
<dependency>
|
|
82
|
-
<groupId>org.springframework.security</groupId>
|
|
83
|
-
<artifactId>spring-security-core</artifactId>
|
|
84
|
-
</dependency>
|
|
85
|
-
|
|
86
|
-
<dependency>
|
|
87
|
-
<groupId>org.springframework.security</groupId>
|
|
88
|
-
<artifactId>spring-security-web</artifactId>
|
|
89
|
-
</dependency>
|
|
90
|
-
|
|
91
|
-
<dependency>
|
|
92
|
-
<groupId>org.springframework.security</groupId>
|
|
93
|
-
<artifactId>spring-security-config</artifactId>
|
|
94
|
-
</dependency>
|
|
95
|
-
|
|
96
|
-
<dependency>
|
|
97
|
-
<groupId>io.swagger</groupId>
|
|
98
|
-
<artifactId>swagger-core</artifactId>
|
|
99
|
-
</dependency>
|
|
100
|
-
|
|
101
|
-
<dependency>
|
|
102
|
-
<groupId>${project.groupId}</groupId>
|
|
103
|
-
<artifactId>@app.name@-common</artifactId>
|
|
104
|
-
<version>${project.version}</version>
|
|
105
|
-
</dependency>
|
|
106
|
-
|
|
107
|
-
<dependency>
|
|
108
|
-
<groupId>${project.groupId}</groupId>
|
|
109
|
-
<artifactId>@app.name@-service</artifactId>
|
|
110
|
-
<version>${project.version}</version>
|
|
111
|
-
</dependency>
|
|
112
|
-
|
|
113
|
-
</dependencies>
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
<build>
|
|
117
|
-
<plugins>
|
|
118
|
-
<plugin>
|
|
119
|
-
<groupId>com.github.kongchen</groupId>
|
|
120
|
-
<artifactId>swagger-maven-plugin</artifactId>
|
|
121
|
-
<version>${swagger.plugin.version}</version>
|
|
122
|
-
<executions>
|
|
123
|
-
<execution>
|
|
124
|
-
<phase>compile</phase>
|
|
125
|
-
<goals>
|
|
126
|
-
<goal>generate</goal>
|
|
127
|
-
</goals>
|
|
128
|
-
</execution>
|
|
129
|
-
</executions>
|
|
130
|
-
<configuration>
|
|
131
|
-
<apiSources>
|
|
132
|
-
<apiSource>
|
|
133
|
-
<springmvc>true</springmvc>
|
|
134
|
-
<locations>@app.group.id@.@app.name@.web.rest</locations>
|
|
135
|
-
<schemes>http</schemes>
|
|
136
|
-
<host>${server.address}${app.context.root}</host>
|
|
137
|
-
<basePath>/api</basePath>
|
|
138
|
-
<info>
|
|
139
|
-
<title>API</title>
|
|
140
|
-
<version>1.0.0</version>
|
|
141
|
-
<description>API Swagger description</description>
|
|
142
|
-
</info>
|
|
143
|
-
<swaggerDirectory>${basedir}/target/generated-sources/swagger</swaggerDirectory>
|
|
144
|
-
</apiSource>
|
|
145
|
-
</apiSources>
|
|
146
|
-
</configuration>
|
|
147
|
-
</plugin>
|
|
148
|
-
</plugins>
|
|
149
|
-
|
|
150
|
-
</build>
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
</project>
|
package/lib/skeletons/full-stack/myapp-web-rest/src/main/java/myapp/web/SingleSignoutController.java
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
package @app.group.id@.@app.name@.web;
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import eu.cec.digit.ecas.client.Client;
|
|
5
|
-
import eu.cec.digit.ecas.client.EcasUtil;
|
|
6
|
-
import eu.cec.digit.ecas.client.configuration.EcasConfigurationIntf;
|
|
7
|
-
import eu.cec.digit.ecas.client.resolver.service.StatefulServiceResolver;
|
|
8
|
-
import eu.cec.digit.ecas.util.RFC3986PercentCodec;
|
|
9
|
-
import org.slf4j.Logger;
|
|
10
|
-
import org.slf4j.LoggerFactory;
|
|
11
|
-
import org.springframework.stereotype.Controller;
|
|
12
|
-
import org.springframework.web.bind.annotation.RequestMapping;
|
|
13
|
-
import org.springframework.web.bind.annotation.RequestMethod;
|
|
14
|
-
import org.springframework.web.context.ServletContextAware;
|
|
15
|
-
|
|
16
|
-
import javax.servlet.ServletContext;
|
|
17
|
-
import javax.servlet.http.HttpServletRequest;
|
|
18
|
-
import javax.servlet.http.HttpServletResponse;
|
|
19
|
-
import javax.servlet.http.HttpSession;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
@Controller
|
|
23
|
-
public class SingleSignoutController implements ServletContextAware {
|
|
24
|
-
|
|
25
|
-
private static final Logger logger = LoggerFactory.getLogger(SingleSignoutController.class);
|
|
26
|
-
|
|
27
|
-
private ServletContext servletContext;
|
|
28
|
-
|
|
29
|
-
public SingleSignoutController() {
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
public void setServletContext(ServletContext servletContext) {
|
|
33
|
-
this.servletContext = servletContext;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
@RequestMapping(value = {"/logout"}, method = RequestMethod.GET)
|
|
37
|
-
public String doSSOSignOut(HttpServletRequest request, HttpSession session, HttpServletResponse response) throws Exception {
|
|
38
|
-
logger.debug("-------> /logout");
|
|
39
|
-
|
|
40
|
-
if (session == null) {
|
|
41
|
-
logger.info("Session is expired. Redirecting to homePage");
|
|
42
|
-
return redirect("/");
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
// 1. retrieve the client configuration and the validation configuration
|
|
46
|
-
logger.debug("1. retrieve the client configuration and the validation configuration");
|
|
47
|
-
EcasConfigurationIntf ecasClientConfig = Client.getConfigFromContext(servletContext);
|
|
48
|
-
|
|
49
|
-
if (ecasClientConfig == null) {
|
|
50
|
-
logger.info("ecasClientConfig is null. Redirecting to homePage");
|
|
51
|
-
doLogout(session);
|
|
52
|
-
return redirect("/");
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
StatefulServiceResolver serviceResolver = (StatefulServiceResolver) ecasClientConfig.getServiceResolver();
|
|
56
|
-
|
|
57
|
-
// 2. Find the service:
|
|
58
|
-
logger.debug("2. Find the service:");
|
|
59
|
-
String service = serviceResolver.getService(request);
|
|
60
|
-
if (logger.isInfoEnabled()) {
|
|
61
|
-
logger.info("serviceResolver.getService(request)={" + service + "}");
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
//3. Construct the root URL of the application
|
|
65
|
-
logger.debug("3. Construct the root URL of the application");
|
|
66
|
-
String contextRoot = servletContext.getContextPath();
|
|
67
|
-
int position = service.indexOf(contextRoot);
|
|
68
|
-
|
|
69
|
-
final String rootUrl;
|
|
70
|
-
if (position >= 0) {
|
|
71
|
-
rootUrl = service.substring(0, position) + contextRoot;
|
|
72
|
-
} else {
|
|
73
|
-
rootUrl = service;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
//4. Invalidate session to perform local Logout
|
|
77
|
-
logger.debug("4. Invalidate session to perform local Logout");
|
|
78
|
-
doLogout(session);
|
|
79
|
-
|
|
80
|
-
//5. Create the Ecas url where we are redirecting to provide access to single sign out.
|
|
81
|
-
logger.debug("5. Create the Ecas url where we are redirecting to provide access to single sign out.");
|
|
82
|
-
String escapedRootUrl = RFC3986PercentCodec.UTF8_PERCENT_CODEC.encode(rootUrl);
|
|
83
|
-
String ecasLogoutUrl = EcasUtil.replace(ecasClientConfig.getLoginUrl(), "login", "logout", -1) + "?url=" + escapedRootUrl;
|
|
84
|
-
if (logger.isInfoEnabled()) {
|
|
85
|
-
logger.info("Redirecting to ECAS logout with param url={" +
|
|
86
|
-
rootUrl + "} escaped as {" + escapedRootUrl + "}");
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
logger.debug("6 final : redirect(ecasLogoutUrl) : " + ecasLogoutUrl);
|
|
90
|
-
|
|
91
|
-
request.setAttribute("ecasLogoutUrl", ecasLogoutUrl);
|
|
92
|
-
|
|
93
|
-
return redirect(ecasLogoutUrl);
|
|
94
|
-
//response.sendRedirect(ecasLogoutUrl);
|
|
95
|
-
//return "page.logout";
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
private void doLogout(HttpSession session) {
|
|
99
|
-
session.invalidate();
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
private String redirect(String url) {
|
|
103
|
-
return "redirect:" + url;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
package @app.group.id@.@app.name@.web.exception;
|
|
2
|
-
|
|
3
|
-
import org.slf4j.Logger;
|
|
4
|
-
import org.slf4j.LoggerFactory;
|
|
5
|
-
import org.springframework.http.HttpStatus;
|
|
6
|
-
import org.springframework.http.ResponseEntity;
|
|
7
|
-
import org.springframework.web.bind.annotation.ControllerAdvice;
|
|
8
|
-
import org.springframework.web.bind.annotation.ExceptionHandler;
|
|
9
|
-
|
|
10
|
-
@ControllerAdvice
|
|
11
|
-
public class ExceptionControllerAdvice {
|
|
12
|
-
|
|
13
|
-
private static final Logger logger = LoggerFactory.getLogger(ExceptionControllerAdvice.class);
|
|
14
|
-
|
|
15
|
-
@ExceptionHandler(Exception.class)
|
|
16
|
-
public ResponseEntity<ExceptionResponse> exceptionHandler(Exception ex) {
|
|
17
|
-
ExceptionResponse error = new ExceptionResponse();
|
|
18
|
-
error.setErrorCode(HttpStatus.INTERNAL_SERVER_ERROR.value());
|
|
19
|
-
error.setMessage("Application error : contact your administrator");
|
|
20
|
-
logger.error(error.getMessage(),ex);
|
|
21
|
-
return new ResponseEntity<ExceptionResponse>(error, HttpStatus.INTERNAL_SERVER_ERROR);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
package @app.group.id@.@app.name@.web.exception;
|
|
2
|
-
|
|
3
|
-
public class ExceptionResponse {
|
|
4
|
-
private int errorCode;
|
|
5
|
-
private String message;
|
|
6
|
-
|
|
7
|
-
public int getErrorCode() {
|
|
8
|
-
return errorCode;
|
|
9
|
-
}
|
|
10
|
-
public void setErrorCode(int errorCode) {
|
|
11
|
-
this.errorCode = errorCode;
|
|
12
|
-
}
|
|
13
|
-
public String getMessage() {
|
|
14
|
-
return message;
|
|
15
|
-
}
|
|
16
|
-
public void setMessage(String message) {
|
|
17
|
-
this.message = message;
|
|
18
|
-
}
|
|
19
|
-
}
|
package/lib/skeletons/full-stack/myapp-web-rest/src/main/java/myapp/web/exception/RestException.java
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
package @app.group.id@.@app.name@.web.exception;
|
|
2
|
-
|
|
3
|
-
public class RestException extends Exception {
|
|
4
|
-
private static final long serialVersionUID = 1L;
|
|
5
|
-
private String errorMessage;
|
|
6
|
-
|
|
7
|
-
public String getErrorMessage() {
|
|
8
|
-
return errorMessage;
|
|
9
|
-
}
|
|
10
|
-
public RestException(String errorMessage) {
|
|
11
|
-
super(errorMessage);
|
|
12
|
-
this.errorMessage = errorMessage;
|
|
13
|
-
}
|
|
14
|
-
public RestException() {
|
|
15
|
-
super();
|
|
16
|
-
}
|
|
17
|
-
}
|
package/lib/skeletons/full-stack/myapp-web-rest/src/main/java/myapp/web/filter/UserFilter.java
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
package @app.group.id@.@app.name@.web.filter;
|
|
2
|
-
|
|
3
|
-
import @app.group.id@.@app.name@.common.exception.AppException;
|
|
4
|
-
import @app.group.id@.@app.name@.common.security.UserContext;
|
|
5
|
-
import org.springframework.web.filter.OncePerRequestFilter;
|
|
6
|
-
|
|
7
|
-
import @app.group.id@.@app.name@.common.Constant;
|
|
8
|
-
import @app.group.id@.@app.name@.common.ecas.UserHolder;
|
|
9
|
-
|
|
10
|
-
import javax.servlet.FilterChain;
|
|
11
|
-
import javax.servlet.ServletException;
|
|
12
|
-
import javax.servlet.http.HttpServletRequest;
|
|
13
|
-
import javax.servlet.http.HttpServletResponse;
|
|
14
|
-
import java.io.IOException;
|
|
15
|
-
|
|
16
|
-
public class UserFilter extends OncePerRequestFilter {
|
|
17
|
-
|
|
18
|
-
@Override
|
|
19
|
-
protected String getAlreadyFilteredAttributeName() {
|
|
20
|
-
return "UserFilter";
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
@Override
|
|
24
|
-
protected void initFilterBean() throws ServletException {
|
|
25
|
-
super.initFilterBean();
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
@Override
|
|
29
|
-
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException {
|
|
30
|
-
|
|
31
|
-
try {
|
|
32
|
-
UserContext user = (UserContext) request.getSession(true).getAttribute(Constant.USER);
|
|
33
|
-
|
|
34
|
-
if (user == null) {
|
|
35
|
-
user = UserHolder.getUser();
|
|
36
|
-
request.getSession().setAttribute(Constant.USER, user);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
UserHolder.setUser(user);
|
|
40
|
-
filterChain.doFilter(request, response);
|
|
41
|
-
|
|
42
|
-
} catch (Exception e) {
|
|
43
|
-
throw new AppException(e);
|
|
44
|
-
} finally {
|
|
45
|
-
UserHolder.clearUser();
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
package/lib/skeletons/full-stack/myapp-web-rest/src/main/java/myapp/web/rest/TestResource.java
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
package @app.group.id@.@app.name@.web.rest;
|
|
2
|
-
|
|
3
|
-
import io.swagger.annotations.Api;
|
|
4
|
-
import io.swagger.annotations.ApiOperation;
|
|
5
|
-
import org.springframework.beans.factory.annotation.Autowired;
|
|
6
|
-
import org.springframework.http.HttpStatus;
|
|
7
|
-
import org.springframework.http.MediaType;
|
|
8
|
-
import org.springframework.stereotype.Controller;
|
|
9
|
-
import org.springframework.web.bind.annotation.RequestMapping;
|
|
10
|
-
import org.springframework.web.bind.annotation.RequestMethod;
|
|
11
|
-
import org.springframework.web.bind.annotation.ResponseStatus;
|
|
12
|
-
import org.springframework.http.ResponseEntity;
|
|
13
|
-
|
|
14
|
-
@Controller
|
|
15
|
-
@Api(description = "TestResource")
|
|
16
|
-
@RequestMapping("test")
|
|
17
|
-
@ResponseStatus(HttpStatus.OK)
|
|
18
|
-
public class TestResource {
|
|
19
|
-
|
|
20
|
-
@ApiOperation(value = "Test resource for Swagger implementation")
|
|
21
|
-
@RequestMapping(value = "/",
|
|
22
|
-
method = RequestMethod.GET,
|
|
23
|
-
consumes = MediaType.APPLICATION_JSON_VALUE,
|
|
24
|
-
produces = MediaType.APPLICATION_JSON_VALUE)
|
|
25
|
-
public String getSomething() {
|
|
26
|
-
return "hello eUI";
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
/*
|
|
33
|
-
@RequestMapping(value="/user/{userId}", method = RequestMethod.GET, produces = "application/json")
|
|
34
|
-
public ResponseEntity<?> getIdentityByUserId(@PathVariable String userId) {
|
|
35
|
-
try {
|
|
36
|
-
UserDTO dto = adminService.findByUserId(userId);
|
|
37
|
-
return new ResponseEntity<>(dto, HttpStatus.OK);
|
|
38
|
-
} catch(NotFoundException e) {
|
|
39
|
-
return new ResponseEntity<>(e.getMessage(),HttpStatus.NOT_FOUND);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
*/
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
package @app.group.id@.@app.name@.web.rest;
|
|
2
|
-
|
|
3
|
-
import @app.group.id@.@app.name@.common.security.UserContext;
|
|
4
|
-
import @app.group.id@.@app.name@.common.Constant;
|
|
5
|
-
|
|
6
|
-
import org.springframework.web.bind.annotation.RequestMapping;
|
|
7
|
-
import org.springframework.web.bind.annotation.RequestMethod;
|
|
8
|
-
import javax.servlet.http.HttpServletRequest;
|
|
9
|
-
import io.swagger.annotations.Api;
|
|
10
|
-
import io.swagger.annotations.ApiOperation;
|
|
11
|
-
import org.springframework.stereotype.Controller;
|
|
12
|
-
import org.springframework.web.bind.annotation.ResponseBody;
|
|
13
|
-
|
|
14
|
-
@Controller
|
|
15
|
-
@Api(description = "UserDetailsResource")
|
|
16
|
-
@RequestMapping("user-details")
|
|
17
|
-
public class UserDetailsResource {
|
|
18
|
-
@ApiOperation(value = "User details resource")
|
|
19
|
-
@RequestMapping(method = RequestMethod.GET, produces = "application/json")
|
|
20
|
-
public @ResponseBody UserContext getIdentity(HttpServletRequest request) {
|
|
21
|
-
return (UserContext) request.getSession(true).getAttribute(Constant.USER);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
package @app.group.id@.@app.name@.web.util.ecas;
|
|
2
|
-
|
|
3
|
-
import eu.cec.digit.ecas.client.jaas.DetailedUser;
|
|
4
|
-
import eu.cec.digit.ecas.client.validation.AbstractUserDetailsExtraGroupHandler;
|
|
5
|
-
import eu.cec.digit.ecas.client.validation.DetailedAuthenticationSuccess;
|
|
6
|
-
import eu.cec.digit.ecas.client.validation.ExtraGroupHandlingException;
|
|
7
|
-
import @app.group.id@.@app.name@.common.ecas.UserHolder;
|
|
8
|
-
import @app.group.id@.@app.name@.common.exception.AppException;
|
|
9
|
-
import @app.group.id@.@app.name@.common.exception.person.IdentityNotFoundException;
|
|
10
|
-
import @app.group.id@.@app.name@.service.security.SecurityService;
|
|
11
|
-
import org.apache.commons.lang.StringUtils;
|
|
12
|
-
import org.springframework.web.context.ContextLoader;
|
|
13
|
-
import org.springframework.web.context.WebApplicationContext;
|
|
14
|
-
|
|
15
|
-
import java.util.ArrayList;
|
|
16
|
-
import java.util.List;
|
|
17
|
-
|
|
18
|
-
public class RbacEcasExtraGroupHandler extends AbstractUserDetailsExtraGroupHandler {
|
|
19
|
-
|
|
20
|
-
private static final long serialVersionUID = 5471585585352261455L;
|
|
21
|
-
|
|
22
|
-
public final List<?> getGroups(DetailedAuthenticationSuccess detailedAuthenticationSuccess) throws ExtraGroupHandlingException {
|
|
23
|
-
final WebApplicationContext currentWebApplicationContext = ContextLoader.getCurrentWebApplicationContext();
|
|
24
|
-
|
|
25
|
-
if(currentWebApplicationContext == null) {
|
|
26
|
-
throw new AppException("EcasExtraGroupHandler does not work if the spring webapp context is not present");
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
final SecurityService securityService = currentWebApplicationContext.getBean(SecurityService.class);
|
|
30
|
-
|
|
31
|
-
return securityService.getSecurityUserRoles(detailedAuthenticationSuccess.getUid());
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
2
|
-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
3
|
-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
|
|
4
|
-
http://maven.apache.org/maven-v4_0_0.xsd">
|
|
5
|
-
|
|
6
|
-
<modelVersion>4.0.0</modelVersion>
|
|
7
|
-
<parent>
|
|
8
|
-
<groupId>@app.group.id@.@app.name@</groupId>
|
|
9
|
-
<version>0.0.1-SNAPSHOT</version>
|
|
10
|
-
<artifactId>@app.name@</artifactId>
|
|
11
|
-
</parent>
|
|
12
|
-
<artifactId>@app.name@-web-rest-swagger</artifactId>
|
|
13
|
-
<packaging>jar</packaging>
|
|
14
|
-
|
|
15
|
-
<name>@app.name@ web REST swagger generator module</name>
|
|
16
|
-
|
|
17
|
-
<dependencies>
|
|
18
|
-
<dependency>
|
|
19
|
-
<groupId>io.swagger</groupId>
|
|
20
|
-
<artifactId>swagger-codegen</artifactId>
|
|
21
|
-
</dependency>
|
|
22
|
-
</dependencies>
|
|
23
|
-
</project>
|