@eui/cli 15.0.0-next.1 → 15.0.0-next.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (369) hide show
  1. package/.version.properties +1 -1
  2. package/lib/build.js +0 -66
  3. package/lib/cli.js +8 -32
  4. package/lib/config.js +0 -60
  5. package/lib/generators.js +5 -77
  6. package/lib/maven-build/build.xml +0 -104
  7. package/lib/maven-build/pom.xml +0 -37
  8. package/lib/skeletons/_angular/base/angular.json +5 -8
  9. package/lib/skeletons/_angular/base/package.json +3 -3
  10. package/lib/skeletons/_angular/base/src/app/app.component.html +1 -1
  11. package/lib/skeletons/_angular/base/src/app/app.component.ts +3 -3
  12. package/lib/skeletons/_angular/base/src/app/core/core.module.ts +1 -1
  13. package/lib/skeletons/_angular/base/src/app/features/home/home.module.ts +1 -1
  14. package/lib/skeletons/_angular/base/src/app/features/module1/module1.module.ts +1 -1
  15. package/lib/skeletons/_angular/base/src/app/features/module2/module2.module.ts +1 -1
  16. package/lib/skeletons/_angular/base/src/app/shared/shared.module.ts +28 -6
  17. package/lib/skeletons/_angular/base/tsconfig.json +11 -4
  18. package/lib/skeletons/_angular/base-mobile/package.json +5 -28
  19. package/lib/skeletons/_angular/base-mobile/src/app/core/core.module.ts +1 -1
  20. package/lib/skeletons/_angular/base-mobile/src/app/features/module1/module1.module.ts +1 -1
  21. package/lib/skeletons/_angular/base-mobile/src/app/features/module2/module2.module.ts +1 -1
  22. package/lib/skeletons/_angular/options/ecl/angular.json +11 -1
  23. package/lib/skeletons/_angular/options/ecl/package.json +5 -5
  24. package/lib/skeletons/_angular/options/ecl/src/app/app.component.ts +2 -2
  25. package/lib/skeletons/_angular/options/ecl/src/config/global.ts +1 -5
  26. package/lib/skeletons/_angular/options/openid-jwt/package.json +4 -4
  27. package/lib/skeletons/_angular/options/openid-jwt/src/app/core/core.module.ts +1 -1
  28. package/lib/skeletons/web-symfony/myapp-web/package.json +2 -2
  29. package/lib/utils.js +0 -2
  30. package/package.json +2 -2
  31. package/lib/__old-to-review/build-feature.js +0 -74
  32. package/lib/__old-to-review/build-module.js +0 -113
  33. package/lib/__old-to-review/cli-feature.js +0 -42
  34. package/lib/__old-to-review/cli-module.js +0 -65
  35. package/lib/__old-to-review/skeletons/_angular/_base-advanced/.editorconfig +0 -16
  36. package/lib/__old-to-review/skeletons/_angular/_base-advanced/.euirc.json +0 -29
  37. package/lib/__old-to-review/skeletons/_angular/_base-advanced/.stylelintrc +0 -24
  38. package/lib/__old-to-review/skeletons/_angular/_base-advanced/README.md +0 -26
  39. package/lib/__old-to-review/skeletons/_angular/_base-advanced/angular.json +0 -203
  40. package/lib/__old-to-review/skeletons/_angular/_base-advanced/e2e/protractor.conf.js +0 -28
  41. package/lib/__old-to-review/skeletons/_angular/_base-advanced/e2e/src/app.e2e-spec.ts +0 -14
  42. package/lib/__old-to-review/skeletons/_angular/_base-advanced/e2e/src/app.po.ts +0 -11
  43. package/lib/__old-to-review/skeletons/_angular/_base-advanced/e2e/tsconfig.e2e.json +0 -13
  44. package/lib/__old-to-review/skeletons/_angular/_base-advanced/gitignore_TO_REPLACE +0 -44
  45. package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/json/core/buildings.js +0 -22
  46. package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/json/core/config.js +0 -32
  47. package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/json/core/people.js +0 -7
  48. package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/json/core/translated.api.js +0 -7
  49. package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/json/core/user.js +0 -34
  50. package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/json/lowdb.js +0 -29
  51. package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/json/middlewares/delay.js +0 -10
  52. package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/json/middlewares/errors.js +0 -73
  53. package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/json/middlewares/sse.js +0 -28
  54. package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/json/routes.json +0 -3
  55. package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/json/server.js +0 -75
  56. package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/mean/app/models/user.js +0 -7
  57. package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/mean/app/routes/config_route.js +0 -8
  58. package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/mean/app/routes/index.js +0 -7
  59. package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/mean/app/routes/user_routes.js +0 -24
  60. package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/mean/db/db.json +0 -12
  61. package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/mean/server.js +0 -16
  62. package/lib/__old-to-review/skeletons/_angular/_base-advanced/package.json +0 -44
  63. package/lib/__old-to-review/skeletons/_angular/_base-advanced/proxy-mock.conf.json +0 -6
  64. package/lib/__old-to-review/skeletons/_angular/_base-advanced/proxy.conf.json +0 -13
  65. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/app-routing.module.ts +0 -22
  66. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/app-starter.service.ts +0 -251
  67. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/app.component.html +0 -43
  68. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/app.component.spec.ts +0 -93
  69. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/app.component.ts +0 -137
  70. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/app.module.ts +0 -27
  71. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/core/components/.gitkeep +0 -0
  72. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/core/core.module.ts +0 -86
  73. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/core/operators.ts +0 -10
  74. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/core/reducers/index.ts +0 -33
  75. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/home/home-routing.module.ts +0 -15
  76. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/home/home.component.html +0 -39
  77. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/home/home.component.spec.ts +0 -77
  78. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/home/home.component.ts +0 -8
  79. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/home/home.module.ts +0 -18
  80. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/module1/components/page1/page1.component.html +0 -7
  81. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/module1/components/page1/page1.component.spec.ts +0 -35
  82. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/module1/components/page1/page1.component.ts +0 -7
  83. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/module1/components/page2/page2.component.html +0 -7
  84. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/module1/components/page2/page2.component.spec.ts +0 -35
  85. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/module1/components/page2/page2.component.ts +0 -7
  86. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/module1/module1-routing.module.ts +0 -18
  87. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/module1/module1.component.html +0 -8
  88. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/module1/module1.component.spec.ts +0 -43
  89. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/module1/module1.component.ts +0 -8
  90. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/module1/module1.module.ts +0 -21
  91. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/module2/module2-routing.module.ts +0 -16
  92. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/module2/module2.component.html +0 -8
  93. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/module2/module2.component.spec.ts +0 -35
  94. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/module2/module2.component.ts +0 -7
  95. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/module2/module2.module.ts +0 -17
  96. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/shared/shared.module.ts +0 -21
  97. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/shared/testing/router.mock.ts +0 -18
  98. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/assets/.gitkeep +0 -0
  99. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/assets/config/env-json-config.json +0 -9
  100. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/assets/configuration.json +0 -9
  101. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/assets/i18n/en.json +0 -7
  102. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/assets/i18n/fr.json +0 -7
  103. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/browserslist +0 -11
  104. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/config/global.ts +0 -24
  105. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/config/index.ts +0 -8
  106. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/config/modules.ts +0 -4
  107. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/environments/environment.dev.ts +0 -9
  108. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/environments/environment.prod.ts +0 -28
  109. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/environments/environment.ts +0 -9
  110. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/favicon.ico +0 -0
  111. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/index.html +0 -24
  112. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/main.ts +0 -14
  113. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/polyfills.ts +0 -86
  114. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/styles.scss +0 -1
  115. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/test.ts +0 -33
  116. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/tsconfig.app.json +0 -14
  117. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/tsconfig.spec.json +0 -18
  118. package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/tslint.json +0 -17
  119. package/lib/__old-to-review/skeletons/_angular/_base-advanced/tsconfig-ci.json +0 -23
  120. package/lib/__old-to-review/skeletons/_angular/_base-advanced/tsconfig.json +0 -23
  121. package/lib/__old-to-review/skeletons/_angular/_base-advanced/tslint.json +0 -128
  122. package/lib/__old-to-review/skeletons/_angular/_base-advanced/webpack.extra.js +0 -6
  123. package/lib/__old-to-review/skeletons/_angular/features/ApiQueue/src/app/features/api-queue/api-queue.module.ts +0 -30
  124. package/lib/__old-to-review/skeletons/_angular/features/ApiQueue/src/app/features/api-queue/form/form.component.html +0 -38
  125. package/lib/__old-to-review/skeletons/_angular/features/ApiQueue/src/app/features/api-queue/form/form.component.spec.ts +0 -101
  126. package/lib/__old-to-review/skeletons/_angular/features/ApiQueue/src/app/features/api-queue/form/form.component.ts +0 -142
  127. package/lib/__old-to-review/skeletons/_angular/features/DynamicComponent/src/app/features/dynamic-component/dynamic-component.module.ts +0 -10
  128. package/lib/__old-to-review/skeletons/_angular/features/DynamicConfiguration/src/app/features/dynamic-configuration/dynamic-configuration.module.ts +0 -31
  129. package/lib/__old-to-review/skeletons/_angular/features/ErrorHandling/src/app/core/core.module.ts +0 -74
  130. package/lib/__old-to-review/skeletons/_angular/features/ErrorHandling/src/app/features/error-handling/api.service.spec.ts +0 -49
  131. package/lib/__old-to-review/skeletons/_angular/features/ErrorHandling/src/app/features/error-handling/api.service.ts +0 -30
  132. package/lib/__old-to-review/skeletons/_angular/features/ErrorHandling/src/app/features/error-handling/error-handling.component.html +0 -22
  133. package/lib/__old-to-review/skeletons/_angular/features/ErrorHandling/src/app/features/error-handling/error-handling.component.spec.ts +0 -81
  134. package/lib/__old-to-review/skeletons/_angular/features/ErrorHandling/src/app/features/error-handling/error-handling.component.ts +0 -31
  135. package/lib/__old-to-review/skeletons/_angular/features/ErrorHandling/src/app/features/error-handling/error-handling.module.ts +0 -62
  136. package/lib/__old-to-review/skeletons/_angular/features/ErrorHandling/src/config/index.ts +0 -49
  137. package/lib/__old-to-review/skeletons/_angular/features/HttpInterceptor/src/app/features/http-interceptor/http-interceptor.module.ts +0 -10
  138. package/lib/__old-to-review/skeletons/_angular/features/Migration/src/app/features/migration/migration.module.ts +0 -22
  139. package/lib/__old-to-review/skeletons/_angular/features/Permission/src/app/features/permission/accessible/accessible.component.html +0 -29
  140. package/lib/__old-to-review/skeletons/_angular/features/Permission/src/app/features/permission/accessible/accessible.component.spec.ts +0 -123
  141. package/lib/__old-to-review/skeletons/_angular/features/Permission/src/app/features/permission/accessible/accessible.component.ts +0 -37
  142. package/lib/__old-to-review/skeletons/_angular/features/Permission/src/app/features/permission/auth-guard.service.spec.ts +0 -49
  143. package/lib/__old-to-review/skeletons/_angular/features/Permission/src/app/features/permission/auth-guard.service.ts +0 -40
  144. package/lib/__old-to-review/skeletons/_angular/features/Permission/src/app/features/permission/inaccessible/inaccessible.component.html +0 -3
  145. package/lib/__old-to-review/skeletons/_angular/features/Permission/src/app/features/permission/inaccessible/inaccessible.component.spec.ts +0 -25
  146. package/lib/__old-to-review/skeletons/_angular/features/Permission/src/app/features/permission/inaccessible/inaccessible.component.ts +0 -14
  147. package/lib/__old-to-review/skeletons/_angular/features/Permission/src/app/features/permission/main/main.component.html +0 -3
  148. package/lib/__old-to-review/skeletons/_angular/features/Permission/src/app/features/permission/main/main.component.spec.ts +0 -33
  149. package/lib/__old-to-review/skeletons/_angular/features/Permission/src/app/features/permission/main/main.component.ts +0 -13
  150. package/lib/__old-to-review/skeletons/_angular/features/Permission/src/app/features/permission/permission.module.ts +0 -34
  151. package/lib/__old-to-review/skeletons/_angular/features/Translation/src/app/features/translation/components/main/main.component.html +0 -18
  152. package/lib/__old-to-review/skeletons/_angular/features/Translation/src/app/features/translation/components/main/main.component.spec.ts +0 -30
  153. package/lib/__old-to-review/skeletons/_angular/features/Translation/src/app/features/translation/components/main/main.component.ts +0 -56
  154. package/lib/__old-to-review/skeletons/_angular/features/Translation/src/app/features/translation/pipes/service-translate.pipe.ts +0 -22
  155. package/lib/__old-to-review/skeletons/_angular/features/Translation/src/app/features/translation/services/api.service.ts +0 -43
  156. package/lib/__old-to-review/skeletons/_angular/features/Translation/src/app/features/translation/translation.module.ts +0 -37
  157. package/lib/__old-to-review/skeletons/_angular/features/Translation/src/assets/i18n/en.json +0 -31
  158. package/lib/__old-to-review/skeletons/_angular/features/Translation/src/assets/i18n/fr.json +0 -27
  159. package/lib/__old-to-review/skeletons/_angular/features/Translation/src/config/index.ts +0 -24
  160. package/lib/__old-to-review/skeletons/_angular/features/WebStorage/src/app/features/web-storage/main/main.component.html +0 -46
  161. package/lib/__old-to-review/skeletons/_angular/features/WebStorage/src/app/features/web-storage/main/main.component.spec.ts +0 -25
  162. package/lib/__old-to-review/skeletons/_angular/features/WebStorage/src/app/features/web-storage/main/main.component.ts +0 -93
  163. package/lib/__old-to-review/skeletons/_angular/features/WebStorage/src/app/features/web-storage/web-routing.module.ts +0 -18
  164. package/lib/__old-to-review/skeletons/_angular/features/WebStorage/src/app/features/web-storage/web-storage.module.ts +0 -53
  165. package/lib/__old-to-review/skeletons/_angular/features/full-json-mock/core/buildings.js +0 -22
  166. package/lib/__old-to-review/skeletons/_angular/features/full-json-mock/core/config.js +0 -32
  167. package/lib/__old-to-review/skeletons/_angular/features/full-json-mock/core/people.js +0 -7
  168. package/lib/__old-to-review/skeletons/_angular/features/full-json-mock/core/translated.api.js +0 -7
  169. package/lib/__old-to-review/skeletons/_angular/features/full-json-mock/core/user.js +0 -34
  170. package/lib/__old-to-review/skeletons/_angular/features/full-json-mock/lowdb.js +0 -29
  171. package/lib/__old-to-review/skeletons/_angular/features/full-json-mock/middlewares/delay.js +0 -10
  172. package/lib/__old-to-review/skeletons/_angular/features/full-json-mock/middlewares/errors.js +0 -73
  173. package/lib/__old-to-review/skeletons/_angular/features/full-json-mock/middlewares/sse.js +0 -28
  174. package/lib/__old-to-review/skeletons/_angular/features/full-json-mock/routes.json +0 -3
  175. package/lib/__old-to-review/skeletons/_angular/features/full-json-mock/server.js +0 -75
  176. package/lib/__old-to-review/skeletons/_angular/module-base/assets/i18n/en.json +0 -3
  177. package/lib/__old-to-review/skeletons/_angular/module-base/assets/i18n/fr.json +0 -3
  178. package/lib/__old-to-review/skeletons/_angular/module-base/karma.conf.js +0 -7
  179. package/lib/__old-to-review/skeletons/_angular/module-base/ng-package.json +0 -7
  180. package/lib/__old-to-review/skeletons/_angular/module-base/package.json +0 -4
  181. package/lib/__old-to-review/skeletons/_angular/module-base/src/index.ts +0 -7
  182. package/lib/__old-to-review/skeletons/_angular/module-base/src/lib/components/cmp1/cmp1.component.html +0 -1
  183. package/lib/__old-to-review/skeletons/_angular/module-base/src/lib/components/cmp1/cmp1.component.spec.ts +0 -25
  184. package/lib/__old-to-review/skeletons/_angular/module-base/src/lib/components/cmp1/cmp1.component.ts +0 -14
  185. package/lib/__old-to-review/skeletons/_angular/module-base/src/lib/core/module.service.spec.ts +0 -12
  186. package/lib/__old-to-review/skeletons/_angular/module-base/src/lib/core/module.service.ts +0 -8
  187. package/lib/__old-to-review/skeletons/_angular/module-base/src/lib/module.module.ts +0 -14
  188. package/lib/__old-to-review/skeletons/_angular/module-base/src/test.ts +0 -22
  189. package/lib/__old-to-review/skeletons/_angular/module-base/tsconfig.lib.json +0 -32
  190. package/lib/__old-to-review/skeletons/_angular/module-base/tsconfig.spec.json +0 -17
  191. package/lib/__old-to-review/skeletons/_angular/module-base/tslint.json +0 -17
  192. package/lib/__old-to-review/skeletons/_angular/module-element/package.json +0 -7
  193. package/lib/__old-to-review/skeletons/_angular/module-options/route-module/src/lib/module-routing.module.ts +0 -14
  194. package/lib/__old-to-review/skeletons/_angular/module-options/route-module/src/lib/module.module.ts +0 -17
  195. package/lib/skeletons/_commons/web-java-commons/jetty-run.bat +0 -3
  196. package/lib/skeletons/_commons/web-java-commons/pom.xml +0 -423
  197. package/lib/skeletons/_commons/web-java-commons/src/main/java/eu/europa/ec/digit/eui/angular2starter/servlet/Angular2RouterFilter.java +0 -25
  198. package/lib/skeletons/_commons/web-java-commons/src/main/java/eu/europa/ec/digit/eui/common/dto/UserDTO.java +0 -86
  199. package/lib/skeletons/_commons/web-java-commons/src/main/java/eu/europa/ec/digit/eui/entity/User.java +0 -97
  200. package/lib/skeletons/_commons/web-java-commons/src/main/java/eu/europa/ec/digit/eui/repository/UserPredicates.java +0 -32
  201. package/lib/skeletons/_commons/web-java-commons/src/main/java/eu/europa/ec/digit/eui/repository/UserRepository.java +0 -23
  202. package/lib/skeletons/_commons/web-java-commons/src/main/java/eu/europa/ec/digit/eui/service/UserService.java +0 -63
  203. package/lib/skeletons/_commons/web-java-commons/src/main/java/eu/europa/ec/digit/eui/web/api/ApiController.java +0 -40
  204. package/lib/skeletons/_commons/web-java-commons/src/main/resources/hsql-db-init.sql +0 -12
  205. package/lib/skeletons/_commons/web-java-commons/src/main/resources/jetty-webdefault.xml +0 -535
  206. package/lib/skeletons/_commons/web-java-commons/src/main/webapp/WEB-INF/applicationContext.xml +0 -12
  207. package/lib/skeletons/_commons/web-java-commons/src/main/webapp/WEB-INF/datasourceContext-hsql-db.xml +0 -49
  208. package/lib/skeletons/_commons/web-java-commons/src/main/webapp/WEB-INF/spring-REST-servlet.xml +0 -18
  209. package/lib/skeletons/_commons/web-java-commons/src/main/webapp/WEB-INF/web.xml +0 -35
  210. package/lib/skeletons/_commons/web-java-commons/src/main/webapp/WEB-INF/weblogic.xml +0 -41
  211. package/lib/skeletons/full-stack/maven.settings.template.xml +0 -144
  212. package/lib/skeletons/full-stack/myapp-common/pom.xml +0 -24
  213. package/lib/skeletons/full-stack/myapp-common/src/main/java/myapp/common/Constant.java +0 -10
  214. package/lib/skeletons/full-stack/myapp-common/src/main/java/myapp/common/dto/security/RightDTO.java +0 -52
  215. package/lib/skeletons/full-stack/myapp-common/src/main/java/myapp/common/dto/security/RoleDTO.java +0 -48
  216. package/lib/skeletons/full-stack/myapp-common/src/main/java/myapp/common/dto/security/UserDTO.java +0 -67
  217. package/lib/skeletons/full-stack/myapp-common/src/main/java/myapp/common/ecas/UserHolder.java +0 -53
  218. package/lib/skeletons/full-stack/myapp-common/src/main/java/myapp/common/exception/AppException.java +0 -57
  219. package/lib/skeletons/full-stack/myapp-common/src/main/java/myapp/common/exception/CodedException.java +0 -7
  220. package/lib/skeletons/full-stack/myapp-common/src/main/java/myapp/common/exception/NotFoundException.java +0 -17
  221. package/lib/skeletons/full-stack/myapp-common/src/main/java/myapp/common/exception/person/IdentityNotFoundException.java +0 -33
  222. package/lib/skeletons/full-stack/myapp-common/src/main/java/myapp/common/helper/ConversionHelper.java +0 -44
  223. package/lib/skeletons/full-stack/myapp-common/src/main/java/myapp/common/security/UserContext.java +0 -184
  224. package/lib/skeletons/full-stack/myapp-ear/pom.xml +0 -81
  225. package/lib/skeletons/full-stack/myapp-ear/src/main/application/META-INF/weblogic-application.xml +0 -18
  226. package/lib/skeletons/full-stack/myapp-persistence/pom.xml +0 -106
  227. package/lib/skeletons/full-stack/myapp-persistence/src/main/java/myapp/entity/security/Right.java +0 -58
  228. package/lib/skeletons/full-stack/myapp-persistence/src/main/java/myapp/entity/security/Role.java +0 -71
  229. package/lib/skeletons/full-stack/myapp-persistence/src/main/java/myapp/entity/security/User.java +0 -59
  230. package/lib/skeletons/full-stack/myapp-persistence/src/main/java/myapp/repository/security/SecurityRightRepository.java +0 -9
  231. package/lib/skeletons/full-stack/myapp-persistence/src/main/java/myapp/repository/security/SecurityRoleRepository.java +0 -10
  232. package/lib/skeletons/full-stack/myapp-persistence/src/main/java/myapp/repository/security/SecurityUserRepository.java +0 -10
  233. package/lib/skeletons/full-stack/myapp-persistence/src/main/resources/META-INF/persistence.xml.tmp +0 -27
  234. package/lib/skeletons/full-stack/myapp-service/pom.xml +0 -122
  235. package/lib/skeletons/full-stack/myapp-service/src/main/java/myapp/mapper/security/RightMapper.java +0 -24
  236. package/lib/skeletons/full-stack/myapp-service/src/main/java/myapp/mapper/security/RoleMapper.java +0 -19
  237. package/lib/skeletons/full-stack/myapp-service/src/main/java/myapp/mapper/security/UserMapper.java +0 -19
  238. package/lib/skeletons/full-stack/myapp-service/src/main/java/myapp/service/security/SecurityService.java +0 -242
  239. package/lib/skeletons/full-stack/myapp-service/src/main/java/myapp/service/security/UserDetailsServiceCustom.java +0 -85
  240. package/lib/skeletons/full-stack/myapp-web/pom.xml +0 -73
  241. package/lib/skeletons/full-stack/myapp-web/src/main/resources/datasourceContext-hsql-db.xml +0 -49
  242. package/lib/skeletons/full-stack/myapp-web/src/main/resources/datasourceContext-hsql.xml +0 -50
  243. package/lib/skeletons/full-stack/myapp-web/src/main/resources/datasourceContext.xml +0 -40
  244. package/lib/skeletons/full-stack/myapp-web/src/main/resources/ecas-config-myapp.xml +0 -40
  245. package/lib/skeletons/full-stack/myapp-web/src/main/resources/hsql-db-init.sql +0 -22
  246. package/lib/skeletons/full-stack/myapp-web/src/main/resources/log4j.xml +0 -36
  247. package/lib/skeletons/full-stack/myapp-web/src/main/resources/log4j.xml.ecas +0 -156
  248. package/lib/skeletons/full-stack/myapp-web/src/main/resources/spring-security.xml +0 -42
  249. package/lib/skeletons/full-stack/myapp-web/src/main/webapp/WEB-INF/applicationContext.xml +0 -18
  250. package/lib/skeletons/full-stack/myapp-web/src/main/webapp/WEB-INF/spring-REST-servlet.xml +0 -17
  251. package/lib/skeletons/full-stack/myapp-web/src/main/webapp/WEB-INF/web.xml +0 -113
  252. package/lib/skeletons/full-stack/myapp-web/src/main/webapp/WEB-INF/weblogic.xml +0 -45
  253. package/lib/skeletons/full-stack/myapp-web/src/main/webapp/index.jsp +0 -26
  254. package/lib/skeletons/full-stack/myapp-web-rest/pom.xml +0 -155
  255. package/lib/skeletons/full-stack/myapp-web-rest/src/main/java/myapp/web/SingleSignoutController.java +0 -106
  256. package/lib/skeletons/full-stack/myapp-web-rest/src/main/java/myapp/web/exception/ExceptionControllerAdvice.java +0 -23
  257. package/lib/skeletons/full-stack/myapp-web-rest/src/main/java/myapp/web/exception/ExceptionResponse.java +0 -19
  258. package/lib/skeletons/full-stack/myapp-web-rest/src/main/java/myapp/web/exception/RestException.java +0 -17
  259. package/lib/skeletons/full-stack/myapp-web-rest/src/main/java/myapp/web/filter/UserFilter.java +0 -48
  260. package/lib/skeletons/full-stack/myapp-web-rest/src/main/java/myapp/web/rest/TestResource.java +0 -42
  261. package/lib/skeletons/full-stack/myapp-web-rest/src/main/java/myapp/web/rest/UserDetailsResource.java +0 -23
  262. package/lib/skeletons/full-stack/myapp-web-rest/src/main/java/myapp/web/util/ecas/RbacEcasExtraGroupHandler.java +0 -35
  263. package/lib/skeletons/full-stack/myapp-web-rest-swagger/pom.xml +0 -23
  264. package/lib/skeletons/full-stack/myapp-web-rest-swagger/src/main/java/myapp/codegen/AbstractTypescriptClientCodegen.java +0 -362
  265. package/lib/skeletons/full-stack/myapp-web-rest-swagger/src/main/java/myapp/codegen/TypescriptClientCodegen.java +0 -245
  266. package/lib/skeletons/full-stack/myapp-web-rest-swagger/src/main/resources/META-INF/services/io.swagger.codegen.CodegenConfig +0 -1
  267. package/lib/skeletons/full-stack/myapp-web-rest-swagger/src/main/resources/typescript-codegen/README.mustache +0 -44
  268. package/lib/skeletons/full-stack/myapp-web-rest-swagger/src/main/resources/typescript-codegen/api.mustache +0 -228
  269. package/lib/skeletons/full-stack/myapp-web-rest-swagger/src/main/resources/typescript-codegen/apis.mustache +0 -7
  270. package/lib/skeletons/full-stack/myapp-web-rest-swagger/src/main/resources/typescript-codegen/classType.mustache +0 -3
  271. package/lib/skeletons/full-stack/myapp-web-rest-swagger/src/main/resources/typescript-codegen/configuration.mustache +0 -6
  272. package/lib/skeletons/full-stack/myapp-web-rest-swagger/src/main/resources/typescript-codegen/index.mustache +0 -5
  273. package/lib/skeletons/full-stack/myapp-web-rest-swagger/src/main/resources/typescript-codegen/licenseInfo.mustache +0 -23
  274. package/lib/skeletons/full-stack/myapp-web-rest-swagger/src/main/resources/typescript-codegen/model.mustache +0 -80
  275. package/lib/skeletons/full-stack/myapp-web-rest-swagger/src/main/resources/typescript-codegen/models.mustache +0 -5
  276. package/lib/skeletons/full-stack/myapp-web-rest-swagger/src/main/resources/typescript-codegen/package.mustache +0 -46
  277. package/lib/skeletons/full-stack/myapp-web-rest-swagger/src/main/resources/typescript-codegen/tsconfig.mustache +0 -27
  278. package/lib/skeletons/full-stack/myapp-web-rest-swagger/src/main/resources/typescript-codegen/typings.mustache +0 -5
  279. package/lib/skeletons/full-stack/myapp-web-rest-swagger/src/main/resources/typescript-codegen/variables.mustache +0 -3
  280. package/lib/skeletons/full-stack/myapp-web-swagger-ui/pom.xml +0 -40
  281. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/WEB-INF/web.xml +0 -9
  282. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/WEB-INF/weblogic.xml +0 -30
  283. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/css/print.css +0 -1
  284. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/css/reset.css +0 -1
  285. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/css/screen.css +0 -1
  286. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/css/style.css +0 -1
  287. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/css/typography.css +0 -0
  288. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/fonts/DroidSans-Bold.ttf +0 -0
  289. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/fonts/DroidSans.ttf +0 -0
  290. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/images/collapse.gif +0 -0
  291. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/images/expand.gif +0 -0
  292. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/images/explorer_icons.png +0 -0
  293. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/images/favicon-16x16.png +0 -0
  294. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/images/favicon-32x32.png +0 -0
  295. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/images/favicon.ico +0 -0
  296. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/images/logo_small.png +0 -0
  297. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/images/pet_store_api.png +0 -0
  298. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/images/throbber.gif +0 -0
  299. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/images/wordnik_api.png +0 -0
  300. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/index.html +0 -108
  301. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lang/ca.js +0 -53
  302. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lang/el.js +0 -56
  303. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lang/en.js +0 -56
  304. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lang/es.js +0 -53
  305. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lang/fr.js +0 -54
  306. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lang/geo.js +0 -56
  307. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lang/it.js +0 -52
  308. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lang/ja.js +0 -56
  309. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lang/ko-kr.js +0 -53
  310. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lang/pl.js +0 -53
  311. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lang/pt.js +0 -53
  312. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lang/ru.js +0 -56
  313. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lang/tr.js +0 -53
  314. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lang/translator.js +0 -39
  315. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lang/zh-cn.js +0 -56
  316. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lib/backbone-min.js +0 -1
  317. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lib/es5-shim.js +0 -1
  318. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lib/handlebars-4.0.5.js +0 -3
  319. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lib/highlight.9.1.0.pack.js +0 -1
  320. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lib/highlight.9.1.0.pack_extended.js +0 -1
  321. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lib/jquery-1.8.0.min.js +0 -3
  322. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lib/jquery.ba-bbq.min.js +0 -1
  323. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lib/jquery.slideto.min.js +0 -1
  324. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lib/jquery.wiggle.min.js +0 -1
  325. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lib/js-yaml.min.js +0 -2
  326. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lib/jsoneditor.min.js +0 -5
  327. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lib/lodash.min.js +0 -2
  328. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lib/marked.js +0 -1
  329. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lib/object-assign-pollyfill.js +0 -1
  330. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lib/sanitize-html.min.js +0 -4
  331. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lib/swagger-oauth.js +0 -1
  332. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/o2c.html +0 -20
  333. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/swagger-ui.js +0 -25378
  334. package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/swagger-ui.min.js +0 -15
  335. package/lib/skeletons/full-stack/package.json +0 -17
  336. package/lib/skeletons/full-stack/pom.xml +0 -500
  337. package/lib/skeletons/web-spring-boot-todo/myapp-web/pom.xml +0 -65
  338. package/lib/skeletons/web-spring-boot-todo/myapp-web/src/main/angular/src/app/app-routing.module.ts +0 -18
  339. package/lib/skeletons/web-spring-boot-todo/myapp-web/src/main/angular/src/app/features/buildings/buildings-routing.module.ts +0 -16
  340. package/lib/skeletons/web-spring-boot-todo/myapp-web/src/main/angular/src/app/features/buildings/buildings.module.ts +0 -18
  341. package/lib/skeletons/web-spring-boot-todo/myapp-web/src/main/angular/src/app/features/buildings/components/buildings-overview.component.css +0 -11
  342. package/lib/skeletons/web-spring-boot-todo/myapp-web/src/main/angular/src/app/features/buildings/components/buildings-overview.component.html +0 -66
  343. package/lib/skeletons/web-spring-boot-todo/myapp-web/src/main/angular/src/app/features/buildings/components/buildings-overview.component.ts +0 -72
  344. package/lib/skeletons/web-spring-boot-todo/myapp-web/src/main/angular/src/app/features/buildings/models/address.model.ts +0 -11
  345. package/lib/skeletons/web-spring-boot-todo/myapp-web/src/main/angular/src/app/features/buildings/models/building.model.ts +0 -7
  346. package/lib/skeletons/web-spring-boot-todo/myapp-web/src/main/angular/src/app/features/buildings/services/buildings.service.ts +0 -20
  347. package/lib/skeletons/web-spring-boot-todo/myapp-web/src/main/angular/src/app/features/home/home.component.html +0 -9
  348. package/lib/skeletons/web-spring-boot-todo/myapp-web/src/main/angular/src/app/shared/models/page.model.ts +0 -63
  349. package/lib/skeletons/web-spring-boot-todo/myapp-web/src/main/angular/src/environments/environment.ts +0 -9
  350. package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/pom.xml +0 -84
  351. package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/java/myapp/MyappApplication.java +0 -46
  352. package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/java/myapp/domain/Address.java +0 -65
  353. package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/java/myapp/domain/Building.java +0 -44
  354. package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/java/myapp/repositories/BuildingRepository.java +0 -11
  355. package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/java/myapp/resources/BuildingResource.java +0 -26
  356. package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/java/myapp/resources/SwaggerConfig.java +0 -21
  357. package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/java/myapp/resources/support/HateoasPageableHandlerMethodArgumentResolver.java +0 -45
  358. package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/java/myapp/resources/support/HypermediaSupport.java +0 -25
  359. package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/java/myapp/resources/support/PageJsonSerializer.java +0 -17
  360. package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/java/myapp/security/CachingPreventionFilter.java +0 -29
  361. package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/java/myapp/security/CsrfPreventionFilter.java +0 -35
  362. package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/java/myapp/security/FakeAuthenticationFilter.java +0 -372
  363. package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/java/myapp/security/SecurityConfig.java +0 -42
  364. package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/java/myapp/services/BuildingSearchCriteria.java +0 -26
  365. package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/java/myapp/services/BuildingService.java +0 -10
  366. package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/java/myapp/services/BuildingServiceImpl.java +0 -26
  367. package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/resources/application.properties +0 -0
  368. package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/resources/data.sql +0 -11
  369. package/lib/skeletons/web-spring-boot-todo/pom.xml +0 -30
