-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #2302 - Adds Permissions to Users
- Extends LDAP client to read permission attributes from users - Extends database schema with PERMISSION_INFO table and sets schema version to 6.4.0 - Exetends User models (Builder, Mapper,..) to have permission attribute - Determination of Domains is now able to be done via permissions defined on users Signed-off-by: Kálmán Képes <[email protected]>
- Loading branch information
Showing
39 changed files
with
566 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...on/taskana-common/src/main/resources/sql/db2/taskana_schema_update_6.2.0_to_6.4.0_db2.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
-- this script updates the TASKANA database schema from version 6.2.0 to version 6.4.0. | ||
SET SCHEMA %schemaName%; | ||
|
||
INSERT INTO TASKANA_SCHEMA_VERSION (ID, VERSION, CREATED) | ||
VALUES (nextval('TASKANA_SCHEMA_VERSION_ID_SEQ'), '6.4.0', CURRENT_TIMESTAMP); | ||
|
||
CREATE TABLE PERMISSION_INFO | ||
( | ||
USER_ID VARCHAR(32) NOT NULL, | ||
PERMISSION_ID VARCHAR(256) NOT NULL, | ||
PRIMARY KEY (USER_ID, PERMISSION_ID) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
common/taskana-common/src/main/resources/sql/h2/taskana_schema_update_6.2.0_to_6.4.0_h2.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
-- this script updates the TASKANA database schema from version 6.2.0 to version 6.4.0. | ||
|
||
INSERT INTO TASKANA_SCHEMA_VERSION (ID, VERSION, CREATED) | ||
VALUES (nextval('TASKANA_SCHEMA_VERSION_ID_SEQ'), '6.4.0', CURRENT_TIMESTAMP); | ||
|
||
CREATE TABLE PERMISSION_INFO | ||
( | ||
USER_ID VARCHAR(32) NOT NULL, | ||
PERMISSION_ID VARCHAR(256) NOT NULL, | ||
PRIMARY KEY (USER_ID, PERMISSION_ID) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...kana-common/src/main/resources/sql/oracle/taskana_schema_update_6.2.0_to_6.4.0_oracle.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
-- this script updates the TASKANA database schema from version 6.2.0 to version 6.4.0. | ||
ALTER SESSION SET CURRENT_SCHEMA = %schemaName%; | ||
|
||
INSERT INTO TASKANA_SCHEMA_VERSION (ID, VERSION, CREATED) | ||
VALUES (nextval('TASKANA_SCHEMA_VERSION_ID_SEQ'), '6.4.0', CURRENT_TIMESTAMP); | ||
|
||
CREATE TABLE PERMISSION_INFO | ||
( | ||
USER_ID VARCHAR2(32) NOT NULL, | ||
PERMISSION_ID VARCHAR2(256) NOT NULL, | ||
CONSTRAINT PERMISSION_INFO_PKEY PRIMARY KEY (USER_ID, PERMISSION_ID) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...-common/src/main/resources/sql/postgres/taskana_schema_update_6.2.0_to_6.4.0_postgres.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
-- this script updates the TASKANA database schema from version 6.2.0 to version 6.4.0. | ||
|
||
SET search_path = %schemaName%; | ||
|
||
INSERT INTO TASKANA_SCHEMA_VERSION (ID, VERSION, CREATED) | ||
VALUES (nextval('TASKANA_SCHEMA_VERSION_ID_SEQ'), '6.4.0', CURRENT_TIMESTAMP); | ||
|
||
CREATE TABLE PERMISSION_INFO | ||
( | ||
USER_ID VARCHAR(32) NOT NULL, | ||
PERMISSION_ID VARCHAR(256) NOT NULL, | ||
PRIMARY KEY (USER_ID, PERMISSION_ID) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.