Commit Graph

177 Commits

Author SHA1 Message Date
Michael Hoennig
37e7b5179d add person business object at db level 2022-09-07 20:24:35 +02:00
Michael Hoennig
9720b37d85 prepare hs-admin-customer files to be used as template + generate script v1 2022-09-07 14:09:33 +02:00
Michael Hoennig
23796c56f9 cleanup+categorization of TODOs 2022-09-07 12:25:12 +02:00
Michael Hoennig
756d5e1ae6 implements delete for hs_admin_contact 2022-09-07 10:32:49 +02:00
Michael Hoennig
2afdb3c3d7 add hs_admin_contact table and repository with findContactByOptionalLabelLike+save 2022-09-06 19:43:15 +02:00
Michael Hoennig
da793ee546 refactor to only a single global admin object global#global.admin 2022-09-06 13:48:30 +02:00
Michael Hoennig
af90fefd49 hs.admin.partner from API via Controller to Entity 2022-09-06 11:07:08 +02:00
Michael Hoennig
1451e7b661 add missing linked yaml files to test api-definition 2022-09-02 13:56:21 +02:00
Michael Hoennig
cd9be1db75 api-definition subdirectories rbac+test 2022-09-02 13:11:15 +02:00
Michael Hoennig
3541b0c48c use /api/rbac/... instead of /api/rbac-... same for /api/test/... 2022-09-02 11:18:09 +02:00
Michael Hoennig
df48bfc0da implements delete rbacuser 2022-09-01 16:57:16 +02:00
Michael Hoennig
a06feff42e defineContext now requires an existing user name or null to create a new user 2022-08-31 16:26:31 +02:00
Michael Hoennig
8731f4a7b2 migrate hs-api to test-api 2022-08-31 15:44:06 +02:00
Michael Hoennig
a117258085 replace unixuser test entities with domain 2022-08-31 15:07:25 +02:00
Michael Hoennig
a33cb4ec29 use customer/package/unixuser only as test data structure (DB part) 2022-08-31 09:42:40 +02:00
Michael Hoennig
817c1a9e58 split off rbac-global from hs-base and allow multiple global objects 2022-08-30 14:21:24 +02:00
Michael Hoennig
7f6e363c8f store http request in audit log 2022-08-30 13:38:12 +02:00
Michael Hoennig
8af93603d5 improve test code coverage and generic array return from native queries 2022-08-30 13:08:29 +02:00
Michael Hoennig
a1c3e95032 introduce defineContext replacing explicit "set local current..." 2022-08-30 09:35:59 +02:00
Michael Hoennig
8045b66324 rename currentUserId->currentUserUuid + currentSubjectIds->currentSubjectsUuids 2022-08-30 09:18:52 +02:00
Michael Hoennig
1c45443da6 add enhanced views for users, roles and grants 2022-08-30 08:58:33 +02:00
Michael Hoennig
4aa8b85bb6 use context.define(...) instead of setCurrent... 2022-08-28 20:39:44 +02:00
Michael Hoennig
1a18ba4a3d improve test code coverage 2022-08-25 20:35:31 +02:00
Michael Hoennig
2531b9071f align create methods and improve and align acceptance tests 2022-08-25 14:46:05 +02:00
Michael Hoennig
6b4c9f6c51 use xxx, yyy and zzz for test customers, makes tests easier to read 2022-08-24 17:56:13 +02:00
Michael Hoennig
258f8b1f66 split tx_audit_log into tx_context and tx_journal 2022-08-24 12:52:28 +02:00
Michael Hoennig
e880a1c2c8 initial audit-log implementation 2022-08-24 12:01:54 +02:00
Michael Hoennig
cb641eb8c6 introduce currentTask and ContextBasedTest 2022-08-24 11:48:31 +02:00
Michael Hoennig
81cfbc62e4 re-numbering rbac db-migration scripts while extracting context (currentUser etc.) 2022-08-24 11:10:34 +02:00
Michael Hoennig
a7f669a1f9 removes logging from jsonb-changes-delta 2022-08-23 10:18:14 +02:00
Michael Hoennig
d0b201aff9 implements jsonb-changes-delta 2022-08-23 10:17:32 +02:00
Michael Hoennig
2022492f21 implements jsonb-changes-delta 2022-08-23 09:36:39 +02:00
Michael Hoennig
dd4f39902f cleaning up database migration files, removing date prefix, renumbering etc. 2022-08-23 09:25:10 +02:00
Michael Hoennig
a04929453c implements optimistic locking for PackageEntity 2022-08-20 12:29:14 +02:00
Michael Hoennig
5ea8069608 implements rbac-grants get-by-id 2022-08-19 17:39:41 +02:00
Michael Hoennig
8a62d9802e implements REST API DELETE to /api/rbac-grants/{grantedRoleUuid}/{granteeUserUuid}: 2022-08-17 17:34:10 +02:00
Michael Hoennig
2cb9375d03 implements revoking role from user at repository level 2022-08-16 17:51:51 +02:00
Michael Hoennig
c8e835f880 implements user granting roles to other users 2022-08-16 10:46:41 +02:00
Michael Hoennig
7869d07d30 add unixuser prototype as preparation for testability of grants 2022-08-14 16:44:26 +02:00
Michael Hoennig
322736cd01 creating and viewing grants 2022-08-13 16:47:36 +02:00
Michael Hoennig
c03697ccd9 POST to /api/customers response 200 -> 201 2022-08-13 14:58:19 +02:00
Michael Hoennig
41d3b678c4 implements create new rbac-user and transacted JpaAttemp 2022-08-12 17:56:39 +02:00
Michael Hoennig
dfc7162675 fix references in api-definition 2022-08-11 12:43:29 +02:00
Michael Hoennig
cb84efe63d split api-definition.yaml 2022-08-11 09:29:15 +02:00
Michael Hoennig
0e4602aac6 add updatePackage (description) using JsonNullableModule and HTTP-to-DB test with RestAssured 2022-08-09 17:51:50 +02:00
Michael Hoennig
eeab68d63a API-first with openapiprocessor and modelmapper 2022-08-08 17:12:51 +02:00
Michael Hoennig
bef358eda6 add RbacUser* tests and improved http status codes 2022-08-05 14:31:54 +02:00
Michael Hoennig
06996e4dc4 add RbacUserController/-Entity/-Repository 2022-08-04 17:23:10 +02:00
Michael Hoennig
e2bdb96e83 README: How to Run the Appplication on a Different Port 2022-08-04 13:07:16 +02:00
Michael Hoennig
212b1077c8 adds RbacRoleControllerRestTest + RbacRoleRepositoryIntegrationTest + fix duplicate key 2022-08-04 09:11:11 +02:00
Michael Hoennig
57cf316c00 for customer findAll()->findCustomerByOptionalPrefix(...) 2022-08-04 09:09:06 +02:00
Michael Hoennig
ece36209a5 add RbacRole... 2022-08-03 06:12:16 +02:00
Michael Hoennig
2ac476d99b add-customer and introducing JpaAttempt test helper 2022-08-02 14:31:48 +02:00
Michael Hoennig
03ee2cfd62 add-customer and introducing JpaAttempt test helper 2022-08-02 11:51:36 +02:00
Michael Hoennig
27c5699c36 add CustomerRepositoryIntegrationTest, fix testcontainers liquibase context and improve error messages 2022-07-31 18:56:03 +02:00
Michael Hoennig
b20920d646 make package owner/admin/tenant roles assumable 2022-07-29 16:25:46 +02:00
Michael Hoennig
46957dc590 bugfix in pureIdentifier + findUuidByIdName and CustomerEntity+Repository 2022-07-29 15:53:20 +02:00
Michael Hoennig
414149f0a1 introduce Context service 2022-07-29 14:24:50 +02:00
Michael Hoennig
2b630aadbc hs-package SQL-Scripts in Liquibase and some bugfixes 2022-07-29 12:37:40 +02:00
Michael Hoennig
61c50c46ed hs-customer SQL-Scripts in Liquibase 2022-07-29 12:14:22 +02:00
Michael Hoennig
8ba952a41d hs-customer SQL-Scripts in Liquibase 2022-07-29 11:53:58 +02:00
Michael Hoennig
a478fe4cf1 cleanup in Liquibase files, header, formatting etc. 2022-07-29 11:38:51 +02:00
Michael Hoennig
4c403b0436 formatted SQL code 2022-07-29 08:46:04 +02:00
Michael Hoennig
fb8862c37e convert rbac-statistics and rbac-role-builder*.sql files to Liquibase changesets 2022-07-28 17:17:22 +02:00
Michael Hoennig
d234ac3227 convert rbac*.sql files, except test-file, to Liquibase changesets 2022-07-28 16:55:21 +02:00
Michael Hoennig
6c33bbe780 add SpringBoot 2.7.x application 2022-07-28 16:51:36 +02:00
Michael Hoennig
f2d0fbe67a removing JHipster 2022-07-22 13:31:37 +02:00
Michael Hoennig
57b6399950 historicization of JHI_USER_AUTHORITY table 2019-05-25 16:40:41 +02:00
Michael Hoennig
354cfbbebc historicization of JHI_USER table 2019-05-25 16:40:16 +02:00
Michael Hoennig
01d28a85d4 #137 [Rechte-Modul] sample-data für User+UserRoleAssignment 2019-05-08 20:17:28 +02:00
Michael Hoennig
735f672ea1 UserRoleAssignment entityTypeId+entityObjectId now required
this table only stores entity-dependent roles,
independent roles are stored in the JHipster table JHI_USER_AUTHORITY
2019-05-08 10:56:48 +02:00
Michael Hoennig
8ca206e1c0 accessrights.jdl: UserRoleAssignments entity*Id required
Merge branch 'jhipster-generated'
2019-05-07 13:08:26 +02:00
Michael Hoennig
bac012f9b4 accessrights.jdl: UserRoleAssignments entity*Id required 2019-05-07 13:01:04 +02:00
Michael Hoennig
3228b0d0da make Hibernate sequence start above 1,000,000 to spare ids for sample data 2019-05-07 12:11:17 +02:00
Michael Hoennig
807ed74091 historicization for UserRoleAssinment 2019-05-07 11:01:01 +02:00
Michael Hoennig
6d85a59744 temporarily removing historicization for UserRoleAssinment
just to prepare a complete HOWTO-commit
2019-05-07 10:57:17 +02:00
Michael Hoennig
5337e7a7e8 historicization trigger+view for Customer, Membership, SepaMandate, Share and Asset 2019-05-07 10:54:27 +02:00
Michael Hoennig
e49323e99f UserRoleAssignment historicization 2019-05-06 19:12:12 +02:00
Michael Hoennig
f3c207528e general historicization table+function for Postgres 2019-05-06 19:11:33 +02:00
Michael Hoennig
f8ed5069fb sample-data: replacing pipes ('|') with newlines now via customChange
this avoids database-specific code spread over all sample-data/*.xml files
2019-05-05 14:15:07 +02:00
Michael Hoennig
4c42d15c12 fixing sample-data flag via gw -Psample-data in code+documentation 2019-05-05 14:13:17 +02:00
Michael Hoennig
6efa167427 adding Postgres configurations for dev-environment with sample-data 2019-05-04 13:59:36 +02:00
Michael Hoennig
d672d5b0cd more sample-data for assets 2019-05-03 22:36:57 +02:00
Michael Hoennig
b7aac92807 match membership sample-date with sepa-mandate sample-data 2019-05-03 20:22:17 +02:00
Michael Hoennig
20b9d2f105 #131 sample-data for sepamandate 2019-05-03 20:21:07 +02:00
Michael Hoennig
5415806621 use STRINGDECODE \n in UPDATE-Statements for linebreaks in sample-data 2019-05-02 23:36:08 +02:00
Michael Hoennig
13100a9010 assets sample data 2019-05-02 11:25:13 +02:00
Michael Hoennig
84f1abf0b0 shares sample data and some cleanup 2019-05-02 11:17:22 +02:00
Michael Hoennig
7f358cc7fe membership sample data and some minor fixes 2019-05-02 11:06:09 +02:00
Michael Hoennig
89437ca067 filter Customer table + class TableFilter 2019-05-02 09:54:37 +02:00
Michael Hoennig
6df2cbce0b remove duplicate userId from entity UserRoleAssignment
(it already comes implicitly through the relationship)
2019-04-30 18:29:32 +02:00
Michael Hoennig
4529527e3b removing duplicate userId from entity UserRoleAssignment
(it comes implicitly through the relationship)
2019-04-30 18:04:25 +02:00
Michael Hoennig
3c89878c21 cate userId from entity UserRoleAssignment
(it comes implicitly through the relationship)
2019-04-30 17:58:56 +02:00
Michael Hoennig
3908ff3d74 Merge branch 'jhipster-generated' with initially imported accessrighs.jdl 2019-04-30 17:29:18 +02:00
Michael Hoennig
084c12d2c4 adding and importing accessrights.jdl with spotless 2019-04-30 17:24:24 +02:00
Michael Hoennig
1aed3236a5 Merge branch 'jhipster-generated'
# Conflicts:
#	build.gradle
#	cfg/spotless/eclipse_formatter.xml
#	cfg/spotless/hsadminng.importorder
#	src/main/java/org/hostsharing/hsadminng/HsadminNgApp.java
#	src/main/java/org/hostsharing/hsadminng/domain/Asset.java
#	src/main/java/org/hostsharing/hsadminng/domain/Membership.java
#	src/main/java/org/hostsharing/hsadminng/domain/SepaMandate.java
#	src/main/java/org/hostsharing/hsadminng/domain/Share.java
#	src/main/java/org/hostsharing/hsadminng/repository/MembershipRepository.java
#	src/main/java/org/hostsharing/hsadminng/security/SecurityUtils.java
#	src/main/java/org/hostsharing/hsadminng/service/AssetService.java
#	src/main/java/org/hostsharing/hsadminng/service/CustomerQueryService.java
#	src/main/java/org/hostsharing/hsadminng/service/MembershipQueryService.java
#	src/main/java/org/hostsharing/hsadminng/service/MembershipService.java
#	src/main/java/org/hostsharing/hsadminng/service/SepaMandateQueryService.java
#	src/main/java/org/hostsharing/hsadminng/service/ShareService.java
#	src/main/java/org/hostsharing/hsadminng/service/dto/AssetDTO.java
#	src/main/java/org/hostsharing/hsadminng/service/dto/CustomerCriteria.java
#	src/main/java/org/hostsharing/hsadminng/service/dto/CustomerDTO.java
#	src/main/java/org/hostsharing/hsadminng/service/dto/MembershipDTO.java
#	src/main/java/org/hostsharing/hsadminng/service/dto/SepaMandateDTO.java
#	src/main/java/org/hostsharing/hsadminng/service/dto/ShareDTO.java
#	src/main/java/org/hostsharing/hsadminng/service/mapper/CustomerMapper.java
#	src/main/java/org/hostsharing/hsadminng/web/rest/AssetResource.java
#	src/main/java/org/hostsharing/hsadminng/web/rest/ShareResource.java
#	src/main/java/org/hostsharing/hsadminng/web/rest/errors/ExceptionTranslator.java
#	src/test/java/org/hostsharing/hsadminng/web/rest/AssetResourceIntTest.java
#	src/test/java/org/hostsharing/hsadminng/web/rest/CustomerResourceIntTest.java
#	src/test/java/org/hostsharing/hsadminng/web/rest/MembershipResourceIntTest.java
#	src/test/java/org/hostsharing/hsadminng/web/rest/SepaMandateResourceIntTest.java
#	src/test/java/org/hostsharing/hsadminng/web/rest/ShareResourceIntTest.java
2019-04-30 17:13:06 +02:00
Michael Hoennig
2c94d6a985 adding spotless, re-importing customer.jdl and spotlessApply 2019-04-30 17:08:45 +02:00
Michael Hierweck
2fdb914f6d Merge branch 'master' of ssh://dev.hostsharing.net:29418/hsadmin/hsadmin-ng 2019-04-27 15:46:55 +02:00
Michael Hierweck
d4adbb972d Sample data for customers. 2019-04-27 15:46:43 +02:00
Michael Hoennig
5d843f4725 org.hostsharing.hsadminng logging on INFO level and logging in SecurityUtils 2019-04-27 10:28:16 +02:00