diff --git a/сonfig-data-executor/config-examples/arangorequest.xml b/сonfig-data-executor/config-examples/arangorequest.xml new file mode 100644 index 0000000..654a46c --- /dev/null +++ b/сonfig-data-executor/config-examples/arangorequest.xml @@ -0,0 +1,96 @@ + + + + edges + + applications + subject + history + edges + + + + localhost + 8529 + userAQL1 + passwordAQL1 + databaseAQL1 + + + + + + applications + + applications + subject + history + edges + + + + localhost + 8529 + userAQL1 + passwordAQL1 + databaseAQL1 + + + + + + subject + + applications + subject + history + edges + + + + localhost + 8529 + userAQL1 + passwordAQL1 + databaseAQL1 + + + + + + history + + applications + subject + history + edges + + + + localhost + 8529 + userAQL1 + passwordAQL1 + databaseAQL1 + + + + + + interdepreq + + applications + subject + history + edges + + + + localhost + 8529 + userAQL1 + passwordAQL1 + databaseAQL1 + + + \ No newline at end of file diff --git a/сonfig-data-executor/config-examples/block.xml b/сonfig-data-executor/config-examples/block.xml new file mode 100644 index 0000000..4db0347 --- /dev/null +++ b/сonfig-data-executor/config-examples/block.xml @@ -0,0 +1,183 @@ + + + + + + + + id + + + + localhost + 5432 + sqlUser + sqlPassword + org.postgresql.Driver + org.postgresql.xa.PGXADataSource + 15 + mainDatabase + + + + + + + + + + recruit_id + + + + localhost + 5432 + sqlUser + sqlPassword + org.postgresql.Driver + org.postgresql.xa.PGXADataSource + 15 + mainDatabase + + + + + + + + + + recruit_id + + + + localhost + 5432 + sqlUser + sqlPassword + org.postgresql.Driver + org.postgresql.xa.PGXADataSource + 15 + mainDatabase + + + + + + + + + + recruit_id + + + + localhost + 5432 + sqlUser + sqlPassword + org.postgresql.Driver + org.postgresql.xa.PGXADataSource + 15 + mainDatabase + + + + + + > 'importId' = ANY (importIds::text[]); + DELETE FROM object_history WHERE object_id = ANY (recruitIds); + DELETE FROM object_versions WHERE object_id = ANY (recruitIds); + END + $$; + ]]> + + + localhost + 5432 + sqlUser + sqlPassword + org.postgresql.Driver + org.postgresql.xa.PGXADataSource + 15 + mainDatabase + + + + \ No newline at end of file diff --git a/сonfig-data-executor/config-examples/removeFromCallList.xml b/сonfig-data-executor/config-examples/removeFromCallList.xml new file mode 100644 index 0000000..0ba11e9 --- /dev/null +++ b/сonfig-data-executor/config-examples/removeFromCallList.xml @@ -0,0 +1,67 @@ + + + + + + + + recruit_id + + + + localhost + 5432 + sqlUser + sqlPassword + org.postgresql.Driver + org.postgresql.xa.PGXADataSource + 15 + mainDatabase + + + + + + + + + + id + + + + localhost + 5432 + sqlUser + sqlPassword + org.postgresql.Driver + org.postgresql.xa.PGXADataSource + 15 + mainDatabase + + + \ No newline at end of file diff --git a/сonfig-data-executor/config-examples/removeFromSystem.xml b/сonfig-data-executor/config-examples/removeFromSystem.xml new file mode 100644 index 0000000..a90d2dc --- /dev/null +++ b/сonfig-data-executor/config-examples/removeFromSystem.xml @@ -0,0 +1,456 @@ + + + + + + + + recruit_id + + + + localhost + 5432 + sqlUser + sqlPassword + org.postgresql.Driver + org.postgresql.xa.PGXADataSource + 15 + mainDatabase + + + + + + + + + + + id + + + + localhost + 5432 + sqlUser + sqlPassword + org.postgresql.Driver + org.postgresql.xa.PGXADataSource + 15 + mainDatabase + + + + + + + + + + recruit_id + + + + localhost + 5432 + sqlUser + sqlPassword + org.postgresql.Driver + org.postgresql.xa.PGXADataSource + 15 + mainDatabase + + + + + + + + + + + id + + + + localhost + 5432 + sqlUser + sqlPassword + org.postgresql.Driver + org.postgresql.xa.PGXADataSource + 15 + mainDatabase + + + + + + + > 'importId' = ANY (importIds::text[]); + DELETE FROM object_history WHERE object_id = ANY (recruitIds); + DELETE FROM object_versions WHERE object_id = ANY (recruitIds); + END + $$; + ]]> + + + + id + + + + localhost + 5432 + sqlUser + sqlPassword + org.postgresql.Driver + org.postgresql.xa.PGXADataSource + 15 + mainDatabase + + + + + + + + + + recruit_id + + + + localhost + 5432 + sqlUser + sqlPassword + org.postgresql.Driver + org.postgresql.xa.PGXADataSource + 15 + mainDatabase + + + + + + + + + + recruit_id + + + + localhost + 5432 + sqlUser + sqlPassword + org.postgresql.Driver + org.postgresql.xa.PGXADataSource + 15 + mainDatabase + + + + + + + + + + + id + + + + localhost + 5432 + sqlUser + sqlPassword + org.postgresql.Driver + org.postgresql.xa.PGXADataSource + 15 + mainDatabase + + + + + + + + + + recruit_id + + + + localhost + 5432 + sqlUser + sqlPassword + org.postgresql.Driver + org.postgresql.xa.PGXADataSource + 15 + mainDatabase + + + + + + + + + + + id + + + + localhost + 5432 + sqlUser + sqlPassword + org.postgresql.Driver + org.postgresql.xa.PGXADataSource + 15 + mainDatabase + + + + + + + + + + recruit_id + + + + localhost + 5432 + sqlUser + sqlPassword + org.postgresql.Driver + org.postgresql.xa.PGXADataSource + 15 + mainDatabase + + + + + + + + + + + id + + + + localhost + 5432 + sqlUser + sqlPassword + org.postgresql.Driver + org.postgresql.xa.PGXADataSource + 15 + mainDatabase + + + + + + + + + + recruit_id + + + + localhost + 5432 + sqlUser + sqlPassword + org.postgresql.Driver + org.postgresql.xa.PGXADataSource + 15 + mainDatabase + + + + + + + + + + recruit_id + + + + localhost + 5432 + sqlUser + sqlPassword + org.postgresql.Driver + org.postgresql.xa.PGXADataSource + 15 + mainDatabase + + + \ No newline at end of file diff --git a/сonfig-data-executor/config-examples/s3request.xml b/сonfig-data-executor/config-examples/s3request.xml new file mode 100644 index 0000000..17bde0e --- /dev/null +++ b/сonfig-data-executor/config-examples/s3request.xml @@ -0,0 +1,13 @@ + + + + minioadmin + minioadmin + 127.0.0.1 + 9000 + application/octet-stream + DELETE + + + + \ No newline at end of file diff --git a/сonfig-data-executor/config-examples/unblock.xml b/сonfig-data-executor/config-examples/unblock.xml new file mode 100644 index 0000000..a84c7e1 --- /dev/null +++ b/сonfig-data-executor/config-examples/unblock.xml @@ -0,0 +1,32 @@ + + + + + + + localhost + 5432 + sqlUser + sqlPassword + org.postgresql.Driver + org.postgresql.xa.PGXADataSource + 15 + mainDatabase + + + + \ No newline at end of file diff --git a/сonfig-data-executor/src/main/resources/application.yml b/сonfig-data-executor/src/main/resources/application.yml index 52614b7..992d18c 100644 --- a/сonfig-data-executor/src/main/resources/application.yml +++ b/сonfig-data-executor/src/main/resources/application.yml @@ -1,3 +1,3 @@ -configDirectory: /Users/maksim/Projects/Micord/configs +configDirectory: /opt/execute-configs server: port: 8090