@@ -1,66 +0,0 @@
1
- <div class="col-sm-8">
2
- <ux-panel label="List of buildings" [isBlocked]="mode === 'load'">
3
- <uxPanelHeaderRightContent>
4
- <button *ngIf="buildingsPage && mode === 'view'" class="btn btn-secondary" (click)="setMode('edit')">Modify</button>
5
- <button *ngIf="buildingsPage && mode === 'edit'" class="btn btn-secondary" (click)="setMode('view')"><span class="fa fa-close"></span> Done</button>
6
- </uxPanelHeaderRightContent>
7
- <uxPanelFooter *ngIf="buildingsPage && mode !== 'load'">
8
- <p-paginator [first]="buildingsPage.from" [rows]="buildingsPage.pageSize" [totalRecords]="buildingsPage.total" (onPageChange)="onPageChange($event)"></p-paginator>
9
- </uxPanelFooter>
10
-
11
- <ng-container *ngIf="buildingsPage && mode !== 'load'; else loading">
12
- <div class="row">
13
- <div class="col-5">
14
- <ux-a-label label="Name of building"></ux-a-label>
15
- </div>
16
- <div class="col-5">
17
- <ux-a-label label="Address"></ux-a-label>
18
- </div>
19
- </div>
20
- <div class="row">
21
- <div class="col-12">
22
- <hr/>
23
- </div>
24
- </div>
25
- <ng-container *ngFor="let building of buildingsPage.items">
26
- <div class="row">
27
- <div class="col-5 p-2">{{building.name}}</div>
28
- <div class="col-5 p-2">
29
- <span *ngIf="building.address as address">
30
- {{address.street}}<br/>
31
- {{address.postalCode}} - {{address.city}}<br/>
32
- {{address.country}}
33
- </span>
34
- </div>
35
- <div class="col-1 p-2 align-self-center">
36
- <button *ngIf="mode === 'edit'" class="btn btn-secondary" (click)="deleteBuilding(building.buildingId)"><span class="fa fa-trash"></span></button>
37
- </div>
38
- </div>
39
- <div class="row">
40
- <div class="col-12">
41
- <hr/>
42
- </div>
43
- </div>
44
- </ng-container>
45
- </ng-container>
46
-
47
- <ng-template #loading>
48
- <ng-container *ngIf="! serviceError; else error">
49
- Loading...
50
- </ng-container>
51
- </ng-template>
52
-
53
- <ng-template #error>
54
- <ux-alert typeClass="warning">
55
- Unable to retrieve the list of buildings; please <a (click)="loadBuildings()">try again</a> later.<br/>
56
- If the problem persists, please contact the administrator.<br/>
57
- <br/>
58
- <a (click)="serviceErrorVisible = !serviceErrorVisible">
59
- <span *ngIf="!serviceErrorVisible">Show technical reason</span>
60
- <span *ngIf="serviceErrorVisible">Hide technical reason</span>
61
- </a>
62
- <pre *ngIf="serviceErrorVisible">{{serviceError.message}}</pre>
63
- </ux-alert>
64
- </ng-template>
65
- </ux-panel>
66
- </div>
@@ -1,72 +0,0 @@
1
- import { Component, OnInit } from '@angular/core';
2
- import { BuildingsService } from '../services/buildings.service';
3
- import { Page } from '../../../shared/models/page.model';
4
- import { Building } from '../models/building.model';
5
-
6
- @Component({
7
- templateUrl: './buildings-overview.component.html',
8
- styleUrls: ['./buildings-overview.component.css'],
9
- })
10
- export class BuildingsOverviewComponent implements OnInit {
11
- buildingsPage: Page<Building>;
12
-
13
- serviceError: null;
14
- mode = null;
15
- modes: string [] = [];
16
-
17
- constructor(protected buildingsService: BuildingsService) {
18
- }
19
-
20
- ngOnInit() {
21
- this.loadBuildings();
22
- }
23
-
24
- loadBuildings(page?: Page<any>) {
25
- if (! page) {
26
- page = new Page<Building>(0, 1);
27
- }
28
-
29
- this.serviceError = null;
30
- this.pushMode('load');
31
- this.buildingsService.findBuildings(page).subscribe(buildingsPage => {
32
- // Introduce a fake delay here, just to show the "loading" state. Of course, in production this delay should be removed:
33
- setTimeout(() => {
34
- this.buildingsPage = buildingsPage;
35
- this.popMode();
36
- }, 2000);
37
- }, error => {
38
- this.serviceError = error;
39
- this.popMode();
40
- });
41
- }
42
-
43
- deleteBuilding(id: number) {
44
- this.buildingsService.deleteBuilding(id).subscribe(null, error => {
45
- alert(error.message);
46
- });
47
- }
48
-
49
- setMode(mode: string) {
50
- this.mode = mode;
51
- this.modes = [mode];
52
- }
53
-
54
- pushMode(mode: string) {
55
- this.modes.push(mode);
56
- this.mode = mode;
57
- }
58
-
59
- popMode() {
60
- this.modes.pop();
61
- const length = this.modes.length;
62
- if (length > 0) {
63
- this.mode = this.modes [length - 1];
64
- } else {
65
- this.mode = 'view';
66
- }
67
- }
68
-
69
- onPageChange(event) {
70
- this.loadBuildings(new Page(event.first, event.first + event.rows - 1));
71
- }
72
- }
@@ -1,11 +0,0 @@
1
- import { Page } from '../../../shared/models/page.model';
2
-
3
- export class Address {
4
- street: string;
5
- postalCode: string;
6
- city: string;
7
- country: string;
8
- }
9
-
10
- export class AddressesPage extends Page<Address []> {
11
- }
@@ -1,7 +0,0 @@
1
- import { Address } from './address.model';
2
-
3
- export class Building {
4
- buildingId: number;
5
- name: string;
6
- address: Address;
7
- }
@@ -1,20 +0,0 @@
1
- import { Injectable } from '@angular/core';
2
- import { HttpClient } from '@angular/common/http';
3
- import { Observable } from 'rxjs/Observable';
4
- import { Building } from '../models/building.model';
5
- import { Page } from '../../../shared/models/page.model';
6
- import { environment } from '../../../../environments/environment';
7
-
8
- @Injectable()
9
- export class BuildingsService {
10
- constructor(protected http: HttpClient) {
11
- }
12
-
13
- findBuildings(requestedPage?: Page<any>): Observable<Page<Building>> {
14
- return Page.loadPage(environment.apiBaseUrl + '/buildings/', this.http, requestedPage);
15
- }
16
-
17
- deleteBuilding(id: number) {
18
- return this.http.delete(environment.apiBaseUrl + '/buildings/' + id + '/');
19
- }
20
- }
@@ -1,9 +0,0 @@
1
- <div id="page-title">
2
- <h2>{{ 'page.home.title' | translate }}</h2>
3
- </div>
4
-
5
- <ux-panel label="Panel">
6
- Panel content
7
- </ux-panel>
8
-
9
- <a routerLink="/screen/buildings-overview">List of EC buildings</a>
@@ -1,63 +0,0 @@
1
- import { HttpClient, HttpHeaders, HttpResponse } from '@angular/common/http';
2
- import { Observable } from 'rxjs/Observable';
3
-
4
- export class Page<T> {
5
- items: T[];
6
- from: number;
7
- to: number;
8
- total: number;
9
-
10
- constructor(from?: number, to?: number) {
11
- if (typeof from !== 'undefined') {
12
- this.from = from;
13
- }
14
-
15
- if (typeof to !== 'undefined') {
16
- this.to = to;
17
- }
18
- }
19
-
20
- get pageSize(): number {
21
- return this.to - this.from + 1;
22
- }
23
- get pageNumber(): number {
24
- return this.from / this.pageSize;
25
- }
26
-
27
- static loadPage(url: string, http: HttpClient , requestedPage?: Page<any>): Observable<Page<any>> {
28
- let headers = {};
29
- if (requestedPage && requestedPage.from >= 0 && requestedPage.to >= 0) {
30
- headers = {
31
- 'Content-Range': 'item ' + requestedPage.from + '-' + requestedPage.to + '/*'
32
- };
33
- }
34
-
35
- return http.get(url, {
36
- headers: new HttpHeaders(headers),
37
- observe: 'response'
38
- }).map((event: HttpResponse<any>) => {
39
- const response = <HttpResponse<any>> event;
40
-
41
- const page = new Page<any>();
42
- page.items = response.body;
43
-
44
- const range = response.headers.get('Content-Range');
45
- if (range) {
46
- const parts = range.split(' ');
47
- if (parts.length >= 2 && parts [0] === 'item') {
48
- const itemParts = parts [1].split(/[-\/]/g);
49
- const from = parseInt(itemParts [0], 10);
50
- let to = parseInt(itemParts [1], 10);
51
- if (to < from ) {
52
- to = from;
53
- }
54
- page.total = parseInt(itemParts [2], 10);
55
- page.from = from;
56
- page.to = to;
57
- }
58
- }
59
-
60
- return page;
61
- });
62
- }
63
- }
@@ -1,9 +0,0 @@
1
- // The file contents for the current environment will overwrite these during build.
2
- // The build system defaults to the dev environment which uses `environment.ts`, but if you do
3
- // `ng build --env=prod` then `environment.prod.ts` will be used instead.
4
- // The list of which env maps to which file can be found in `.angular-cli.json`.
5
-
6
- export const environment = {
7
- production: false,
8
- apiBaseUrl: 'http://localhost:3000/api',
9
- };
@@ -1,84 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3
- <modelVersion>4.0.0</modelVersion>
4
-
5
- <artifactId>@app.name@-web-rest</artifactId>
6
- <version>0.1.0-SNAPSHOT</version>
7
- <packaging>jar</packaging>
8
-
9
- <parent>
10
- <groupId>@app.group.id@.@app.name@</groupId>
11
- <artifactId>@app.name@</artifactId>
12
- <version>0.1.0-SNAPSHOT</version>
13
- </parent>
14
-
15
- <properties>
16
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
17
- <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
18
- <java.version>11</java.version>
19
- <springswagger.version>2.9.2</springswagger.version>
20
- </properties>
21
-
22
- <dependencies>
23
- <dependency>
24
- <groupId>org.springframework.boot</groupId>
25
- <artifactId>spring-boot-starter-web</artifactId>
26
- <exclusions>
27
- <exclusion>
28
- <groupId>org.springframework.boot</groupId>
29
- <artifactId>spring-boot-starter-tomcat</artifactId>
30
- </exclusion>
31
- </exclusions>
32
- </dependency>
33
- <!-- Add tomcat only if I want to run directly -->
34
- <dependency>
35
- <groupId>org.springframework.boot</groupId>
36
- <artifactId>spring-boot-starter-tomcat</artifactId>
37
- <scope>provided</scope>
38
- </dependency>
39
- <dependency>
40
- <groupId>org.springframework.boot</groupId>
41
- <artifactId>spring-boot-starter-data-jpa</artifactId>
42
- <exclusions>
43
- <exclusion>
44
- <groupId>org.apache.tomcat</groupId>
45
- <artifactId>tomcat-jdbc</artifactId>
46
- </exclusion>
47
- </exclusions>
48
- </dependency>
49
- <dependency>
50
- <groupId>org.springframework.security</groupId>
51
- <artifactId>spring-security-web</artifactId>
52
- <version>${spring-security.version}</version>
53
- </dependency>
54
- <dependency>
55
- <groupId>org.springframework.security</groupId>
56
- <artifactId>spring-security-config</artifactId>
57
- <version>${spring-security.version}</version>
58
- </dependency>
59
- <dependency>
60
- <groupId>com.h2database</groupId>
61
- <artifactId>h2</artifactId>
62
- <scope>runtime</scope>
63
- </dependency>
64
- <dependency>
65
- <groupId>io.springfox</groupId>
66
- <artifactId>springfox-swagger-ui</artifactId>
67
- <version>${springswagger.version}</version>
68
- </dependency>
69
- <dependency>
70
- <groupId>io.springfox</groupId>
71
- <artifactId>springfox-swagger2</artifactId>
72
- <version>${springswagger.version}</version>
73
- </dependency>
74
- </dependencies>
75
-
76
- <build>
77
- <plugins>
78
- <plugin>
79
- <groupId>org.springframework.boot</groupId>
80
- <artifactId>spring-boot-maven-plugin</artifactId>
81
- </plugin>
82
- </plugins>
83
- </build>
84
- </project>
@@ -1,46 +0,0 @@
1
- package @app.group.id@.@app.name@;
2
-
3
- import @app.group.id@.@app.name@.resources.support.HateoasPageableHandlerMethodArgumentResolver;
4
- import @app.group.id@.@app.name@.resources.support.PageJsonSerializer;
5
- import org.springframework.boot.SpringApplication;
6
- import org.springframework.boot.autoconfigure.SpringBootApplication;
7
- import org.springframework.boot.builder.SpringApplicationBuilder;
8
- import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
9
- import org.springframework.context.annotation.Bean;
10
- import org.springframework.data.domain.Page;
11
- import org.springframework.http.converter.json.Jackson2ObjectMapperBuilder;
12
- import org.springframework.web.WebApplicationInitializer;
13
- import org.springframework.web.method.support.HandlerMethodArgumentResolver;
14
- import org.springframework.web.servlet.config.annotation.CorsRegistry;
15
- import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
16
-
17
- import java.util.List;
18
-
19
- @SpringBootApplication
20
- public class MyappApplication extends SpringBootServletInitializer implements WebApplicationInitializer, WebMvcConfigurer {
21
- @Override
22
- protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
23
- return application.sources(MyappApplication.class);
24
- }
25
-
26
- @Override
27
- public void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers) {
28
- argumentResolvers.add(new HateoasPageableHandlerMethodArgumentResolver());
29
- }
30
-
31
- @Override
32
- public void addCorsMappings(CorsRegistry registry) {
33
- registry.addMapping("/**").allowedOrigins("*").allowedMethods("*").allowedHeaders("*").exposedHeaders("Content-Range").allowCredentials(true);
34
- }
35
-
36
- @Bean
37
- public Jackson2ObjectMapperBuilder objectMapperBuilder() {
38
- Jackson2ObjectMapperBuilder builder = new Jackson2ObjectMapperBuilder();
39
- builder.serializerByType(Page.class, new PageJsonSerializer());
40
- return builder;
41
- }
42
-
43
- public static void main(String[] args) {
44
- SpringApplication.run(MyappApplication.class, args);
45
- }
46
- }
@@ -1,65 +0,0 @@
1
- package @app.group.id@.@app.name@.domain;
2
-
3
- import javax.persistence.*;
4
-
5
- @Entity(name = "t_address")
6
- public class Address {
7
- @Id
8
- @SequenceGenerator(name="address_generator", sequenceName="seq_address")
9
- @GeneratedValue(generator = "address_generator")
10
- @Column(name = "address_id", nullable = false)
11
- private Long addressId;
12
-
13
- @Column(nullable = false)
14
- private String street;
15
-
16
- @Column(name = "postal_code", nullable = false)
17
- private String postalCode;
18
-
19
- @Column(nullable = false)
20
- private String city;
21
-
22
- @Column(nullable = false)
23
- private String country;
24
-
25
-
26
- public Long getAddressId() {
27
- return addressId;
28
- }
29
-
30
- public void setAddressId(Long addressId) {
31
- this.addressId = addressId;
32
- }
33
-
34
- public String getStreet() {
35
- return street;
36
- }
37
-
38
- public void setStreet(String street) {
39
- this.street = street;
40
- }
41
-
42
- public String getPostalCode() {
43
- return postalCode;
44
- }
45
-
46
- public void setPostalCode(String postalCode) {
47
- this.postalCode = postalCode;
48
- }
49
-
50
- public String getCity() {
51
- return city;
52
- }
53
-
54
- public void setCity(String city) {
55
- this.city = city;
56
- }
57
-
58
- public String getCountry() {
59
- return country;
60
- }
61
-
62
- public void setCountry(String country) {
63
- this.country = country;
64
- }
65
- }
@@ -1,44 +0,0 @@
1
- package @app.group.id@.@app.name@.domain;
2
-
3
- import javax.persistence.*;
4
- import java.io.Serializable;
5
-
6
- @Entity(name = "t_building")
7
- public class Building implements Serializable {
8
- @Id
9
- @SequenceGenerator(name="building_generator", sequenceName="seq_building")
10
- @GeneratedValue(generator = "building_generator")
11
- private Long buildingId;
12
-
13
- @Column(nullable = false)
14
- private String name;
15
-
16
- @OneToOne()
17
- @JoinColumn(name = "address_id")
18
- private Address address;
19
-
20
-
21
- public Long getBuildingId() {
22
- return buildingId;
23
- }
24
-
25
- public void setBuildingId(Long buildingId) {
26
- this.buildingId = buildingId;
27
- }
28
-
29
- public String getName() {
30
- return name;
31
- }
32
-
33
- public void setName(String name) {
34
- this.name = name;
35
- }
36
-
37
- public Address getAddress() {
38
- return address;
39
- }
40
-
41
- public void setAddress(Address address) {
42
- this.address = address;
43
- }
44
- }
@@ -1,11 +0,0 @@
1
- package @app.group.id@.@app.name@.repositories;
2
-
3
- import @app.group.id@.@app.name@.domain.Building;
4
- import org.springframework.data.domain.Page;
5
- import org.springframework.data.domain.Pageable;
6
- import org.springframework.data.repository.PagingAndSortingRepository;
7
-
8
- public interface BuildingRepository extends PagingAndSortingRepository<Building, Long> {
9
- Page<Building> findAll(Pageable pageable);
10
- Page<Building> findByNameContainingAllIgnoringCase(String name, Pageable pageable);
11
- }
@@ -1,26 +0,0 @@
1
- package @app.group.id@.@app.name@.resources;
2
-
3
- import @app.group.id@.@app.name@.resources.support.HypermediaSupport;
4
- import @app.group.id@.@app.name@.services.BuildingService;
5
- import org.springframework.data.domain.Pageable;
6
- import org.springframework.http.ResponseEntity;
7
- import org.springframework.web.bind.annotation.GetMapping;
8
- import org.springframework.web.bind.annotation.RequestMapping;
9
- import org.springframework.web.bind.annotation.RestController;
10
-
11
- @RestController
12
- @RequestMapping("api/buildings")
13
- public class BuildingResource {
14
- private BuildingService buildingService;
15
- private HypermediaSupport hateoasPageSupport;
16
-
17
- public BuildingResource(BuildingService buildingService, HypermediaSupport hateoasPageSupport) {
18
- this.buildingService = buildingService;
19
- this.hateoasPageSupport = hateoasPageSupport;
20
- }
21
-
22
- @GetMapping()
23
- public ResponseEntity getAllBuildings(Pageable pageable) {
24
- return hateoasPageSupport.wrap(buildingService.findAll(pageable), pageable);
25
- }
26
- }
@@ -1,21 +0,0 @@
1
- package @app.group.id@.@app.name@.resources;
2
-
3
- import org.springframework.context.annotation.Bean;
4
- import org.springframework.context.annotation.Configuration;
5
- import springfox.documentation.builders.RequestHandlerSelectors;
6
- import springfox.documentation.spi.DocumentationType;
7
- import springfox.documentation.spring.web.plugins.Docket;
8
- import springfox.documentation.swagger2.annotations.EnableSwagger2;
9
-
10
- @Configuration
11
- @EnableSwagger2
12
- public class SwaggerConfig {
13
- @Bean
14
- public Docket labelApi() {
15
- return new Docket(DocumentationType.SWAGGER_2).
16
- select().
17
- apis(RequestHandlerSelectors.basePackage("@app.group.id@.@app.name@.resources")).
18
- build().
19
- useDefaultResponseMessages(false);
20
- }
21
- }
@@ -1,45 +0,0 @@
1
- package @app.group.id@.@app.name@.resources.support;
2
-
3
- import org.springframework.core.MethodParameter;
4
- import org.springframework.data.domain.PageRequest;
5
- import org.springframework.data.domain.Pageable;
6
- import org.springframework.data.web.PageableHandlerMethodArgumentResolver;
7
- import org.springframework.web.bind.support.WebDataBinderFactory;
8
- import org.springframework.web.context.request.NativeWebRequest;
9
- import org.springframework.web.method.support.ModelAndViewContainer;
10
-
11
- public class HateoasPageableHandlerMethodArgumentResolver extends PageableHandlerMethodArgumentResolver {
12
- protected int defaultPageSize = 10;
13
-
14
- @Override
15
- public Pageable resolveArgument(MethodParameter methodParameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) {
16
- String contentRange = webRequest.getHeader("Content-Range");
17
- if (contentRange != null && contentRange.length() > 0) {
18
- contentRange = contentRange.trim();
19
- if (contentRange.startsWith("item ")) {
20
- int index = contentRange.indexOf("/");
21
- String [] range = null;
22
- if (index > 0) {
23
- range = contentRange.substring("item ".length(), index).split("-");
24
- } else {
25
- range = contentRange.substring("item ".length()).split("-");
26
- }
27
-
28
- int from = Integer.parseInt(range [0]);
29
- int to = defaultPageSize;
30
- if (range.length > 1) {
31
- to = Integer.parseInt(range [1]);
32
- }
33
-
34
- // Page size is never <= 0:
35
- int pageSize = Math.max(to - from + 1, 1);
36
- // Page is zero-based:
37
- int page = from / pageSize;
38
-
39
- return PageRequest.of(page, pageSize);
40
- }
41
- }
42
-
43
- return super.resolveArgument(methodParameter, mavContainer, webRequest, binderFactory);
44
- }
45
- }
@@ -1,25 +0,0 @@
1
- package @app.group.id@.@app.name@.resources.support;
2
-
3
- import org.springframework.data.domain.Page;
4
- import org.springframework.data.domain.Pageable;
5
- import org.springframework.http.HttpHeaders;
6
- import org.springframework.http.HttpStatus;
7
- import org.springframework.http.ResponseEntity;
8
- import org.springframework.stereotype.Component;
9
-
10
- @Component
11
- public class HypermediaSupport {
12
- public ResponseEntity<Page> wrap(Page page, Pageable pageable) {
13
- HttpHeaders headers = new HttpHeaders();
14
-
15
- long total = page.getTotalElements();
16
- // Page and range are zero-based:
17
- long from = page.getNumber() * page.getSize();
18
- long to = from + pageable.getPageSize() - 1;
19
-
20
- headers.add("Accept-Ranges", "item");
21
- headers.add("Content-Range", "item " + from + "-" + to + "/" + total);
22
-
23
- return new ResponseEntity<Page>(page, headers, HttpStatus.PARTIAL_CONTENT);
24
- }
25
- }
@@ -1,17 +0,0 @@
1
- package @app.group.id@.@app.name@.resources.support;
2
-
3
- import com.fasterxml.jackson.core.JsonGenerator;
4
- import com.fasterxml.jackson.databind.JsonSerializer;
5
- import com.fasterxml.jackson.databind.SerializerProvider;
6
- import org.springframework.data.domain.Page;
7
-
8
- import java.io.IOException;
9
-
10
- public class PageJsonSerializer extends JsonSerializer {
11
- @Override
12
- public void serialize(Object o, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
13
- // Remove the page information that will be serialized to the HTTP headers instead:
14
- Page page = (Page) o;
15
- jsonGenerator.writeObject(page.getContent());
16
- }
17
- }