keyParts = new HashMap<>();
- keyParts.put("$subject$", subject);
- return this.generateKey(keyParts);
- }
-}
diff --git a/notification-service/notification-web/src/main/resources/config/application.yml b/notification-service/notification-web/src/main/resources/config/application.yml
deleted file mode 100644
index 06b5f37c9..000000000
--- a/notification-service/notification-web/src/main/resources/config/application.yml
+++ /dev/null
@@ -1,21 +0,0 @@
-spring:
- jackson:
- default-property-inclusion: non_null
- config:
- import: optional:classpath:config/app.env[.properties], optional:file:../config/app.env[.properties],
- optional:classpath:config/db.yml[.yml], optional:classpath:config/db-${spring.profiles.active}.yml[.yml], optional:file:../config/db-${spring.profiles.active}.yml[.yml],
- optional:classpath:config/permissions.yml[.yml], optional:classpath:config/permissions-${spring.profiles.active}.yml[.yml], optional:file:../config/permissions-${spring.profiles.active}.yml[.yml],
- optional:classpath:config/errors.yml[.yml], optional:classpath:config/errors-${spring.profiles.active}.yml[.yml], optional:file:../config/errors-${spring.profiles.active}.yml[.yml],
- optional:classpath:config/security.yml[.yml], optional:classpath:config/security-${spring.profiles.active}.yml[.yml], optional:file:../config/security-${spring.profiles.active}.yml[.yml],
- optional:classpath:config/server.yml[.yml], optional:classpath:config/server-${spring.profiles.active}.yml[.yml], optional:file:../config/server-${spring.profiles.active}.yml[.yml],
- optional:classpath:config/logging.yml[.yml], optional:classpath:config/logging-${spring.profiles.active}.yml[.yml], optional:file:../config/logging-${spring.profiles.active}.yml[.yml],
- optional:classpath:config/idpclaims.yml[.yml], optional:classpath:config/idpclaims-${spring.profiles.active}.yml[.yml], optional:file:../config/idpclaims-${spring.profiles.active}.yml[.yml],
- optional:classpath:config/cache.yml[.yml], optional:classpath:config/cache-${spring.profiles.active}.yml[.yml], optional:file:../config/cache-${spring.profiles.active}.yml[.yml],
- optional:classpath:config/tenant.yml[.yml], optional:classpath:config/tenant-${spring.profiles.active}.yml[.yml], optional:file:../config/tenant-${spring.profiles.active}.yml[.yml],
- optional:classpath:config/locale.yml[.yml], optional:classpath:config/locale-${spring.profiles.active}.yml[.yml], optional:file:../config/locale-${spring.profiles.active}.yml[.yml],
- optional:classpath:config/cors.yml[.yml], optional:classpath:config/cors-${spring.profiles.active}.yml[.yml], optional:file:../config/cors-${spring.profiles.active}.yml[.yml],
- optional:classpath:config/notification.yml[.yml], optional:classpath:config/notification-${spring.profiles.active}.yml[.yml], optional:file:../config/notification-${spring.profiles.active}.yml[.yml],
- optional:classpath:config/email.yml[.yml], optional:classpath:config/email-${spring.profiles.active}.yml[.yml], optional:file:../config/email-${spring.profiles.active}.yml[.yml],
- optional:classpath:config/queue.yml[.yml], optional:classpath:config/queue-${spring.profiles.active}.yml[.yml], optional:file:../config/queue-${spring.profiles.active}.yml[.yml],
- optional:classpath:config/cipher.yml[.yml], optional:classpath:config/cipher-${spring.profiles.active}.yml[.yml], optional:file:../config/cipher-${spring.profiles.active}.yml[.yml],
- optional:classpath:config/formatting.yml[.yml], optional:classpath:config/formatting-${spring.profiles.active}.yml[.yml], optional:file:../config/formatting-${spring.profiles.active}.yml[.yml]
diff --git a/notification-service/notification-web/src/main/resources/config/cache.yml b/notification-service/notification-web/src/main/resources/config/cache.yml
deleted file mode 100644
index fb0072062..000000000
--- a/notification-service/notification-web/src/main/resources/config/cache.yml
+++ /dev/null
@@ -1,62 +0,0 @@
-cache:
- manager:
- fallbackToNoOpCache: true
- caffeineCaches:
- - names: [ apikey ]
- allowNullValues: true
- initialCapacity: 100
- maximumSize: 500
- enableRecordStats: false
- expireAfterWriteSeconds: 600
- - names: [ tenantByCode ]
- allowNullValues: true
- initialCapacity: 100
- maximumSize: 500
- enableRecordStats: false
- expireAfterWriteSeconds: 20
- - names: [ tenantById ]
- allowNullValues: true
- initialCapacity: 100
- maximumSize: 500
- enableRecordStats: false
- expireAfterWriteSeconds: 20
- - names: [ userBySubjectId ]
- allowNullValues: true
- initialCapacity: 100
- maximumSize: 5000
- enableRecordStats: false
- expireAfterWriteSeconds: 20
- - names: [ userAccessTenant ]
- allowNullValues: true
- initialCapacity: 100
- maximumSize: 500
- enableRecordStats: false
- expireAfterWriteSeconds: 20
- - names: [ formattingUserProfile ]
- allowNullValues: true
- initialCapacity: 100
- maximumSize: 500
- enableRecordStats: false
- expireAfterWriteSeconds: 20
- mapCaches:
- apiKey:
- name: apikey
- keyPattern: ntf_resolve_$keyhash$:v0
- userBySubjectId:
- name: userBySubjectId
- keyPattern: ntf_user_by_subject_$subject$:v0
- tenantByCode:
- name: tenantByCode
- keyPattern: ntf_tenant_by_code_$code$:v0
- tenantById:
- name: tenantById
- keyPattern: ntf_tenant_by_id_$tenantId$:v0
- userAllowedTenant:
- name: userAccessTenant
- keyPattern: ntf_user_access_tenant_$user_id$_$tenant_id$:v0
- formattingUserProfileCache:
- name: formattingUserProfile
- keyPattern: ntf_formatting_user_profile$user_id$:v0
- template:
- name: template
- key-pattern: ------
diff --git a/notification-service/notification-web/src/main/resources/config/cipher.yml b/notification-service/notification-web/src/main/resources/config/cipher.yml
deleted file mode 100644
index caa559296..000000000
--- a/notification-service/notification-web/src/main/resources/config/cipher.yml
+++ /dev/null
@@ -1,35 +0,0 @@
-cipher-profiles:
- profile-map:
- configuration-profile-name: "configuration"
- queue-profile-name: "queue"
- notification-profile-name: "queue"
-
-cipher:
-# salted-hash:
-# default-o: null
-# options: null
- symetric-encryption:
- default-o: null
- options:
- configuration:
- aes:
- key: ${CIPHER_SYMETRIC_ENCRYPTION_CONFIGURATION_AES_KEY:}
- iv: ${CIPHER_SYMETRIC_ENCRYPTION_CONFIGURATION_AES_IV:}
- queue:
- aes:
- key: ${CIPHER_SYMETRIC_ENCRYPTION_QUEUE_AES_KEY:}
- iv: ${CIPHER_SYMETRIC_ENCRYPTION_QUEUE_AES_IV:}
- masking:
- default: null
- options:
- configuration:
- character: "*"
- clear-begining: 2
- clear-ending: 4
- at-least-percentage: 70
- digital-signature:
- default: null
- options:
- configuration:
- certificate-path: null
- certificate-password: null
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/config/cors-devel.yml b/notification-service/notification-web/src/main/resources/config/cors-devel.yml
deleted file mode 100644
index 3e9227ef3..000000000
--- a/notification-service/notification-web/src/main/resources/config/cors-devel.yml
+++ /dev/null
@@ -1,3 +0,0 @@
-web:
- cors:
- allowed-origins: [ http://localhost, http://localhost:4200 ]
diff --git a/notification-service/notification-web/src/main/resources/config/cors.yml b/notification-service/notification-web/src/main/resources/config/cors.yml
deleted file mode 100644
index 3774f14d4..000000000
--- a/notification-service/notification-web/src/main/resources/config/cors.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-web:
- cors:
- enabled: true
- allowed-methods: [ HEAD, GET, POST, PUT, DELETE, PATCH ]
- allowed-headers: [ Authorization, Cache-Control, Content-Type, Content-Disposition, x-tenant ]
- exposed-headers: [ Authorization, Cache-Control, Content-Type, Content-Disposition ]
- allow-credentials: false
diff --git a/notification-service/notification-web/src/main/resources/config/db-devel.yml b/notification-service/notification-web/src/main/resources/config/db-devel.yml
deleted file mode 100644
index 22a089fbd..000000000
--- a/notification-service/notification-web/src/main/resources/config/db-devel.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-spring:
- jpa:
- show-sql: true
- properties:
- hibernate:
- show_sql: true
- format_sql: false
diff --git a/notification-service/notification-web/src/main/resources/config/db.yml b/notification-service/notification-web/src/main/resources/config/db.yml
deleted file mode 100644
index 18ca948e4..000000000
--- a/notification-service/notification-web/src/main/resources/config/db.yml
+++ /dev/null
@@ -1,29 +0,0 @@
-spring:
- jpa:
- properties:
- org:
- hibernate:
- flushMode: MANUAL
- hibernate:
- globally_quoted_identifiers: true
- ddl-auto: validate
- dialect: org.hibernate.dialect.PostgreSQLDialect
- hibernate:
- naming:
- physical-strategy: gr.cite.notification.data.namingstrategy.PrefixPhysicalNamingStrategy
- implicit-strategy: org.springframework.boot.orm.jpa.hibernate.SpringImplicitNamingStrategy
- datasource:
- url: ${DB_CONNECTION_STRING}
- username: ${DB_USER}
- password: ${DB_PASSWORD}
- driver-class-name: org.postgresql.Driver
- hikari:
- connection-timeout: 30000
- minimum-idle: 3
- maximum-pool-size: 10
- idle-timeout: 600000
- max-lifetime: 1800000
-
-
-naming-strategy:
- prefix: ntf_
diff --git a/notification-service/notification-web/src/main/resources/config/email.yml b/notification-service/notification-web/src/main/resources/config/email.yml
deleted file mode 100644
index 364788161..000000000
--- a/notification-service/notification-web/src/main/resources/config/email.yml
+++ /dev/null
@@ -1,14 +0,0 @@
-spring:
- mail:
- host: ${MAIL_HOST}
- port: ${MAIL_PORT}
- username: ${MAIL_USERNAME}
- password: ${MAIL_PASSWORD}
- properties:
- mail:
- smtp:
- auth: ${MAIL_AUTH}
- starttls:
- enable: ${MAIL_TLS}
-email:
- address: ${MAIL_ADDRESS}
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/config/errors.yml b/notification-service/notification-web/src/main/resources/config/errors.yml
deleted file mode 100644
index 3764076c2..000000000
--- a/notification-service/notification-web/src/main/resources/config/errors.yml
+++ /dev/null
@@ -1,59 +0,0 @@
-error-thesaurus:
-# common errors start with 1..
- hash-conflict:
- code: 100
- message: there is a hash conflict for the item modified. please reload to get the latest changes
- forbidden:
- code: 101
- message: insufficient rights
- system-error:
- code: 102
- message: an unexpected system error occurred
- missing-tenant:
- code: 103
- message: tenant scope not provided
- model-validation:
- code: 106
- message: validation error
- tenant-not-allowed:
- code: 112
- message: tenant not allowed
- tenant-tampering:
- code: 127
- message: Tenant tampering
- tenant-configuration-type-can-not-change:
- code: 128
- message: Tenant configuration type can not change
- multiple-tenant-configuration-type-not-allowed:
- code: 129
- message: Multiple Tenant Configuration Type Not Allowed
-
-# annotations¬ification errors start with 2..
- invalid-api-key:
- code: 200
- message: provided APIKey not valid
- stale-api-key:
- code: 201
- message: there was a problem authorizing you with your API key. Please try again. Contact the system administrator if the problem persists
- sensitive-info:
- code: 202
- message: you are attempting to access sensitive information. please don't do that
- non-person-principal:
- code: 203
- message: the operation is available only to person users
- blocking-consent:
- code: 204
- message: user consents are not sufficient to complete the operation
- single-tenant-configuration-per-type-supported:
- code: 205
- message: a single tenant configuration entry per config type is supported
- incompatible-tenant-configuration-types:
- code: 206
- message: the provided tenant configuration type is incompatible
- missing-totp-token:
- code: 207
- message: totp token not provided
- overlapping-tenant-configuration-notifier-list:
- code: 208
- message: Overlapping Tenant Configuration Notifier List
-
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/config/formatting.yml b/notification-service/notification-web/src/main/resources/config/formatting.yml
deleted file mode 100644
index abdc31184..000000000
--- a/notification-service/notification-web/src/main/resources/config/formatting.yml
+++ /dev/null
@@ -1,6 +0,0 @@
-formatting:
- options:
- integer-format: "%,d"
- decimal-digits-round: 2
- decimal-format: "#0.00"
- date-time-format: "YYYY-MM-dd'T'HH:mm:ss"
diff --git a/notification-service/notification-web/src/main/resources/config/idpclaims.yml b/notification-service/notification-web/src/main/resources/config/idpclaims.yml
deleted file mode 100644
index 26e00f2a1..000000000
--- a/notification-service/notification-web/src/main/resources/config/idpclaims.yml
+++ /dev/null
@@ -1,58 +0,0 @@
-idpclient:
- claims:
- mapping:
- Subject:
- - type: sub
- Name:
- - type: name
- Client:
- - type: client_id
- AuthenticationMethod:
- - type: amr
- NotBefore:
- - type: nbf
- AuthenticatedAt:
- - type: auth_time
- ExpiresAt:
- - type: exp
- Email:
- - type: email
- Roles:
- - type: resource_access
- path: dmp_web.roles
- - type: tenant_roles
- filterBy: "(.*):::TenantCode::"
- extractByExpression: "(.*):(.*)"
- extractExpressionValue: "[[g1]]"
- GlobalRoles:
- - type: resource_access
- path: dmp_web.roles
- TenantRoles:
- - type: tenant_roles
- filterBy: "(.*):::TenantCode::"
- extractByExpression: "(.*):(.*)"
- extractExpressionValue: "[[g1]]"
- Scope:
- - type: scope
- AccessToken:
- - type: x-access-token
- visibility: SENSITIVE
- Tenant:
- - type: x-tenant
- IssuedAt:
- - type: iat
- Issuer:
- - type: iss
- Audience:
- - type: aud
- TokenType:
- - type: typ
- AuthorizedParty:
- - type: azp
- Authorities:
- - type: authorities
- TenantCodes:
- - type: tenant_roles
- filterBy: "(.*):(.*)"
- extractByExpression: "(.*):(.*)"
- extractExpressionValue: "[[g2]]"
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/config/locale.yml b/notification-service/notification-web/src/main/resources/config/locale.yml
deleted file mode 100644
index b09c59e53..000000000
--- a/notification-service/notification-web/src/main/resources/config/locale.yml
+++ /dev/null
@@ -1,4 +0,0 @@
-locale:
- timezone: UTC
- language: en
- culture: en-US
diff --git a/notification-service/notification-web/src/main/resources/config/logging-devel.yml b/notification-service/notification-web/src/main/resources/config/logging-devel.yml
deleted file mode 100644
index 2f565c0d7..000000000
--- a/notification-service/notification-web/src/main/resources/config/logging-devel.yml
+++ /dev/null
@@ -1,2 +0,0 @@
-logging:
- config: classpath:logging/logback-dev.xml
diff --git a/notification-service/notification-web/src/main/resources/config/logging.yml b/notification-service/notification-web/src/main/resources/config/logging.yml
deleted file mode 100644
index 56e152d3f..000000000
--- a/notification-service/notification-web/src/main/resources/config/logging.yml
+++ /dev/null
@@ -1,35 +0,0 @@
-logging:
- context:
- request:
- requestIdKey: req.id
- requestRemoteHostKey: req.remoteHost
- requestUriKey: req.requestURI
- requestQueryStringKey: req.queryString
- requestUrlKey : req.requestURL
- requestMethodKey: req.method
- requestUserAgentKey: req.userAgent
- requestForwardedForKey: req.xForwardedFor
- requestSchemeKey: req.scheme
- requestRemoteAddressKey: req.remoteAddr
- requestRemotePortKey: req.remotePort
- requestRemoteUserKey: req.remoteUser
- principal:
- subjectKey: usr.subject
- nameKey: usr.name
- clientKey: usr.client
-audit:
- enable: true
- requestRemoteHostKey: req.remoteHost
- requestUriKey: req.requestURI
- requestQueryStringKey: req.queryString
- requestUrlKey : req.requestURL
- requestMethodKey: req.method
- requestUserAgentKey: req.userAgent
- requestForwardedForKey: req.xForwardedFor
- requestSchemeKey: req.scheme
- requestRemoteAddressKey: req.remoteAddr
- requestRemotePortKey: req.remotePort
- requestRemoteUserKey: req.remoteUser
- principalSubjectKey: usr.subject
- principalNameKey: usr.name
- principalClientKey: usr.client
diff --git a/notification-service/notification-web/src/main/resources/config/notification-devel.yml b/notification-service/notification-web/src/main/resources/config/notification-devel.yml
deleted file mode 100644
index 05d82e565..000000000
--- a/notification-service/notification-web/src/main/resources/config/notification-devel.yml
+++ /dev/null
@@ -1,728 +0,0 @@
-notification:
- staticFields:
- fields:
- - key: "{installation-url}"
- type: "String"
- value: "http://localhost:4200"
- resolver:
- global-policies:
- - #planInvitationExternalUser
- type: 065DEECD-21BB-44AF-9983-E660FDF24BC4
- contacts: [ email ]
- - #planInvitationExistingUser
- type: 4904dea2-5079-46d3-83be-3a19c9ab45dc
- contacts: [ email, inapp ]
- - #dpmModified
- type: 4542262A-22F8-4BAA-9DB6-1C8E70AC1DBB
- contacts: [ inapp, email ]
- - #planFinalised
- type: 90DB0B46-42DE-BD89-AEBF-6F27EFEB256E
- contacts: [ inapp, email ]
- - #descriptionCreated
- type: 8965b1d5-99a6-4acf-9016-c0d0ce341364
- contacts: [ inapp, email ]
- - #descriptionModified
- type: 4FDBFA80-7A71-4A69-B854-67CBB70648F1
- contacts: [ inapp, email ]
- - #descriptionFinalised
- type: 33790bad-94d4-488a-8ee2-7f6295ca18ea
- contacts: [ inapp, email ]
- - #descriptionAnnotationCreated
- type: db1e99d2-a240-4e75-9bb2-ef25b234c1f0
- contacts: [ inapp, email ]
- - #mergeAcountConfirmation
- type: BFE68845-CB05-4C5A-A03D-29161A7C9660
- contacts: [ email ]
- - #removeCredentialConfirmation
- type: C9BC3F16-057E-4BBA-8A5F-36BD835E5604
- contacts: [ email ]
- - #planDeposit
- type: 55736F7A-83AB-4190-AF43-9D031A6F9612
- contacts: [ inapp, email ]
- - #descriptionTemplateInvitation
- type: 223BB607-EFA1-4CE7-99EC-4BEABFEF9A8B
- contacts: [ inapp, email ]
- - #contactSupportType
- type: 5B1D6C52-88F9-418B-9B8A-6F1F963D9EAD
- contacts: [ email ]
- - #publicContactSupportType
- type: B542B606-ACC6-4629-ADEF-4D8EE2F01222
- contacts: [ email ]
- - #tenantSpecificInvitationExternalUserType
- type: 497dada5-eccc-4bc0-9e0b-63e22b4eb0be
- contacts: [ email ]
- - #tenantSpecificInvitationExistingUserType
- type: b3809c17-d1e4-420a-919c-828564114191
- contacts: [ inapp, email ]
- message:
- email:
- flows:
- - #planInvitationExternalUser
- key: 065DEECD-21BB-44AF-9983-E660FDF24BC4
- subject-path: classpath:notification_templates/planinvitationexternaluser/email/subject.{language}.txt
- subject-field-options:
- mandatory: [ ]
- optional: [ ]
- body-path: classpath:notification_templates/planinvitationexternaluser/email/body.{language}.html
- body-field-options:
- mandatory: [ "{planname}", "{planrole}", "{installation-url}", "{confirmationToken}" ]
- optional:
- - key: "{recipient}"
- value:
- - key: "{tenant-url-path}"
- value:
- formatting:
- '[{planname}]': null
- '[{planrole}]': null
- '[{recipient}]': null
- '[{tenant-url-path}]': null
- cc: [ ]
- cc-mode: 0
- bcc: [ ]
- bcc-mode: 0
- allow-attachments: false
- cipher-fields: [ ]
- - #planInvitationExistingUser
- key: 4904dea2-5079-46d3-83be-3a19c9ab45dc
- subject-path: classpath:notification_templates/planinvitationexistinguser/email/subject.{language}.txt
- subject-field-options:
- mandatory: [ ]
- optional: [ ]
- body-path: classpath:notification_templates/planinvitationexistinguser/email/body.{language}.html
- body-field-options:
- mandatory: [ "{planname}", "{planrole}", "{reasonName}", "{installation-url}", "{id}"]
- optional:
- - key: "{recipient}"
- value:
- - key: "{tenant-url-path}"
- value:
- formatting:
- '[{planname}]': null
- '[{planrole}]': null
- '[{reasonName}]': null
- '[{recipient}]': null
- '[{tenant-url-path}]': null
- cc: [ ]
- cc-mode: 0
- bcc: [ ]
- bcc-mode: 0
- allow-attachments: false
- cipher-fields: [ ]
- - #planModified
- key: 4542262A-22F8-4BAA-9DB6-1C8E70AC1DBB
- subject-path: classpath:notification_templates/planmodified/email/subject.{language}.txt
- subject-field-options:
- mandatory: [ ]
- optional: [ ]
- body-path: classpath:notification_templates/planmodified/email/body.{language}.html
- body-field-options:
- mandatory: [ "{reasonName}", "{name}", "{installation-url}", "{id}" ]
- optional:
- - key: "{recipient}"
- value:
- - key: "{tenant-url-path}"
- value:
- formatting:
- '[{reasonName}]': null
- '[{name}]': null
- '[{recipient}]': null
- '[{tenant-url-path}]': null
- cc: [ ]
- cc-mode: 0
- bcc: [ ]
- bcc-mode: 0
- allow-attachments: false
- cipher-fields: [ ]
- - #planFinalised
- key: 90DB0B46-42DE-BD89-AEBF-6F27EFEB256E
- subject-path: classpath:notification_templates/planfinalised/email/subject.{language}.txt
- subject-field-options:
- mandatory: [ ]
- optional: [ ]
- body-path: classpath:notification_templates/planfinalised/email/body.{language}.html
- body-field-options:
- mandatory: [ "{reasonName}", "{name}", "{installation-url}", "{id}" ]
- optional:
- - key: "{recipient}"
- value:
- - key: "{tenant-url-path}"
- value:
- formatting:
- '[{reasonName}]': null
- '[{name}]': null
- '[{recipient}]': null
- '[{tenant-url-path}]': null
- cc: [ ]
- cc-mode: 0
- bcc: [ ]
- bcc-mode: 0
- allow-attachments: false
- cipher-fields: [ ]
- - #desriptionCreated
- key: 8965b1d5-99a6-4acf-9016-c0d0ce341364
- subject-path: classpath:notification_templates/descriptioncreated/email/subject.{language}.txt
- subject-field-options:
- mandatory: [ ]
- optional: [ ]
- body-path: classpath:notification_templates/descriptioncreated/email/body.{language}.html
- body-field-options:
- mandatory: [ "{reasonName}", "{name}", "{installation-url}", "{id}" ]
- optional:
- - key: "{recipient}"
- value:
- - key: "{tenant-url-path}"
- value:
- formatting:
- '[{reasonName}]': null
- '[{name}]': null
- '[{recipient}]': null
- '[{tenant-url-path}]': null
- cc: [ ]
- cc-mode: 0
- bcc: [ ]
- bcc-mode: 0
- allow-attachments: false
- cipher-fields: [ ]
- - #desriptionModified
- key: 4FDBFA80-7A71-4A69-B854-67CBB70648F1
- subject-path: classpath:notification_templates/descriptionmodified/email/subject.{language}.txt
- subject-field-options:
- mandatory: [ ]
- optional: [ ]
- body-path: classpath:notification_templates/descriptionmodified/email/body.{language}.html
- body-field-options:
- mandatory: [ "{reasonName}", "{name}", "{installation-url}", "{id}" ]
- optional:
- - key: "{recipient}"
- value:
- - key: "{tenant-url-path}"
- value:
- formatting:
- '[{reasonName}]': null
- '[{name}]': null
- '[{recipient}]': null
- '[{tenant-url-path}]': null
- cc: [ ]
- cc-mode: 0
- bcc: [ ]
- bcc-mode: 0
- allow-attachments: false
- cipher-fields: [ ]
- - #descriptionFinalised
- key: 33790bad-94d4-488a-8ee2-7f6295ca18ea
- subject-path: classpath:notification_templates/descriptionfinalised/email/subject.{language}.txt
- subject-field-options:
- mandatory: [ ]
- optional: [ ]
- body-path: classpath:notification_templates/descriptionfinalised/email/body.{language}.html
- body-field-options:
- mandatory: [ "{reasonName}", "{name}", "{installation-url}", "{id}" ]
- optional:
- - key: "{recipient}"
- value:
- - key: "{tenant-url-path}"
- value:
- formatting:
- '[{reasonName}]': null
- '[{name}]': null
- '[{recipient}]': null
- '[{tenant-url-path}]': null
- cc: [ ]
- cc-mode: 0
- bcc: [ ]
- bcc-mode: 0
- allow-attachments: false
- cipher-fields: [ ]
- - #descriptionAnnotationCreated
- key: db1e99d2-a240-4e75-9bb2-ef25b234c1f0
- subject-path: classpath:notification_templates/descriptionannotationcreated/email/subject.{language}.txt
- subject-field-options:
- mandatory: [ ]
- optional: [ ]
- body-path: classpath:notification_templates/descriptionannotationcreated/email/body.{language}.html
- body-field-options:
- mandatory: [ "{reasonName}", "{name}", "{installation-url}", "{id}" ]
- optional:
- - key: "{recipient}"
- value:
- - key: "{tenant-url-path}"
- value:
- formatting:
- '[{reasonName}]': null
- '[{name}]': null
- '[{recipient}]': null
- '[{tenant-url-path}]': null
- cc: [ ]
- cc-mode: 0
- bcc: [ ]
- bcc-mode: 0
- allow-attachments: false
- cipher-fields: [ ]
- - #mergeAccountConfirmation
- key: BFE68845-CB05-4C5A-A03D-29161A7C9660
- subject-path: classpath:notification_templates/mergeacountconfirmation/email/subject.{language}.txt
- subject-field-options:
- mandatory: [ ]
- optional: [ ]
- body-path: classpath:notification_templates/mergeacountconfirmation/email/body.{language}.html
- body-field-options:
- mandatory: [ "{userName}", "{installation-url}", "{confirmationToken}" ]
- optional:
- - key: "{expiration_time}"
- value: ---
- formatting:
- '[{userName}]': null
- '[{installation-url}]': null
- '[{expiration_time}]': null
- '[{tenant-url-path}]': null
- cc: [ ]
- cc-mode: 0
- bcc: [ ]
- bcc-mode: 0
- allow-attachments: false
- cipher-fields: [ ]
- - #removeCredentialConfirmation
- key: C9BC3F16-057E-4BBA-8A5F-36BD835E5604
- subject-path: classpath:notification_templates/removecredentialconfirmation/email/subject.{language}.txt
- subject-field-options:
- mandatory: [ "{installation-url}", "{confirmationToken}" ]
- optional: [ ]
- body-path: classpath:notification_templates/removecredentialconfirmation/email/body.{language}.html
- body-field-options:
- mandatory: [ ]
- optional:
- - key: "{email}"
- value: email
- - key: "{expiration_time}"
- value: --
- formatting:
- '[{email}]': null
- '[{tenant-url-path}]': null
- cc: [ ]
- cc-mode: 0
- bcc: [ ]
- bcc-mode: 0
- allow-attachments: false
- cipher-fields: [ ]
- - #planDeposit
- key: 55736F7A-83AB-4190-AF43-9D031A6F9612
- subject-path: classpath:notification_templates/plandeposit/email/subject.{language}.txt
- subject-field-options:
- mandatory: [ ]
- optional: [ ]
- body-path: classpath:notification_templates/plandeposit/email/body.{language}.html
- body-field-options:
- mandatory: [ "{reasonName}", "{name}", "{installation-url}", "{id}" ]
- optional:
- - key: "{recipient}"
- value:
- - key: "{tenant-url-path}"
- value:
- formatting:
- '[{reasonName}]': null
- '[{name}]': null
- '[{recipient}]': null
- '[{tenant-url-path}]': null
- cc: [ ]
- cc-mode: 0
- bcc: [ ]
- bcc-mode: 0
- allow-attachments: false
- cipher-fields: [ ]
- - #descriptionTemplateInvitation
- key: 223BB607-EFA1-4CE7-99EC-4BEABFEF9A8B
- subject-path: classpath:notification_templates/descriptiontemplateinvitation/email/subject.{language}.txt
- subject-field-options:
- mandatory: [ ]
- optional: [ ]
- body-path: classpath:notification_templates/descriptiontemplateinvitation/email/body.{language}.html
- body-field-options:
- mandatory: [ "{templateName}", "{installation-url}", "{templateID}" ]
- optional:
- - key: "{recipient}"
- value:
- - key: "{tenant-url-path}"
- value:
- formatting:
- '[{templateName}]': null
- '[{recipient}]': null
- '[{tenant-url-path}]': null
- cc: [ ]
- cc-mode: 0
- bcc: [ ]
- bcc-mode: 0
- allow-attachments: false
- cipher-fields: [ ]
- - #contactSupportType
- key: 5B1D6C52-88F9-418B-9B8A-6F1F963D9EAD
- subject-path: classpath:notification_templates/contactsupport/email/subject.{language}.txt
- subject-field-options:
- mandatory: [ "{subject}" ]
- optional: [ ]
- body-path: classpath:notification_templates/contactsupport/email/body.{language}.html
- body-field-options:
- mandatory: [ "{description}", "{email}" ]
- formatting:
- '[{subject}]': null
- '[{description}]': null
- '[{email}]': null
- cc: [ ]
- cc-mode: 0
- bcc: [ ]
- bcc-mode: 0
- allow-attachments: false
- cipher-fields: [ ]
- - #publicContactSupportType
- key: B542B606-ACC6-4629-ADEF-4D8EE2F01222
- subject-path: classpath:notification_templates/publiccontactsupport/email/subject.{language}.txt
- subject-field-options:
- mandatory: [ "{subject}" ]
- optional: [ ]
- body-path: classpath:notification_templates/publiccontactsupport/email/body.{language}.html
- body-field-options:
- mandatory: [ "{description}", "{email}", "{name}" ]
- formatting:
- '[{subject}]': null
- '[{description}]': null
- '[{email}]': null
- '[{name}]': null
- cc: [ ]
- cc-mode: 0
- bcc: [ ]
- bcc-mode: 0
- allow-attachments: false
- cipher-fields: [ ]
- - #tenantSpecificInvitationExternalUserType
- key: 497dada5-eccc-4bc0-9e0b-63e22b4eb0be
- subject-path: classpath:notification_templates/tenantspecificinvitationexternaluser/email/subject.{language}.txt
- subject-field-options:
- mandatory: [ ]
- optional: [ ]
- body-path: classpath:notification_templates/tenantspecificinvitationexternaluser/email/body.{language}.html
- body-field-options:
- mandatory: [ "{userName}", "{installation-url}", "{confirmationToken}" ]
- optional:
- - key: "{expiration_time}"
- value: ---
- - key: "{tenantName}"
- value: OpenCDMP
- formatting:
- '[{userName}]': null
- '[{tenantName}]': null
- '[{installation-url}]': null
- '[{expiration_time}]': null
- cc: [ ]
- cc-mode: 0
- bcc: [ ]
- bcc-mode: 0
- allow-attachments: false
- cipher-fields: [ ]
- - #tenantSpecificInvitationExistingUserType
- key: b3809c17-d1e4-420a-919c-828564114191
- subject-path: classpath:notification_templates/tenantspecificinvitationexistinguser/email/subject.{language}.txt
- subject-field-options:
- mandatory: [ ]
- optional: [ ]
- body-path: classpath:notification_templates/tenantspecificinvitationexistinguser/email/body.{language}.html
- body-field-options:
- mandatory: [ "{userName}", "{installation-url}", "{confirmationToken}" ]
- optional:
- - key: "{expiration_time}"
- value: ---
- - key: "{tenantName}"
- value: OpenCDMP
- formatting:
- '[{userName}]': null
- '[{tenantName}]': null
- '[{installation-url}]': null
- '[{expiration_time}]': null
- cc: [ ]
- cc-mode: 0
- bcc: [ ]
- bcc-mode: 0
- allow-attachments: false
- cipher-fields: [ ]
- template-cache:
- prefix: ${CACHE_DISAMBIGUATION:}
- key-pattern: "{prefix}:Notification_Message_Email_Template:{key}:v0"
- in-app:
- flows:
- - #planInvitationExistingUser
- key: 4904dea2-5079-46d3-83be-3a19c9ab45dc
- subject-path: classpath:notification_templates/planinvitationexistinguser/inapp/subject.{language}.txt
- subject-field-options:
- mandatory: [ ]
- optional: [ ]
- body-path: classpath:notification_templates/planinvitationexistinguser/inapp/body.{language}.html
- body-field-options:
- mandatory: [ "{planname}", "{planrole}", "{reasonName}", "{installation-url}", "{id}" ]
- optional:
- - key: "{recipient}"
- value:
- - key: "{tenant-url-path}"
- value:
- formatting:
- '[{planname}]': null
- '[{planrole}]': null
- '[{reasonName}]': null
- '[{recipient}]': null
- '[{tenant-url-path}]': null
- priority-key: null
- cipher-fields: [ ]
- - #planModified
- key: 4542262A-22F8-4BAA-9DB6-1C8E70AC1DBB
- subject-path: classpath:notification_templates/planmodified/inapp/subject.{language}.txt
- subject-field-options:
- mandatory: [ ]
- optional: [ ]
- body-path: classpath:notification_templates/planmodified/inapp/body.{language}.html
- body-field-options:
- mandatory: [ "{reasonName}", "{name}", "{installation-url}", "{id}" ]
- optional:
- - key: "{recipient}"
- value:
- - key: "{tenant-url-path}"
- value:
- formatting:
- '[{reasonName}]': null
- '[{name}]': null
- '[{installation-url}]': null
- '[{id}]': null
- '[{recipient}]': null
- '[{tenant-url-path}]': null
- priority-key: null
- cipher-fields: [ ]
- - #planFinalised
- key: 90DB0B46-42DE-BD89-AEBF-6F27EFEB256E
- subject-path: classpath:notification_templates/planfinalised/inapp/subject.{language}.txt
- subject-field-options:
- mandatory: [ ]
- optional: [ ]
- body-path: classpath:notification_templates/planfinalised/inapp/body.{language}.html
- body-field-options:
- mandatory: [ "{reasonName}", "{name}", "{installation-url}", "{id}" ]
- optional:
- - key: "{recipient}"
- value:
- - key: "{tenant-url-path}"
- value:
- formatting:
- '[{reasonName}]': null
- '[{name}]': null
- '[{installation-url}]': null
- '[{id}]': null
- '[{recipient}]': null
- '[{tenant-url-path}]': null
- priority-key: null
- cipher-fields: [ ]
- - #desriptionCreated
- key: 8965b1d5-99a6-4acf-9016-c0d0ce341364
- subject-path: classpath:notification_templates/descriptioncreated/inapp/subject.{language}.txt
- subject-field-options:
- mandatory: [ ]
- optional: [ ]
- body-path: classpath:notification_templates/descriptioncreated/inapp/body.{language}.html
- body-field-options:
- mandatory: [ "{reasonName}", "{name}", "{installation-url}", "{id}" ]
- optional:
- - key: "{recipient}"
- value:
- - key: "{tenant-url-path}"
- value:
- formatting:
- '[{reasonName}]': null
- '[{name}]': null
- '[{recipient}]': null
- '[{tenant-url-path}]': null
- cc: [ ]
- cc-mode: 0
- bcc: [ ]
- bcc-mode: 0
- allow-attachments: false
- cipher-fields: [ ]
- - #desriptionModified
- key: 4FDBFA80-7A71-4A69-B854-67CBB70648F1
- subject-path: classpath:notification_templates/descriptionmodified/inapp/subject.{language}.txt
- subject-field-options:
- mandatory: [ ]
- optional: [ ]
- body-path: classpath:notification_templates/descriptionmodified/inapp/body.{language}.html
- body-field-options:
- mandatory: [ "{reasonName}", "{name}", "{installation-url}", "{id}" ]
- optional:
- - key: "{recipient}"
- value:
- - key: "{tenant-url-path}"
- value:
- formatting:
- '[{reasonName}]': null
- '[{name}]': null
- '[{installation-url}]': null
- '[{id}]': null
- '[{recipient}]': null
- '[{tenant-url-path}]': null
- priority-key: null
- cipher-fields: [ ]
- - #descriptionFinalised
- key: 33790bad-94d4-488a-8ee2-7f6295ca18ea
- subject-path: classpath:notification_templates/descriptionfinalised/inapp/subject.{language}.txt
- subject-field-options:
- mandatory: [ ]
- optional: [ ]
- body-path: classpath:notification_templates/descriptionfinalised/inapp/body.{language}.html
- body-field-options:
- mandatory: [ "{reasonName}", "{name}", "{installation-url}", "{id}" ]
- optional:
- - key: "{recipient}"
- value:
- - key: "{tenant-url-path}"
- value:
- formatting:
- '[{reasonName}]': null
- '[{name}]': null
- '[{installation-url}]': null
- '[{id}]': null
- '[{recipient}]': null
- '[{tenant-url-path}]': null
- priority-key: null
- cipher-fields: [ ]
- - #descriptionAnnotationCreated
- key: db1e99d2-a240-4e75-9bb2-ef25b234c1f0
- subject-path: classpath:notification_templates/descriptionannotationcreated/inapp/subject.{language}.txt
- subject-field-options:
- mandatory: [ ]
- optional: [ ]
- body-path: classpath:notification_templates/descriptionannotationcreated/inapp/body.{language}.html
- body-field-options:
- mandatory: [ "{reasonName}", "{name}", "{installation-url}", "{id}" ]
- optional:
- - key: "{recipient}"
- value:
- - key: "{tenant-url-path}"
- value:
- formatting:
- '[{reasonName}]': null
- '[{name}]': null
- '[{installation-url}]': null
- '[{id}]': null
- '[{recipient}]': null
- '[{tenant-url-path}]': null
- priority-key: null
- cipher-fields: [ ]
- - #mergeAccountConfirmation
- key: BFE68845-CB05-4C5A-A03D-29161A7C9660
- subject-path: classpath:notification_templates/mergeacountconfirmation/inapp/subject.{language}.txt
- subject-field-options:
- mandatory: [ ]
- optional: [ ]
- body-path: classpath:notification_templates/mergeacountconfirmation/inapp/body.{language}.html
- body-field-options:
- mandatory: [ "{userName}", "{installation-url}", "{confirmationToken}" ]
- optional:
- - key: "{expiration_time}"
- value: ---
- - key: "{tenant-url-path}"
- value:
- formatting:
- '[{userName}]': null
- '[{installation-url}]': null
- '[{confirmationToken}]': null
- '[{expiration_time}]': null
- '[{tenant-url-path}]': null
- priority-key: null
- cipher-fields: [ ]
- - #removeCredentialConfirmation
- key: C9BC3F16-057E-4BBA-8A5F-36BD835E5604
- subject-path: classpath:notification_templates/removecredentialconfirmation/inapp/subject.{language}.txt
- subject-field-options:
- mandatory: [ "{installation-url}", "{confirmationToken}" ]
- optional: [ ]
- body-path: classpath:notification_templates/removecredentialconfirmation/inapp/body.{language}.html
- body-field-options:
- mandatory: [ ]
- optional:
- - key: "{email}"
- value: email
- - key: "{expiration_time}"
- value: --
- - key: "{tenant-url-path}"
- value:
- formatting:
- '[{email}]': null
- '[{expiration_time}]': null
- '[{tenant-url-path}]': null
- priority-key: null
- cipher-fields: [ ]
- - #planDeposit
- key: 55736F7A-83AB-4190-AF43-9D031A6F9612
- subject-path: classpath:notification_templates/plandeposit/inapp/subject.{language}.txt
- subject-field-options:
- mandatory: [ ]
- optional: [ ]
- body-path: classpath:notification_templates/plandeposit/inapp/body.{language}.html
- body-field-options:
- mandatory: [ "{reasonName}", "{name}", "{installation-url}", "{id}" ]
- optional:
- - key: "{recipient}"
- value:
- - key: "{tenant-url-path}"
- value:
- formatting:
- '[{reasonName}]': null
- '[{name}]': null
- '[{installation-url}]': null
- '[{id}]': null
- '[{recipient}]': null
- '[{tenant-url-path}]': null
- priority-key: null
- cipher-fields: [ ]
- - #descriptionTemplateInvitation
- key: 223BB607-EFA1-4CE7-99EC-4BEABFEF9A8B
- subject-path: classpath:notification_templates/descriptiontemplateinvitation/inapp/subject.{language}.txt
- subject-field-options:
- mandatory: [ ]
- optional: [ ]
- body-path: classpath:notification_templates/descriptiontemplateinvitation/inapp/body.{language}.html
- body-field-options:
- mandatory: [ "{templateName}", "{installation-url}", "{templateID}" ]
- optional:
- - key: "{recipient}"
- value:
- - key: "{tenant-url-path}"
- value:
- formatting:
- '[{templateName}]': null
- '[{installation-url}]': null
- '[{templateID}]': null
- '[{recipient}]': null
- '[{tenant-url-path}]': null
- priority-key: null
- cipher-fields: [ ]
- - #tenantSpecificInvitationExistingUserType
- key: b3809c17-d1e4-420a-919c-828564114191
- subject-path: classpath:notification_templates/tenantspecificinvitationexistinguser/inapp/subject.{language}.txt
- subject-field-options:
- mandatory: [ ]
- optional: [ ]
- body-path: classpath:notification_templates/tenantspecificinvitationexistinguser/inapp/body.{language}.html
- body-field-options:
- mandatory: [ "{userName}", "{installation-url}", "{confirmationToken}" ]
- optional:
- - key: "{expiration_time}"
- value: ---
- - key: "{tenantName}"
- value: OpenCDMP
- formatting:
- '[{userName}]': null
- '[{tenantName}]': null
- '[{installation-url}]': null
- '[{expiration_time}]': null
- cc: [ ]
- cc-mode: 0
- bcc: [ ]
- bcc-mode: 0
- allow-attachments: false
- cipher-fields: [ ]
- template-cache:
- prefix: ${CACHE_DISAMBIGUATION}
- key-pattern: "{prefix}:Notification_Message_InApp_Template:{key}:v0"
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/config/notification.yml b/notification-service/notification-web/src/main/resources/config/notification.yml
deleted file mode 100644
index f9cbdbb05..000000000
--- a/notification-service/notification-web/src/main/resources/config/notification.yml
+++ /dev/null
@@ -1,17 +0,0 @@
-notification:
- task:
- processor:
- enable: true
- interval-seconds: 5
- options:
- retry-threshold: 300
- max-retry-delay-seconds: 10800
- too-old-to-send-seconds: 36000
- too-old-to-track-seconds: 604800
- overrides: []
- ad-hoc-config:
- ad-hoc-notification-type: null
- override-cache:
- template-cache:
- prefix: ${CACHE_DISAMBIGUATION:}
- key-pattern: "{prefix}:Notification_Override_Template:{tenant}:{type}:{channel}:{{language}}:v0"
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/config/permissions.yml b/notification-service/notification-web/src/main/resources/config/permissions.yml
deleted file mode 100644
index bd754c750..000000000
--- a/notification-service/notification-web/src/main/resources/config/permissions.yml
+++ /dev/null
@@ -1,193 +0,0 @@
-permissions:
- extendedClaims: [ ]
- policies:
-
- # Tenants
- BrowseTenant:
- roles: []
- clients: [ ]
- allowAnonymous: false
- allowAuthenticated: false
- EditTenant:
- roles: []
- clients: [ "opencdmp-api-dev" ]
- allowAnonymous: false
- allowAuthenticated: false
- DeleteTenant:
- roles: []
- claims: [ ]
- clients: [ "opencdmp-api-dev" ]
- allowAnonymous: false
- allowAuthenticated: false
- AllowNoTenant:
- roles:
- - Admin
- - InstallationAdmin
- claims: [ ]
- clients: [ ]
- allowAnonymous: false
- allowAuthenticated: false
- # Users
- BrowseUser:
- roles:
- - Admin
- clients: [ ]
- allowAnonymous: false
- allowAuthenticated: false
- EditUser:
- roles: []
- clients: [ "opencdmp-api-dev" ]
- allowAnonymous: false
- allowAuthenticated: false
- DeleteUser:
- roles: []
- claims: [ ]
- clients: [ "opencdmp-api-dev" ]
- allowAnonymous: false
- allowAuthenticated: false
- # UserContactInfo
- BrowseUserContactInfo:
- roles:
- - Admin
- - InstallationAdmin
- clients: [ "opencdmp-api-dev" ]
- allowAnonymous: false
- allowAuthenticated: false
- EditUserContactInfo:
- roles:
- - Admin
- - InstallationAdmin
- clients: [ ]
- allowAnonymous: false
- allowAuthenticated: false
- DeleteUserContactInfo:
- roles:
- - Admin
- - InstallationAdmin
- claims: [ ]
- clients: [ "opencdmp-api-dev" ]
- allowAnonymous: false
- allowAuthenticated: false
- #Notification
- BrowseNotification:
- roles:
- - Admin
- clients: [ ]
- allowAnonymous: false
- allowAuthenticated: false
- EditNotification:
- roles:
- - Admin
- clients: [ ]
- allowAnonymous: false
- allowAuthenticated: false
- DeleteNotification:
- roles:
- - Admin
- clients: [ ]
- allowAnonymous: false
- allowAuthenticated: false
- # TenantConfiguration
- BrowseTenantConfiguration:
- roles:
- - Admin
- - TenantAdmin
- claims: [ ]
- clients: [ ]
- allowAnonymous: false
- allowAuthenticated: false
- EditTenantConfiguration:
- roles:
- - Admin
- - TenantAdmin
- clients: [ "opencdmp-api-dev" ]
- allowAnonymous: false
- allowAuthenticated: false
- DeleteTenantConfiguration:
- roles:
- - Admin
- - TenantAdmin
- clients: [ "opencdmp-api-dev" ]
- allowAnonymous: false
- allowAuthenticated: false
- #User Notification Preference
- BrowseUserNotificationPreference:
- roles:
- - Admin
- clients: [ ]
- allowAnonymous: false
- allowAuthenticated: false
- EditUserNotificationPreference:
- roles:
- - Admin
- clients: [ ]
- allowAnonymous: false
- allowAuthenticated: false
-
- # ViewPage Permissions
- ViewNotificationPage:
- roles:
- - Admin
- clients: [ ]
- allowAnonymous: false
- allowAuthenticated: false
- ViewNotificationEventRulePage:
- roles:
- - Admin
- clients: [ ]
- allowAnonymous: false
- allowAuthenticated: false
- ViewInAppNotificationPage:
- roles:
- - Admin
- clients: [ ]
- allowAnonymous: false
- allowAuthenticated: false
- ViewNotificationTemplatePage:
- roles:
- - Admin
- - TenantAdmin
- - TenantConfigManager
- clients: [ ]
- allowAnonymous: false
- allowAuthenticated: false
-
- # Notification Template Permissions
- BrowseNotificationTemplate:
- roles:
- - Admin
- - TenantAdmin
- - TenantConfigManager
- clients: [ ]
- allowAnonymous: false
- allowAuthenticated: false
- EditNotificationTemplate:
- roles:
- - Admin
- - TenantAdmin
- - TenantConfigManager
- clients: [ ]
- allowAnonymous: false
- allowAuthenticated: false
- DeleteNotificationTemplate:
- roles:
- - Admin
- - TenantAdmin
- - TenantConfigManager
- clients: [ ]
- allowAnonymous: false
- allowAuthenticated: false
-
- # In App Notification Permissions
- BrowseInAppNotification:
- roles:
- - Admin
- clients: [ ]
- allowAnonymous: false
- allowAuthenticated: false
- DeleteInAppNotification:
- roles:
- - Admin
- clients: [ ]
- allowAnonymous: false
- allowAuthenticated: false
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/config/queue-devel.yml b/notification-service/notification-web/src/main/resources/config/queue-devel.yml
deleted file mode 100644
index 1c761d9e5..000000000
--- a/notification-service/notification-web/src/main/resources/config/queue-devel.yml
+++ /dev/null
@@ -1,21 +0,0 @@
-queue:
- rabbitmq:
- enable: true
- durable: true
- queue: cite_dmp_devel_notification_inbox_queue
- exchange: cite_dmp_devel_queue
- listenerEnabled: true
- publisherEnabled: true
- task:
- publisher:
- enable: true
- options:
- exchange: cite_dmp_devel_queue
- rabbitmq:
- enable: true
- listener:
- enable: true
- options:
- exchange: cite_dmp_devel_queue
- rabbitmq:
- enable: true
diff --git a/notification-service/notification-web/src/main/resources/config/queue.yml b/notification-service/notification-web/src/main/resources/config/queue.yml
deleted file mode 100644
index 64bbeb07e..000000000
--- a/notification-service/notification-web/src/main/resources/config/queue.yml
+++ /dev/null
@@ -1,55 +0,0 @@
-spring:
- rabbitmq:
- host: ${RABBIT_HOST}
- port: ${RABBIT_PORT}
- username: ${RABBIT_USER}
- password: ${RABBIT_PASS}
- ssl:
- enabled: false
-queue:
- rabbitmq:
- enable: false
- appId: ${QUEUE_APP_ID}
- durable: null
- queue: null
- exchange: null
- listenerEnabled: true
- publisherEnabled: true
- #TODO
- connection-recovery:
- enable: true
- network-recovery-interval: 5000
- unreachable-recovery-interval: 5000
- task:
- publisher:
- enable: false
- options:
- exchange: null
- rabbitmq:
- enable: false
- interval-seconds: 5
- options:
- retry-threashold: 100
- retry-delay-step-seconds: 300
- max-retry-delay-seconds: 10800
- too-old-to-send-seconds: 604800
- confirm-timeout-seconds: 30
- listener:
- enable: false
- options:
- exchange: null
- tenant-default-locale-removal-topic: tenant_default_locale.remove
- tenant-default-locale-touched-topic: tenant_default_locale.touch
- notify-topic: notification.notify
- tenant-removal-topic: tenant.remove
- tenant-touched-topic: tenant.touch
- user-removal-topic: user.remove
- user-touched-topic: user.touch
- rabbitmq:
- enable: false
- interval-seconds: 5
- options:
- retry-threashold: 100
- retry-delay-step-seconds: 300
- max-retry-delay-seconds: 10800
- too-old-to-send-seconds: 604800
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/config/security-devel.yml b/notification-service/notification-web/src/main/resources/config/security-devel.yml
deleted file mode 100644
index dbb097b19..000000000
--- a/notification-service/notification-web/src/main/resources/config/security-devel.yml
+++ /dev/null
@@ -1,6 +0,0 @@
-web:
- security:
- idp:
- resource:
- jwt:
- audiences: [ "dmp_notification" ]
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/config/security.yml b/notification-service/notification-web/src/main/resources/config/security.yml
deleted file mode 100644
index 8f41034ac..000000000
--- a/notification-service/notification-web/src/main/resources/config/security.yml
+++ /dev/null
@@ -1,14 +0,0 @@
-web:
- security:
- enabled: true
- authorized-endpoints: [ api ]
- allowed-endpoints: [ public ]
- idp:
- api-key:
- enabled: false
- resource:
- token-type: JWT #| opaque
- jwt:
- claims: [ role, x-role ]
- issuer-uri: ${IDP_ISSUER_URI}
- validIssuer: ${IDP_ISSUER_URI}
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/config/server-devel.yml b/notification-service/notification-web/src/main/resources/config/server-devel.yml
deleted file mode 100644
index 2a628f82f..000000000
--- a/notification-service/notification-web/src/main/resources/config/server-devel.yml
+++ /dev/null
@@ -1,2 +0,0 @@
-server:
- forward-headers-strategy: FRAMEWORK
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/config/server.yml b/notification-service/notification-web/src/main/resources/config/server.yml
deleted file mode 100644
index 9a4a97cbc..000000000
--- a/notification-service/notification-web/src/main/resources/config/server.yml
+++ /dev/null
@@ -1,13 +0,0 @@
-server:
- port: ${WEB_PORT}
- forward-headers-strategy: NONE
- tomcat:
- threads:
- max: 20
- max-connections: 10000
-
- spring:
- servlet:
- multipart:
- max-file-size: 10MB
- max-request-size: 10MB
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/config/tenant-devel.yml b/notification-service/notification-web/src/main/resources/config/tenant-devel.yml
deleted file mode 100644
index f2149021a..000000000
--- a/notification-service/notification-web/src/main/resources/config/tenant-devel.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-tenant:
- multitenancy:
- is-multitenant: true
- default-tenant-code: default
- interceptor:
- client-claims-prefix: client_
- enforce-trusted-tenant: false
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/config/tenant.yml b/notification-service/notification-web/src/main/resources/config/tenant.yml
deleted file mode 100644
index 11cb03a00..000000000
--- a/notification-service/notification-web/src/main/resources/config/tenant.yml
+++ /dev/null
@@ -1,7 +0,0 @@
-tenant:
- multitenancy:
- is-multitenant: false
- interceptor:
- white-listed-clients: [ ]
- enforce-trusted-tenant: false
- white-listed-endpoints: [ '/api/notification/principal/me' ]
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/logging/logback-dev.xml b/notification-service/notification-web/src/main/resources/logging/logback-dev.xml
deleted file mode 100644
index e304c45df..000000000
--- a/notification-service/notification-web/src/main/resources/logging/logback-dev.xml
+++ /dev/null
@@ -1,57 +0,0 @@
-
-
-
-
- %date{ISO8601} [%thread] %-5level %logger{36} [%X{req.id}] - %message%n
-
-
-
-
- logs/logging.log
-
- logs/logging.%d{yyyy-MM-dd}.%i.log
-
- 100MB
-
- 15
-
-
- %date{ISO8601} [%thread] %-5level %logger{36} [%X{req.id}] - %message%n
-
-
-
-
- logs/auditing.log
-
- logs/auditing.%d{yyyy-MM-dd}.%i.log
-
- 100MB
-
- 15
-
-
- %date{ISO8601} - %X{req.id} - %message%n
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/notification-service/notification-web/src/main/resources/messages/messages.properties b/notification-service/notification-web/src/main/resources/messages/messages.properties
deleted file mode 100644
index 93d6cd27a..000000000
--- a/notification-service/notification-web/src/main/resources/messages/messages.properties
+++ /dev/null
@@ -1,10 +0,0 @@
-validation.empty=Value cannot be empty
-validation.hashempty=Hash must be set
-validation.lowerthanmin=Value must be larger than {value}
-validation.largerthanmax=Value must be less than {value}
-validation.invalidid=Not valid id
-General_ItemNotFound=Item {0} of type {1} not found
-Validation_Required={0} is required
-Validation_OverPosting=Too much info
-Validation_MaxLength={0} too long
-Validation_UnexpectedValue=Unexpected value in field {0}
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/messages/messages_el.properties b/notification-service/notification-web/src/main/resources/messages/messages_el.properties
deleted file mode 100644
index 4d060cc58..000000000
--- a/notification-service/notification-web/src/main/resources/messages/messages_el.properties
+++ /dev/null
@@ -1,6 +0,0 @@
-validation.empty=el-Value cannot be empty
-validation.hashempty=el-Hash must be set
-validation.lowerthanmin=el-Value must be larger than {value}
-validation.largerthanmax=el-Value must be less than {value}
-validation.invalidid=el-Not valid id
-General_ItemNotFound=el-Item {0} of type {1} not found
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/contactsupport/email/body.en.html b/notification-service/notification-web/src/main/resources/notification_templates/contactsupport/email/body.en.html
deleted file mode 100644
index f2c3845c0..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/contactsupport/email/body.en.html
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
-
- OpenCDMP Notification
-
-
-{description}
-
-
-Send by user: {email}
-
-
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/contactsupport/email/subject.en.txt b/notification-service/notification-web/src/main/resources/notification_templates/contactsupport/email/subject.en.txt
deleted file mode 100644
index 9140c4034..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/contactsupport/email/subject.en.txt
+++ /dev/null
@@ -1 +0,0 @@
-OpenCDMP - {subject}
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/descriptionannotationcreated/email/body.en.html b/notification-service/notification-web/src/main/resources/notification_templates/descriptionannotationcreated/email/body.en.html
deleted file mode 100644
index dc9b2e8de..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/descriptionannotationcreated/email/body.en.html
+++ /dev/null
@@ -1,304 +0,0 @@
-
-
-
-
-
- OpenCDMP Notification
-
-
-
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
- Dear {recipient},
- {reasonName} made a comment on the Description {name}.
-
-
-
- |
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
- |
- |
-
-
-
-
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/descriptionannotationcreated/email/subject.en.txt b/notification-service/notification-web/src/main/resources/notification_templates/descriptionannotationcreated/email/subject.en.txt
deleted file mode 100644
index aa807d661..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/descriptionannotationcreated/email/subject.en.txt
+++ /dev/null
@@ -1 +0,0 @@
-OpenCDMP - Comment for Description
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/descriptionannotationcreated/inapp/body.en.html b/notification-service/notification-web/src/main/resources/notification_templates/descriptionannotationcreated/inapp/body.en.html
deleted file mode 100644
index d16a3e0b2..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/descriptionannotationcreated/inapp/body.en.html
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
-
- Dear {recipient},
- {reasonName} made a comment on the Description {name}.
- Click here to view it.
-
-
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/descriptionannotationcreated/inapp/subject.en.txt b/notification-service/notification-web/src/main/resources/notification_templates/descriptionannotationcreated/inapp/subject.en.txt
deleted file mode 100644
index aa807d661..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/descriptionannotationcreated/inapp/subject.en.txt
+++ /dev/null
@@ -1 +0,0 @@
-OpenCDMP - Comment for Description
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/descriptioncreated/email/body.en.html b/notification-service/notification-web/src/main/resources/notification_templates/descriptioncreated/email/body.en.html
deleted file mode 100644
index f021ad9ea..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/descriptioncreated/email/body.en.html
+++ /dev/null
@@ -1,304 +0,0 @@
-
-
-
-
-
- OpenCDMP Notification
-
-
-
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
- Dear {recipient},
- {reasonName} created new Description with name {name}.
-
-
-
- |
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
- |
- |
-
-
-
-
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/descriptioncreated/email/subject.en.txt b/notification-service/notification-web/src/main/resources/notification_templates/descriptioncreated/email/subject.en.txt
deleted file mode 100644
index c680595b0..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/descriptioncreated/email/subject.en.txt
+++ /dev/null
@@ -1 +0,0 @@
-OpenCDMP - Description Created
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/descriptioncreated/inapp/body.en.html b/notification-service/notification-web/src/main/resources/notification_templates/descriptioncreated/inapp/body.en.html
deleted file mode 100644
index e28ad9712..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/descriptioncreated/inapp/body.en.html
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
-
- Dear {recipient},
- {reasonName} created new Description with name {name}.
- Click here to view it.
-
-
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/descriptioncreated/inapp/subject.en.txt b/notification-service/notification-web/src/main/resources/notification_templates/descriptioncreated/inapp/subject.en.txt
deleted file mode 100644
index c680595b0..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/descriptioncreated/inapp/subject.en.txt
+++ /dev/null
@@ -1 +0,0 @@
-OpenCDMP - Description Created
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/descriptionfinalised/email/body.en.html b/notification-service/notification-web/src/main/resources/notification_templates/descriptionfinalised/email/body.en.html
deleted file mode 100644
index d9699a6f6..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/descriptionfinalised/email/body.en.html
+++ /dev/null
@@ -1,304 +0,0 @@
-
-
-
-
-
- OpenCDMP Notification
-
-
-
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
- Dear {recipient},
- {reasonName} just finalised the Description {name}.
-
-
-
- |
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
- |
- |
-
-
-
-
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/descriptionfinalised/email/subject.en.txt b/notification-service/notification-web/src/main/resources/notification_templates/descriptionfinalised/email/subject.en.txt
deleted file mode 100644
index 4809b12c1..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/descriptionfinalised/email/subject.en.txt
+++ /dev/null
@@ -1 +0,0 @@
-OpenCDMP - Description Finalised
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/descriptionfinalised/inapp/body.en.html b/notification-service/notification-web/src/main/resources/notification_templates/descriptionfinalised/inapp/body.en.html
deleted file mode 100644
index a21e28549..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/descriptionfinalised/inapp/body.en.html
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
-
- Dear {recipient},
- {reasonName} just finalised the Description {name}.
- Click here to view it.
-
-
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/descriptionfinalised/inapp/subject.en.txt b/notification-service/notification-web/src/main/resources/notification_templates/descriptionfinalised/inapp/subject.en.txt
deleted file mode 100644
index 4809b12c1..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/descriptionfinalised/inapp/subject.en.txt
+++ /dev/null
@@ -1 +0,0 @@
-OpenCDMP - Description Finalised
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/descriptionmodified/email/body.en.html b/notification-service/notification-web/src/main/resources/notification_templates/descriptionmodified/email/body.en.html
deleted file mode 100644
index 910958d3c..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/descriptionmodified/email/body.en.html
+++ /dev/null
@@ -1,304 +0,0 @@
-
-
-
-
-
- OpenCDMP Notification
-
-
-
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
- Dear {recipient},
- {reasonName} just made changes to the Description {name}.
-
-
-
- |
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
- |
- |
-
-
-
-
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/descriptionmodified/email/subject.en.txt b/notification-service/notification-web/src/main/resources/notification_templates/descriptionmodified/email/subject.en.txt
deleted file mode 100644
index a40529163..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/descriptionmodified/email/subject.en.txt
+++ /dev/null
@@ -1 +0,0 @@
-OpenCDMP - Description Modified
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/descriptionmodified/inapp/body.en.html b/notification-service/notification-web/src/main/resources/notification_templates/descriptionmodified/inapp/body.en.html
deleted file mode 100644
index dd96fb870..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/descriptionmodified/inapp/body.en.html
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
-
- Dear {recipient},
- {reasonName} just made changes to the Description {name}.
- Click here to view it.
-
-
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/descriptionmodified/inapp/subject.en.txt b/notification-service/notification-web/src/main/resources/notification_templates/descriptionmodified/inapp/subject.en.txt
deleted file mode 100644
index a40529163..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/descriptionmodified/inapp/subject.en.txt
+++ /dev/null
@@ -1 +0,0 @@
-OpenCDMP - Description Modified
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/descriptiontemplateinvitation/email/body.en.html b/notification-service/notification-web/src/main/resources/notification_templates/descriptiontemplateinvitation/email/body.en.html
deleted file mode 100644
index a6a71319a..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/descriptiontemplateinvitation/email/body.en.html
+++ /dev/null
@@ -1,305 +0,0 @@
-
-
-
-
-
- OpenCDMP Notification
-
-
-
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
- Dear {recipient},
- You have been invited to co-develop the Template {templateName}.
- Click the button to redirect to {templateName}.
-
-
-
- |
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
- |
- |
-
-
-
-
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/descriptiontemplateinvitation/email/subject.en.txt b/notification-service/notification-web/src/main/resources/notification_templates/descriptiontemplateinvitation/email/subject.en.txt
deleted file mode 100644
index 61ecc7bfd..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/descriptiontemplateinvitation/email/subject.en.txt
+++ /dev/null
@@ -1 +0,0 @@
-OpenCDMP - Description Template Invite
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/descriptiontemplateinvitation/inapp/body.en.html b/notification-service/notification-web/src/main/resources/notification_templates/descriptiontemplateinvitation/inapp/body.en.html
deleted file mode 100644
index 94efa2da6..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/descriptiontemplateinvitation/inapp/body.en.html
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
- Dear {recipient},
- You have been invited to co-develop the Template {templateName}.
- Click the button to redirect to {templateName}.
- {templateName}
-
-
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/descriptiontemplateinvitation/inapp/subject.en.txt b/notification-service/notification-web/src/main/resources/notification_templates/descriptiontemplateinvitation/inapp/subject.en.txt
deleted file mode 100644
index 61ecc7bfd..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/descriptiontemplateinvitation/inapp/subject.en.txt
+++ /dev/null
@@ -1 +0,0 @@
-OpenCDMP - Description Template Invite
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/mergeacountconfirmation/email/body.en.html b/notification-service/notification-web/src/main/resources/notification_templates/mergeacountconfirmation/email/body.en.html
deleted file mode 100644
index 90b7607e6..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/mergeacountconfirmation/email/body.en.html
+++ /dev/null
@@ -1,304 +0,0 @@
-
-
-
-
-
- OpenCDMP Notification
-
-
-
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- User {userName} have sent you a merge Request.
- Please confirm that you want to merge your {installation-url} account with that account.
- The link will expire in {expiration_time}.
-
- |
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
- |
- |
-
-
-
-
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/mergeacountconfirmation/email/subject.en.txt b/notification-service/notification-web/src/main/resources/notification_templates/mergeacountconfirmation/email/subject.en.txt
deleted file mode 100644
index 3c94ab18d..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/mergeacountconfirmation/email/subject.en.txt
+++ /dev/null
@@ -1 +0,0 @@
-OpenCDMP - Merge Account Confirmation
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/mergeacountconfirmation/inapp/body.en.html b/notification-service/notification-web/src/main/resources/notification_templates/mergeacountconfirmation/inapp/body.en.html
deleted file mode 100644
index fd2e7a0c7..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/mergeacountconfirmation/inapp/body.en.html
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
-
-
-
-
- User {userName} have sent you a merge Request.
- Please confirm that you want to merge your {installation-url} account with that account.
-
The link will expire in {expiration_time}.
- Confirm Merge Request
-
-
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/mergeacountconfirmation/inapp/subject.en.txt b/notification-service/notification-web/src/main/resources/notification_templates/mergeacountconfirmation/inapp/subject.en.txt
deleted file mode 100644
index 3c94ab18d..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/mergeacountconfirmation/inapp/subject.en.txt
+++ /dev/null
@@ -1 +0,0 @@
-OpenCDMP - Merge Account Confirmation
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/plandeposit/email/body.en.html b/notification-service/notification-web/src/main/resources/notification_templates/plandeposit/email/body.en.html
deleted file mode 100644
index 1937f6eae..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/plandeposit/email/body.en.html
+++ /dev/null
@@ -1,304 +0,0 @@
-
-
-
-
-
- OpenCDMP Notification
-
-
-
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
- Dear {recipient},
- {reasonName} just publish the {name}.
-
-
-
- |
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
- |
- |
-
-
-
-
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/plandeposit/email/subject.en.txt b/notification-service/notification-web/src/main/resources/notification_templates/plandeposit/email/subject.en.txt
deleted file mode 100644
index a9831981b..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/plandeposit/email/subject.en.txt
+++ /dev/null
@@ -1 +0,0 @@
-OpenCDMP - Plan Deposit
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/plandeposit/inapp/body.en.html b/notification-service/notification-web/src/main/resources/notification_templates/plandeposit/inapp/body.en.html
deleted file mode 100644
index 7002e6fcd..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/plandeposit/inapp/body.en.html
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
-
- Dear {recipient},
- {reasonName} just publish the {name}.
- Click here to view it.
-
-
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/plandeposit/inapp/subject.en.txt b/notification-service/notification-web/src/main/resources/notification_templates/plandeposit/inapp/subject.en.txt
deleted file mode 100644
index a9831981b..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/plandeposit/inapp/subject.en.txt
+++ /dev/null
@@ -1 +0,0 @@
-OpenCDMP - Plan Deposit
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/planfinalised/email/body.en.html b/notification-service/notification-web/src/main/resources/notification_templates/planfinalised/email/body.en.html
deleted file mode 100644
index 69ddbc8dd..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/planfinalised/email/body.en.html
+++ /dev/null
@@ -1,304 +0,0 @@
-
-
-
-
-
- OpenCDMP Notification
-
-
-
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
- Dear {recipient},
- {reasonName} just finalised the Plan {name}.
-
-
-
- |
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
- |
- |
-
-
-
-
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/planfinalised/email/subject.en.txt b/notification-service/notification-web/src/main/resources/notification_templates/planfinalised/email/subject.en.txt
deleted file mode 100644
index 0f3ce0f3e..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/planfinalised/email/subject.en.txt
+++ /dev/null
@@ -1 +0,0 @@
-OpenCDMP - Plan Finalised
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/planfinalised/inapp/body.en.html b/notification-service/notification-web/src/main/resources/notification_templates/planfinalised/inapp/body.en.html
deleted file mode 100644
index 185926b1d..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/planfinalised/inapp/body.en.html
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
-
- Dear {recipient},
- {reasonName} just finalised the Plan {name}.
- Click here to view it.
-
-
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/planfinalised/inapp/subject.en.txt b/notification-service/notification-web/src/main/resources/notification_templates/planfinalised/inapp/subject.en.txt
deleted file mode 100644
index 0f3ce0f3e..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/planfinalised/inapp/subject.en.txt
+++ /dev/null
@@ -1 +0,0 @@
-OpenCDMP - Plan Finalised
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/planinvitationexistinguser/email/body.en.html b/notification-service/notification-web/src/main/resources/notification_templates/planinvitationexistinguser/email/body.en.html
deleted file mode 100644
index 3da19a3a6..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/planinvitationexistinguser/email/body.en.html
+++ /dev/null
@@ -1,304 +0,0 @@
-
-
-
-
-
- OpenCDMP Notification
-
-
-
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
- Dear {recipient},
- {reasonName} just add you to collaborate to the Plan {planname} with role {planrole}.
- Click the button to redirect to {planname}.
-
-
- |
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
- |
- |
-
-
-
-
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/planinvitationexistinguser/email/subject.en.txt b/notification-service/notification-web/src/main/resources/notification_templates/planinvitationexistinguser/email/subject.en.txt
deleted file mode 100644
index 54de9f6b1..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/planinvitationexistinguser/email/subject.en.txt
+++ /dev/null
@@ -1 +0,0 @@
-OpenCDMP - Plan Invite
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/planinvitationexistinguser/inapp/body.en.html b/notification-service/notification-web/src/main/resources/notification_templates/planinvitationexistinguser/inapp/body.en.html
deleted file mode 100644
index 96a721f3a..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/planinvitationexistinguser/inapp/body.en.html
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
-
- OpenCDMP Notification
-
-
- Dear {recipient},
- {reasonName} just added you to collaborate to the Plan {planname} with role {planrole}.
- Click the button to redirect to {planname}.
- Join
-
-
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/planinvitationexistinguser/inapp/subject.en.txt b/notification-service/notification-web/src/main/resources/notification_templates/planinvitationexistinguser/inapp/subject.en.txt
deleted file mode 100644
index 54de9f6b1..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/planinvitationexistinguser/inapp/subject.en.txt
+++ /dev/null
@@ -1 +0,0 @@
-OpenCDMP - Plan Invite
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/planinvitationexternaluser/email/body.en.html b/notification-service/notification-web/src/main/resources/notification_templates/planinvitationexternaluser/email/body.en.html
deleted file mode 100644
index fb3551b1e..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/planinvitationexternaluser/email/body.en.html
+++ /dev/null
@@ -1,305 +0,0 @@
-
-
-
-
-
- OpenCDMP Notification
-
-
-
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
- Dear {recipient},
- You have been invited to collaborate to the Plan {planname} with role {planrole}.
- Click the button to redirect to {planname}.
-
-
-
- |
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
- |
- |
-
-
-
-
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/planinvitationexternaluser/email/subject.en.txt b/notification-service/notification-web/src/main/resources/notification_templates/planinvitationexternaluser/email/subject.en.txt
deleted file mode 100644
index 54de9f6b1..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/planinvitationexternaluser/email/subject.en.txt
+++ /dev/null
@@ -1 +0,0 @@
-OpenCDMP - Plan Invite
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/planmodified/email/body.en.html b/notification-service/notification-web/src/main/resources/notification_templates/planmodified/email/body.en.html
deleted file mode 100644
index 8cd6a97b0..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/planmodified/email/body.en.html
+++ /dev/null
@@ -1,304 +0,0 @@
-
-
-
-
-
- OpenCDMP Notification
-
-
-
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
- Dear {recipient},
- {reasonName} just made changes to the Plan {name}.
-
-
-
- |
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
- |
- |
-
-
-
-
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/planmodified/email/subject.en.txt b/notification-service/notification-web/src/main/resources/notification_templates/planmodified/email/subject.en.txt
deleted file mode 100644
index df045f3ca..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/planmodified/email/subject.en.txt
+++ /dev/null
@@ -1 +0,0 @@
-OpenCDMP - Plan Modified
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/planmodified/inapp/body.en.html b/notification-service/notification-web/src/main/resources/notification_templates/planmodified/inapp/body.en.html
deleted file mode 100644
index 57dfa1277..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/planmodified/inapp/body.en.html
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
- Dear {recipient},
- {reasonName} just made changes to the Plan {name}.
- Click here to view it.
-
-
-
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/planmodified/inapp/subject.en.txt b/notification-service/notification-web/src/main/resources/notification_templates/planmodified/inapp/subject.en.txt
deleted file mode 100644
index df045f3ca..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/planmodified/inapp/subject.en.txt
+++ /dev/null
@@ -1 +0,0 @@
-OpenCDMP - Plan Modified
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/publiccontactsupport/email/body.en.html b/notification-service/notification-web/src/main/resources/notification_templates/publiccontactsupport/email/body.en.html
deleted file mode 100644
index f2c3845c0..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/publiccontactsupport/email/body.en.html
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
-
- OpenCDMP Notification
-
-
-{description}
-
-
-Send by user: {email}
-
-
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/publiccontactsupport/email/subject.en.txt b/notification-service/notification-web/src/main/resources/notification_templates/publiccontactsupport/email/subject.en.txt
deleted file mode 100644
index 9140c4034..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/publiccontactsupport/email/subject.en.txt
+++ /dev/null
@@ -1 +0,0 @@
-OpenCDMP - {subject}
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/removecredentialconfirmation/email/body.en.html b/notification-service/notification-web/src/main/resources/notification_templates/removecredentialconfirmation/email/body.en.html
deleted file mode 100644
index 059cae435..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/removecredentialconfirmation/email/body.en.html
+++ /dev/null
@@ -1,304 +0,0 @@
-
-
-
-
-
- OpenCDMP Notification
-
-
-
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- You have made a request to unlink your email account in OpenCDMP.
- Please confirm that you want to unlink your {email} account.
- The link will expire in {expiration_time}.
-
- |
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
- |
- |
-
-
-
-
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/removecredentialconfirmation/email/subject.en.txt b/notification-service/notification-web/src/main/resources/notification_templates/removecredentialconfirmation/email/subject.en.txt
deleted file mode 100644
index d942b4dbe..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/removecredentialconfirmation/email/subject.en.txt
+++ /dev/null
@@ -1 +0,0 @@
-OpenCDMP - Unlink Email Confirmation
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/removecredentialconfirmation/inapp/body.en.html b/notification-service/notification-web/src/main/resources/notification_templates/removecredentialconfirmation/inapp/body.en.html
deleted file mode 100644
index 4a3d5dd30..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/removecredentialconfirmation/inapp/body.en.html
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
-
-
-
-
- You have made a request to unlink your email account in OpenCDMP.
- Please confirm that you want to unlink your {email} account.
-
The link will expire in {expiration_time}.
- Confirm Unlink Request
-
-
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/removecredentialconfirmation/inapp/subject.en.txt b/notification-service/notification-web/src/main/resources/notification_templates/removecredentialconfirmation/inapp/subject.en.txt
deleted file mode 100644
index d942b4dbe..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/removecredentialconfirmation/inapp/subject.en.txt
+++ /dev/null
@@ -1 +0,0 @@
-OpenCDMP - Unlink Email Confirmation
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/tenantspecificinvitationexistinguser/email/body.en.html b/notification-service/notification-web/src/main/resources/notification_templates/tenantspecificinvitationexistinguser/email/body.en.html
deleted file mode 100644
index 4dfb9edc0..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/tenantspecificinvitationexistinguser/email/body.en.html
+++ /dev/null
@@ -1,304 +0,0 @@
-
-
-
-
-
- OpenCDMP Notification
-
-
-
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- User {userName} invited you to join the {tenantName}.
- Please confirm that you want to continue.
- The link will expire in {expiration_time}.
-
- |
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
- |
- |
-
-
-
-
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/tenantspecificinvitationexistinguser/email/subject.en.txt b/notification-service/notification-web/src/main/resources/notification_templates/tenantspecificinvitationexistinguser/email/subject.en.txt
deleted file mode 100644
index f10926ab7..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/tenantspecificinvitationexistinguser/email/subject.en.txt
+++ /dev/null
@@ -1 +0,0 @@
-OpenCDMP - Invitation
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/tenantspecificinvitationexistinguser/inapp/body.en.html b/notification-service/notification-web/src/main/resources/notification_templates/tenantspecificinvitationexistinguser/inapp/body.en.html
deleted file mode 100644
index cd51b691b..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/tenantspecificinvitationexistinguser/inapp/body.en.html
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
-
-
-
-
- User {userName} invited you to join the {tenantName}.
- Please confirm that you want to continue.
-
The link will expire in {expiration_time}.
- Confirm Invitation
-
-
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/tenantspecificinvitationexistinguser/inapp/subject.en.txt b/notification-service/notification-web/src/main/resources/notification_templates/tenantspecificinvitationexistinguser/inapp/subject.en.txt
deleted file mode 100644
index f10926ab7..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/tenantspecificinvitationexistinguser/inapp/subject.en.txt
+++ /dev/null
@@ -1 +0,0 @@
-OpenCDMP - Invitation
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/tenantspecificinvitationexternaluser/email/body.en.html b/notification-service/notification-web/src/main/resources/notification_templates/tenantspecificinvitationexternaluser/email/body.en.html
deleted file mode 100644
index 4dfb9edc0..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/tenantspecificinvitationexternaluser/email/body.en.html
+++ /dev/null
@@ -1,304 +0,0 @@
-
-
-
-
-
- OpenCDMP Notification
-
-
-
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- User {userName} invited you to join the {tenantName}.
- Please confirm that you want to continue.
- The link will expire in {expiration_time}.
-
- |
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
- |
- |
-
-
-
-
\ No newline at end of file
diff --git a/notification-service/notification-web/src/main/resources/notification_templates/tenantspecificinvitationexternaluser/email/subject.en.txt b/notification-service/notification-web/src/main/resources/notification_templates/tenantspecificinvitationexternaluser/email/subject.en.txt
deleted file mode 100644
index f10926ab7..000000000
--- a/notification-service/notification-web/src/main/resources/notification_templates/tenantspecificinvitationexternaluser/email/subject.en.txt
+++ /dev/null
@@ -1 +0,0 @@
-OpenCDMP - Invitation
\ No newline at end of file
diff --git a/notification-service/notification/.gitignore b/notification-service/notification/.gitignore
deleted file mode 100644
index 549e00a2a..000000000
--- a/notification-service/notification/.gitignore
+++ /dev/null
@@ -1,33 +0,0 @@
-HELP.md
-target/
-!.mvn/wrapper/maven-wrapper.jar
-!**/src/main/**/target/
-!**/src/test/**/target/
-
-### STS ###
-.apt_generated
-.classpath
-.factorypath
-.project
-.settings
-.springBeans
-.sts4-cache
-
-### IntelliJ IDEA ###
-.idea
-*.iws
-*.iml
-*.ipr
-
-### NetBeans ###
-/nbproject/private/
-/nbbuild/
-/dist/
-/nbdist/
-/.nb-gradle/
-build/
-!**/src/main/**/build/
-!**/src/test/**/build/
-
-### VS Code ###
-.vscode/
diff --git a/notification-service/notification/pom.xml b/notification-service/notification/pom.xml
deleted file mode 100644
index 388c2108c..000000000
--- a/notification-service/notification/pom.xml
+++ /dev/null
@@ -1,102 +0,0 @@
-
-
- 4.0.0
-
-
- gr.cite
- notification-service-parent
- ${revision}
- ../pom.xml
-
-
- notification
- ${revision}
-
-
- 21
- 21
- 21
- 21
- 1.0.0-SNAPSHOT
-
-
-
-
- org.springframework.boot
- spring-boot-starter-test
- test
-
-
- org.springframework.boot
- spring-boot-starter-data-jpa
-
-
- org.springframework.boot
- spring-boot-starter-validation
-
-
- org.springframework.boot
- spring-boot-starter-mail
-
-
- org.apache.poi
- poi
- 5.2.2
-
-
- org.apache.poi
- poi-ooxml
- 5.2.2
-
-
-
- gr.cite
- data-tools
- 2.1.5
-
-
- gr.cite
- field-set
- 2.1.0
-
-
- gr.cite
- oidc-authn
- 2.2.2
-
-
- gr.cite
- logging
- 1.0.0
-
-
- gr.cite
- oidc-authz
- 2.1.0
-
-
- gr.cite
- exceptions
- 1.0.0
-
-
- gr.cite
- validation
- 3.0.3
-
-
-
- com.fasterxml.jackson.datatype
- jackson-datatype-jsr310
-
-
-
- gr.cite
- cipher
- 1.0.0
- compile
-
-
-
-
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/audit/AuditableAction.java b/notification-service/notification/src/main/java/gr/cite/notification/audit/AuditableAction.java
deleted file mode 100644
index 8fdb53f81..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/audit/AuditableAction.java
+++ /dev/null
@@ -1,52 +0,0 @@
-package gr.cite.notification.audit;
-
-import gr.cite.tools.logging.EventId;
-
-public class AuditableAction {
- public static final EventId Tenant_Available_Notifiers_Query = new EventId(2006, "Tenant_Available_Notifiers_Query");
- public static final EventId Principal_Lookup = new EventId(6000, "Principal_Lookup");
- public static final EventId Tenants_Lookup = new EventId(6001, "Tenants_Lookup");
-
- public static final EventId User_Available_Notifiers_Query = new EventId(10004, "User_Available_Notifiers_Query");
-
- public static final EventId User_Query = new EventId(11000, "User_Query");
- public static final EventId User_Lookup = new EventId(11001, "User_Lookup");
- public static final EventId User_Persist = new EventId(11002, "User_Persist");
- public static final EventId User_Delete = new EventId(11003, "User_Delete");
-
- public static final EventId Tenant_Query = new EventId(12000, "Tenant_Query");
- public static final EventId Tenant_Lookup = new EventId(12001, "Tenant_Lookup");
- public static final EventId Tenant_Persist = new EventId(12002, "Tenant_Persist");
- public static final EventId Tenant_Delete = new EventId(12003, "Tenant_Delete");
-
- public static final EventId Notification_Query = new EventId(19000, "Notification_Query");
- public static final EventId Notification_Lookup = new EventId(19001, "Notification_Lookup");
- public static final EventId Notification_Persist = new EventId(19002, "Notification_Persist");
- public static final EventId Notification_Delete = new EventId(19003, "Notification_Delete");
-
- public static final EventId InApp_Notification_Query = new EventId(20000, "InApp_Notification_Query");
- public static final EventId InApp_Notification_Lookup = new EventId(20001, "InApp_Notification_Lookup");
- public static final EventId InApp_Notification_Persist = new EventId(20002, "InApp_Notification_Persist");
- public static final EventId InApp_Notification_Delete = new EventId(20003, "InApp_Notification_Delete");
- public static final EventId InApp_Notification_Read = new EventId(20003, "InApp_Notification_Read");
- public static final EventId InApp_Notification_Read_All = new EventId(20003, "InApp_Notification_Read_All");
-
- public static final EventId Tenant_Configuration_Query = new EventId(21000, "Tenant_Configuration_Query");
- public static final EventId Tenant_Configuration_Lookup = new EventId(21001, "Tenant_Configuration_Lookup");
- public static final EventId Tenant_Configuration_Persist = new EventId(21002, "Tenant_Configuration_Persist");
- public static final EventId Tenant_Configuration_Delete = new EventId(21003, "Tenant_Configuration_Delete");
- public static final EventId TenantConfiguration_LookupByType = new EventId(210004, "TenantConfiguration_LookupByType");
- public static final EventId Tenant_Configuration_DefaultUserLocale_Delete = new EventId(21005, "Tenant_Configuration_DefaultUserLocale_Delete");
- public static final EventId Tenant_Configuration_DefaultUserLocale_Persist = new EventId(21006, "Tenant_Configuration_DefaultUserLocale_Persist");
- public static final EventId Tenant_Configuration_Notifiers_Query = new EventId(21007, "Tenant_Configuration_Notifiers_Query");
-
- public static final EventId User_Notification_Preference_Query = new EventId(22000, "User_Notification_Preference_Query");
- public static final EventId User_Notification_Preference_Lookup = new EventId(22001, "User_Notification_Preference_Lookup");
- public static final EventId User_Notification_Preference_Persist = new EventId(22002, "User_Notification_Preference_Persist");
- public static final EventId User_Notification_Preference_Delete = new EventId(22003, "User_Notification_Preference_Delete");
-
- public static final EventId Notification_Template_Query = new EventId(23000, "Notification_Template_Query");
- public static final EventId Notification_Template_Lookup = new EventId(23001, "Notification_Template_Lookup");
- public static final EventId Notification_Template_Persist = new EventId(23002, "Notification_Template_Persist");
- public static final EventId Notification_Template_Delete = new EventId(23003, "Notification_Template_Delete");
-}
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/authorization/AuthorizationFlags.java b/notification-service/notification/src/main/java/gr/cite/notification/authorization/AuthorizationFlags.java
deleted file mode 100644
index 2cba3132b..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/authorization/AuthorizationFlags.java
+++ /dev/null
@@ -1,8 +0,0 @@
-package gr.cite.notification.authorization;
-
-import java.util.EnumSet;
-
-public enum AuthorizationFlags {
- None, Permission, Owner;
- public static final EnumSet OwnerOrPermission = EnumSet.of(Owner, Permission);
-}
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/authorization/ClaimNames.java b/notification-service/notification/src/main/java/gr/cite/notification/authorization/ClaimNames.java
deleted file mode 100644
index c59d6a58e..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/authorization/ClaimNames.java
+++ /dev/null
@@ -1,9 +0,0 @@
-package gr.cite.notification.authorization;
-
-public class ClaimNames {
- public static final String ExternalProviderName = "ExternalProviderName";
- public static final String TenantCodesClaimName = "TenantCodes";
- public static final String TenantClaimName = "x-tenant";
- public static final String GlobalRolesClaimName = "GlobalRoles";
- public static final String TenantRolesClaimName = "TenantRoles";
-}
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/authorization/OwnedAuthorizationRequirement.java b/notification-service/notification/src/main/java/gr/cite/notification/authorization/OwnedAuthorizationRequirement.java
deleted file mode 100644
index 8171339da..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/authorization/OwnedAuthorizationRequirement.java
+++ /dev/null
@@ -1,6 +0,0 @@
-package gr.cite.notification.authorization;
-
-import gr.cite.commons.web.authz.policy.AuthorizationRequirement;
-
-public class OwnedAuthorizationRequirement implements AuthorizationRequirement {
-}
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/authorization/OwnedResource.java b/notification-service/notification/src/main/java/gr/cite/notification/authorization/OwnedResource.java
deleted file mode 100644
index 124f7ba2b..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/authorization/OwnedResource.java
+++ /dev/null
@@ -1,26 +0,0 @@
-package gr.cite.notification.authorization;
-
-import gr.cite.commons.web.authz.policy.AuthorizationResource;
-
-import java.util.List;
-import java.util.UUID;
-
-public class OwnedResource extends AuthorizationResource {
- private List userIds;
-
- public OwnedResource(UUID userId) {
- this(List.of(userId));
- }
-
- public OwnedResource(List userIds) {
- this.userIds = userIds;
- }
-
- public List getUserIds() {
- return userIds;
- }
-
- public void setUserIds(List userIds) {
- this.userIds = userIds;
- }
-}
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/authorization/Permission.java b/notification-service/notification/src/main/java/gr/cite/notification/authorization/Permission.java
deleted file mode 100644
index 4abf5ca0f..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/authorization/Permission.java
+++ /dev/null
@@ -1,49 +0,0 @@
-package gr.cite.notification.authorization;
-
-public final class Permission {
- //User
- public static String BrowseUser = "BrowseUser";
- public static String EditUser = "EditUser";
- public static String DeleteUser = "DeleteUser";
-
- //UserContactInfo
- public static String BrowseUserContactInfo = "BrowseUserContactInfo";
- public static String EditUserContactInfo = "EditUserContactInfo";
- public static String DeleteUserContactInfo = "DeleteUserContactInfo";
-
- //Tenant
- public static String BrowseTenant = "BrowseTenant";
- public static String EditTenant = "EditTenant";
- public static String DeleteTenant = "DeleteTenant";
- public static String AllowNoTenant = "AllowNoTenant";
-
- //Notification
- public static final String BrowseNotification = "BrowseNotification";
- public static String EditNotification = "EditNotification";
- public static String DeleteNotification = "DeleteNotification";
-
- public static final String BrowseTenantConfiguration = "BrowseTenantConfiguration";
- public static final String EditTenantConfiguration = "EditTenantConfiguration";
- public static final String DeleteTenantConfiguration = "DeleteTenantConfiguration";
-
- //Notification Preference
- public static final String BrowseUserNotificationPreference = "BrowseUserNotificationPreference";
- public static final String EditUserNotificationPreference = "EditUserNotificationPreference";
-
- //Notification Template
- public static final String BrowseNotificationTemplate = "BrowseNotificationTemplate";
- public static String EditNotificationTemplate = "EditNotificationTemplate";
- public static String DeleteNotificationTemplate = "DeleteNotificationTemplate";
-
- //InApp Notification
- public static final String BrowseInAppNotification = "BrowseInAppNotification";
- public static String DeleteInAppNotification = "DeleteInAppNotification";
-
- // UI Pages
- public static String ViewTenantConfigurationPage = "ViewTenantConfigurationPage";
- public static String ViewNotificationPage = "ViewNotificationPage";
- public static String ViewNotificationEventRulePage = "ViewNotificationEventRulePage";
- public static String ViewInAppNotificationPage = "ViewInAppNotificationPage";
- public static String ViewNotificationTemplatePage = "ViewNotificationTemplatePage";
-
-}
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/common/JsonHandlingService.java b/notification-service/notification/src/main/java/gr/cite/notification/common/JsonHandlingService.java
deleted file mode 100644
index c76b3d7c7..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/common/JsonHandlingService.java
+++ /dev/null
@@ -1,45 +0,0 @@
-package gr.cite.notification.common;
-
-import com.fasterxml.jackson.core.JsonProcessingException;
-import com.fasterxml.jackson.databind.ObjectMapper;
-import gr.cite.tools.logging.LoggerService;
-import org.slf4j.LoggerFactory;
-import org.springframework.beans.factory.config.ConfigurableBeanFactory;
-import org.springframework.context.annotation.Scope;
-import org.springframework.stereotype.Component;
-
-@Component
-public class JsonHandlingService {
- private static final LoggerService logger = new LoggerService(LoggerFactory.getLogger(JsonHandlingService.class));
- private final ObjectMapper objectMapper = new ObjectMapper();
-
- public String toJson(Object item) throws JsonProcessingException {
- if (item == null) return null;
- return objectMapper.writeValueAsString(item);
- }
-
- public String toJsonSafe(Object item) {
- if (item == null) return null;
- try {
- return objectMapper.writeValueAsString(item);
- } catch (Exception ex) {
- logger.error("Json Parsing Error: " + ex.getLocalizedMessage(), ex);
- return null;
- }
- }
-
- public T fromJson(Class type, String json) throws JsonProcessingException {
- if (json == null) return null;
- return objectMapper.readValue(json, type);
- }
-
- public T fromJsonSafe(Class type, String json) {
- if (json == null) return null;
- try {
- return objectMapper.readValue(json, type);
- } catch (Exception ex) {
- logger.error("Json Parsing Error: " + ex.getLocalizedMessage(), ex);
- return null;
- }
- }
-}
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/common/StringUtils.java b/notification-service/notification/src/main/java/gr/cite/notification/common/StringUtils.java
deleted file mode 100644
index 0a73b94ef..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/common/StringUtils.java
+++ /dev/null
@@ -1,8 +0,0 @@
-package gr.cite.notification.common;
-
-public class StringUtils {
-
- public static Boolean isNullOrEmpty(String string) {
- return string == null || string.isEmpty();
- }
-}
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/common/XmlHandlingService.java b/notification-service/notification/src/main/java/gr/cite/notification/common/XmlHandlingService.java
deleted file mode 100644
index 1207e4580..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/common/XmlHandlingService.java
+++ /dev/null
@@ -1,117 +0,0 @@
-package gr.cite.notification.common;
-
-import com.fasterxml.jackson.core.JsonProcessingException;
-import gr.cite.notification.common.types.xml.XmlSerializable;
-import org.springframework.beans.factory.config.ConfigurableBeanFactory;
-import org.springframework.context.annotation.Scope;
-import org.springframework.stereotype.Component;
-import org.w3c.dom.Document;
-import org.xml.sax.InputSource;
-import org.xml.sax.SAXException;
-
-import javax.management.InvalidApplicationException;
-import jakarta.xml.bind.JAXBContext;
-import jakarta.xml.bind.JAXBException;
-import jakarta.xml.bind.Marshaller;
-import jakarta.xml.bind.Unmarshaller;
-import javax.xml.parsers.DocumentBuilder;
-import javax.xml.parsers.DocumentBuilderFactory;
-import javax.xml.parsers.ParserConfigurationException;
-import javax.xml.transform.OutputKeys;
-import javax.xml.transform.Transformer;
-import javax.xml.transform.TransformerException;
-import javax.xml.transform.TransformerFactory;
-import javax.xml.transform.dom.DOMSource;
-import javax.xml.transform.stream.StreamResult;
-import java.io.IOException;
-import java.io.StringReader;
-import java.io.StringWriter;
-
-@Component
-@Scope(value = ConfigurableBeanFactory.SCOPE_SINGLETON)
-public class XmlHandlingService {
-
- public String generateXml(Document doc) throws TransformerException {
- TransformerFactory tFact = TransformerFactory.newInstance();
- Transformer trans = tFact.newTransformer();
- StringWriter writer = new StringWriter();
- StreamResult result = new StreamResult(writer);
- DOMSource source = new DOMSource(doc);
- trans.setOutputProperty(OutputKeys.INDENT, "yes");
- trans.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "2");
- trans.transform(source, result);
- return writer.toString();
- }
-
- public String toXml(Object item) throws JsonProcessingException, JAXBException, ParserConfigurationException, InvalidApplicationException, TransformerException {
- if (XmlSerializable.class.isAssignableFrom(item.getClass())){
- Document document = this.getDocument();
- if (document == null) throw new InvalidApplicationException("Can not create document");
- document.appendChild(((XmlSerializable)item).toXml(document));
- return this.generateXml(document);
- }
-
- JAXBContext context = JAXBContext.newInstance(item.getClass());
- Marshaller marshaller = context.createMarshaller();
- StringWriter out = new StringWriter();
- marshaller.marshal(item, out);
- return out.toString();
- }
-
- public String toXmlSafe(Object item) {
- if (item == null) return null;
- try {
- return this.toXml(item);
- } catch (Exception ex) {
- return null;
- }
- }
-
- public T fromXml(Class type, String xmlString) throws JAXBException, InstantiationException, IllegalAccessException, ParserConfigurationException, IOException, SAXException {
- if (XmlSerializable.class.isAssignableFrom(type)){
- XmlSerializable object = (XmlSerializable)type.newInstance();
- return object.fromXml(this.getDocument(xmlString).getDocumentElement());
- } else {
- JAXBContext jaxbContext = JAXBContext.newInstance(type);
- Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller();
-
- return (T) jaxbUnmarshaller.unmarshal(new StringReader(xmlString));
- }
- }
-
- public T fromXmlSafe(Class type, String xmlString) {
- if (xmlString == null) return null;
- try {
- return this.fromXml(type, xmlString);
- } catch (Exception ex) {
- return null;
- }
- }
-
-// public > T xmlSerializableFromXml(Class type, String xmlString) throws JAXBException, InstantiationException, IllegalAccessException, ParserConfigurationException, IOException, SAXException {
-// T object = type.newInstance();
-// return (T) object.fromXml(this.getDocument(xmlString).getDocumentElement());
-// }
-//
-// public > T xmlSerializableFromXmlSafe(Class type, String xmlString) {
-// if (xmlString == null) return null;
-// try {
-// return this.xmlSerializableFromXml(type, xmlString);
-// } catch (Exception ex) {
-// return null;
-// }
-// }
-
- public Document getDocument(String xml) throws ParserConfigurationException, IOException, SAXException {
- DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();
- DocumentBuilder docBuilder = docFactory.newDocumentBuilder();
- InputSource inputStream = new InputSource(new StringReader(xml));
- return docBuilder.parse(inputStream);
- }
-
- public Document getDocument() throws ParserConfigurationException {
- DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();
- DocumentBuilder docBuilder = docFactory.newDocumentBuilder();
- return docBuilder.newDocument();
- }
-}
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/common/enums/ContactInfoType.java b/notification-service/notification/src/main/java/gr/cite/notification/common/enums/ContactInfoType.java
deleted file mode 100644
index e0d52875c..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/common/enums/ContactInfoType.java
+++ /dev/null
@@ -1,30 +0,0 @@
-package gr.cite.notification.common.enums;
-
-import com.fasterxml.jackson.annotation.JsonValue;
-import gr.cite.notification.data.conventers.DatabaseEnum;
-
-import java.util.HashMap;
-import java.util.Map;
-
-public enum ContactInfoType implements DatabaseEnum {
- Email((short) 0),
- MobilePhone((short) 1),
- LandLinePhone((short) 2);
- private final Short value;
-
- ContactInfoType(Short value) {
- this.value = value;
- }
-
- @Override
- @JsonValue
- public Short getValue() {
- return value;
- }
-
- private static final Map map = EnumUtils.getEnumValueMap(ContactInfoType.class);
-
- public static ContactInfoType of(Short i) {
- return map.get(i);
- }
-}
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/common/enums/EmailOverrideMode.java b/notification-service/notification/src/main/java/gr/cite/notification/common/enums/EmailOverrideMode.java
deleted file mode 100644
index 5af7c2f1e..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/common/enums/EmailOverrideMode.java
+++ /dev/null
@@ -1,29 +0,0 @@
-package gr.cite.notification.common.enums;
-
-import com.fasterxml.jackson.annotation.JsonValue;
-import gr.cite.notification.data.conventers.DatabaseEnum;
-
-import java.util.Map;
-
-public enum EmailOverrideMode implements DatabaseEnum {
- NotOverride((short)0),
- Additive((short)1),
- Replace((short)2);
-
- private final Short value;
-
- EmailOverrideMode(Short value) {
- this.value = value;
- }
-
- @JsonValue
- public Short getValue() {
- return value;
- }
-
- private static final Map map = EnumUtils.getEnumValueMap(EmailOverrideMode.class);
-
- public static EmailOverrideMode of(Short i) {
- return map.get(i);
- }
-}
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/common/enums/EnumUtils.java b/notification-service/notification/src/main/java/gr/cite/notification/common/enums/EnumUtils.java
deleted file mode 100644
index fa581f847..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/common/enums/EnumUtils.java
+++ /dev/null
@@ -1,16 +0,0 @@
-package gr.cite.notification.common.enums;
-
-import gr.cite.notification.data.conventers.DatabaseEnum;
-
-import java.util.HashMap;
-import java.util.Map;
-
-public class EnumUtils {
- public static & DatabaseEnum, EnumValue> Map getEnumValueMap(Class enumType){
- HashMap map = new HashMap<>();
- for (EnumType v : enumType.getEnumConstants()) {
- map.put(v.getValue(), v);
- }
- return map;
- }
-}
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/common/enums/InAppNotificationPriority.java b/notification-service/notification/src/main/java/gr/cite/notification/common/enums/InAppNotificationPriority.java
deleted file mode 100644
index e85733fd2..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/common/enums/InAppNotificationPriority.java
+++ /dev/null
@@ -1,30 +0,0 @@
-package gr.cite.notification.common.enums;
-
-import com.fasterxml.jackson.annotation.JsonValue;
-import gr.cite.notification.data.conventers.DatabaseEnum;
-
-import java.util.Map;
-
-public enum InAppNotificationPriority implements DatabaseEnum {
- LOW((short)-1),
- NORMAL((short)0),
- HIGH((short)1),
- EMERGENCY((short)2);
-
- private final Short value;
-
- InAppNotificationPriority(Short value) {
- this.value = value;
- }
-
- @JsonValue
- public Short getValue() {
- return value;
- }
-
- private static final Map map = EnumUtils.getEnumValueMap(InAppNotificationPriority.class);
-
- public static InAppNotificationPriority of(Short i) {
- return map.get(i);
- }
-}
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/common/enums/IsActive.java b/notification-service/notification/src/main/java/gr/cite/notification/common/enums/IsActive.java
deleted file mode 100644
index 10b9dc528..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/common/enums/IsActive.java
+++ /dev/null
@@ -1,28 +0,0 @@
-package gr.cite.notification.common.enums;
-
-import com.fasterxml.jackson.annotation.JsonValue;
-import gr.cite.notification.data.conventers.DatabaseEnum;
-
-import java.util.Map;
-
-public enum IsActive implements DatabaseEnum {
- Inactive((short) 0),
- Active((short) 1);
-
- private final Short value;
-
- IsActive(Short value) {
- this.value = value;
- }
-
- @JsonValue
- public Short getValue() {
- return value;
- }
-
- private static final Map map = EnumUtils.getEnumValueMap(IsActive.class);
-
- public static IsActive of(Short i) {
- return map.get(i);
- }
-}
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/common/enums/NotificationContactType.java b/notification-service/notification/src/main/java/gr/cite/notification/common/enums/NotificationContactType.java
deleted file mode 100644
index 8b30d02e7..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/common/enums/NotificationContactType.java
+++ /dev/null
@@ -1,30 +0,0 @@
-package gr.cite.notification.common.enums;
-
-import com.fasterxml.jackson.annotation.JsonValue;
-import gr.cite.notification.data.conventers.DatabaseEnum;
-
-import java.util.Map;
-
-public enum NotificationContactType implements DatabaseEnum {
- EMAIL((short) 0),
- SLACK_BROADCAST((short) 1),
- SMS((short) 2),
- IN_APP((short) 3);
-
- private final Short value;
-
- NotificationContactType(Short value) {
- this.value = value;
- }
-
- @JsonValue
- public Short getValue() {
- return value;
- }
-
- private static final Map map = EnumUtils.getEnumValueMap(NotificationContactType.class);
-
- public static NotificationContactType of(Short i) {
- return map.get(i);
- }
-}
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/common/enums/NotificationDataType.java b/notification-service/notification/src/main/java/gr/cite/notification/common/enums/NotificationDataType.java
deleted file mode 100644
index a0d9918b3..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/common/enums/NotificationDataType.java
+++ /dev/null
@@ -1,31 +0,0 @@
-package gr.cite.notification.common.enums;
-
-import com.fasterxml.jackson.annotation.JsonValue;
-import gr.cite.notification.data.conventers.DatabaseEnum;
-
-import java.util.Map;
-
-public enum NotificationDataType implements DatabaseEnum {
- Integer((short)0),
- Decimal((short)1),
- Double((short)2),
- DateTime((short)3),
- //TimeSpan(4),
- String((short)5);
- private final Short value;
-
- NotificationDataType(Short value) {
- this.value = value;
- }
-
- @JsonValue
- public Short getValue() {
- return value;
- }
-
- private static final Map map = EnumUtils.getEnumValueMap(NotificationDataType.class);
-
- public static NotificationDataType of(Short i) {
- return map.get(i);
- }
-}
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/common/enums/NotificationInAppTracking.java b/notification-service/notification/src/main/java/gr/cite/notification/common/enums/NotificationInAppTracking.java
deleted file mode 100644
index 97957b507..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/common/enums/NotificationInAppTracking.java
+++ /dev/null
@@ -1,28 +0,0 @@
-package gr.cite.notification.common.enums;
-
-import com.fasterxml.jackson.annotation.JsonValue;
-import gr.cite.notification.data.conventers.DatabaseEnum;
-
-import java.util.Map;
-
-public enum NotificationInAppTracking implements DatabaseEnum {
- STORED((short)0),
- DELIVERED((short)1);
-
- private final Short value;
-
- NotificationInAppTracking(Short value) {
- this.value = value;
- }
-
- @JsonValue
- public Short getValue() {
- return value;
- }
-
- private static final Map map = EnumUtils.getEnumValueMap(NotificationInAppTracking.class);
-
- public static NotificationInAppTracking of(Short i) {
- return map.get(i);
- }
-}
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/common/enums/NotificationNotifyState.java b/notification-service/notification/src/main/java/gr/cite/notification/common/enums/NotificationNotifyState.java
deleted file mode 100644
index 1dce8ba38..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/common/enums/NotificationNotifyState.java
+++ /dev/null
@@ -1,33 +0,0 @@
-package gr.cite.notification.common.enums;
-
-import com.fasterxml.jackson.annotation.JsonValue;
-import gr.cite.notification.data.conventers.DatabaseEnum;
-
-import java.util.Map;
-
-public enum NotificationNotifyState implements DatabaseEnum {
-
- PENDING((short)0),
- PROCESSING((short)1),
- SUCCESSFUL((short)2),
- ERROR((short)3),
- OMITTED((short)4);
-
- private final Short value;
-
- NotificationNotifyState(Short value) {
- this.value = value;
- }
-
- @JsonValue
- public Short getValue() {
- return value;
- }
-
- private static final Map map = EnumUtils.getEnumValueMap(NotificationNotifyState.class);
-
- public static NotificationNotifyState of(Short i) {
- return map.get(i);
- }
-
-}
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/common/enums/NotificationTemplateChannel.java b/notification-service/notification/src/main/java/gr/cite/notification/common/enums/NotificationTemplateChannel.java
deleted file mode 100644
index d484f9198..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/common/enums/NotificationTemplateChannel.java
+++ /dev/null
@@ -1,30 +0,0 @@
-package gr.cite.notification.common.enums;
-
-import com.fasterxml.jackson.annotation.JsonValue;
-import gr.cite.notification.data.conventers.DatabaseEnum;
-
-import java.util.Map;
-
-public enum NotificationTemplateChannel implements DatabaseEnum {
-
- Email((short)0),
- InApp((short)1);
-
- private final Short value;
-
- NotificationTemplateChannel(Short value) {
- this.value = value;
- }
-
- @JsonValue
- public Short getValue() {
- return value;
- }
-
- private static final Map map = EnumUtils.getEnumValueMap(NotificationTemplateChannel.class);
-
- public static NotificationTemplateChannel of(Short i) {
- return map.get(i);
- }
-
-}
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/common/enums/NotificationTemplateKind.java b/notification-service/notification/src/main/java/gr/cite/notification/common/enums/NotificationTemplateKind.java
deleted file mode 100644
index a735ececf..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/common/enums/NotificationTemplateKind.java
+++ /dev/null
@@ -1,32 +0,0 @@
-package gr.cite.notification.common.enums;
-
-import com.fasterxml.jackson.annotation.JsonValue;
-import gr.cite.notification.data.conventers.DatabaseEnum;
-
-import java.util.Map;
-
-public enum NotificationTemplateKind implements DatabaseEnum {
-
- Draft((short)0),
- Secondary((short)1),
- Primary((short)2),
- Default((short)3);
-
- private final Short value;
-
- NotificationTemplateKind(Short value) {
- this.value = value;
- }
-
- @JsonValue
- public Short getValue() {
- return value;
- }
-
- private static final Map map = EnumUtils.getEnumValueMap(NotificationTemplateKind.class);
-
- public static NotificationTemplateKind of(Short i) {
- return map.get(i);
- }
-
-}
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/common/enums/NotificationTrackingProcess.java b/notification-service/notification/src/main/java/gr/cite/notification/common/enums/NotificationTrackingProcess.java
deleted file mode 100644
index 61777b4cb..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/common/enums/NotificationTrackingProcess.java
+++ /dev/null
@@ -1,31 +0,0 @@
-package gr.cite.notification.common.enums;
-
-import com.fasterxml.jackson.annotation.JsonValue;
-import gr.cite.notification.data.conventers.DatabaseEnum;
-
-import java.util.Map;
-
-public enum NotificationTrackingProcess implements DatabaseEnum {
- PENDING((short)0),
- PROCESSING((short)1),
- COMPLETED((short)2),
- ERROR((short)3),
- OMITTED((short)4);
-
- private final Short value;
-
- NotificationTrackingProcess(Short value) {
- this.value = value;
- }
-
- @JsonValue
- public Short getValue() {
- return value;
- }
-
- private static final Map map = EnumUtils.getEnumValueMap(NotificationTrackingProcess.class);
-
- public static NotificationTrackingProcess of(Short i) {
- return map.get(i);
- }
-}
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/common/enums/NotificationTrackingState.java b/notification-service/notification/src/main/java/gr/cite/notification/common/enums/NotificationTrackingState.java
deleted file mode 100644
index 4a3998d88..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/common/enums/NotificationTrackingState.java
+++ /dev/null
@@ -1,40 +0,0 @@
-package gr.cite.notification.common.enums;
-
-import com.fasterxml.jackson.annotation.JsonValue;
-import gr.cite.notification.data.conventers.DatabaseEnum;
-
-import java.util.Map;
-
-public enum NotificationTrackingState implements DatabaseEnum {
- /* *
- * Initial state
- */
- UNDEFINED((short)0),
- /* *
- * Final for notifiers that do not provide any kind of tracking
- */
- NA((short)1),
- QUEUED((short)2),
- SENT((short)3),
- DELIVERED((short)4),
- UNDELIVERED((short)5),
- FAILED((short)6),
- UNSENT((short)7);
-
- private final Short value;
-
- NotificationTrackingState(Short value) {
- this.value = value;
- }
-
- @JsonValue
- public Short getValue() {
- return value;
- }
-
- private static final Map map = EnumUtils.getEnumValueMap(NotificationTrackingState.class);
-
- public static NotificationTrackingState of(Short i) {
- return map.get(i);
- }
-}
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/common/enums/TenantConfigurationType.java b/notification-service/notification/src/main/java/gr/cite/notification/common/enums/TenantConfigurationType.java
deleted file mode 100644
index 0f7b4f739..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/common/enums/TenantConfigurationType.java
+++ /dev/null
@@ -1,29 +0,0 @@
-package gr.cite.notification.common.enums;
-
-import com.fasterxml.jackson.annotation.JsonValue;
-import gr.cite.notification.data.conventers.DatabaseEnum;
-
-import java.util.Map;
-
-public enum TenantConfigurationType implements DatabaseEnum {
- NotifierList((short)0),
- DefaultUserLocale((short) 1),
- ;
-
- private final Short value;
-
- TenantConfigurationType(Short value) {
- this.value = value;
- }
-
- @JsonValue
- public Short getValue() {
- return value;
- }
-
- private static final Map map = EnumUtils.getEnumValueMap(TenantConfigurationType.class);
-
- public static TenantConfigurationType of(Short i) {
- return map.get(i);
- }
-}
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/common/lock/LockByKeyManager.java b/notification-service/notification/src/main/java/gr/cite/notification/common/lock/LockByKeyManager.java
deleted file mode 100644
index 59ffd49b4..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/common/lock/LockByKeyManager.java
+++ /dev/null
@@ -1,58 +0,0 @@
-package gr.cite.notification.common.lock;
-
-import org.springframework.stereotype.Service;
-
-import java.util.concurrent.ConcurrentHashMap;
-import java.util.concurrent.TimeUnit;
-import java.util.concurrent.atomic.AtomicInteger;
-import java.util.concurrent.locks.ReentrantLock;
-
-@Service
-public class LockByKeyManager {
-
- private static class LockWrapper {
- private final ReentrantLock lock = new ReentrantLock();
- private final AtomicInteger numberOfThreadsInQueue = new AtomicInteger(1);
-
- private LockWrapper addThreadInQueue() {
- numberOfThreadsInQueue.incrementAndGet();
- return this;
- }
-
- private int removeThreadFromQueue() {
- return numberOfThreadsInQueue.decrementAndGet();
- }
-
- }
-
- private static final ConcurrentHashMap locks = new ConcurrentHashMap();
-
- public void lock(String key) {
- LockWrapper lockWrapper = locks.compute(key, (k, v) -> v == null ? new LockWrapper() : v.addThreadInQueue());
- lockWrapper.lock.lock();
- }
-
- public boolean tryLock(String key, long timeout, TimeUnit unit) throws InterruptedException {
- LockWrapper lockWrapper = null;
- try {
- lockWrapper = locks.compute(key, (k, v) -> v == null ? new LockWrapper() : v.addThreadInQueue());
- return lockWrapper.lock.tryLock(timeout, unit);
- } catch (Exception ex){
- if (lockWrapper != null && lockWrapper.removeThreadFromQueue() == 0) {
- // NB : We pass in the specific value to remove to handle the case where another thread would queue right before the removal
- locks.remove(key, lockWrapper);
- }
- throw ex;
- }
- }
-
- public void unlock(String key) {
- LockWrapper lockWrapper = locks.get(key);
- lockWrapper.lock.unlock();
- if (lockWrapper.removeThreadFromQueue() == 0) {
- // NB : We pass in the specific value to remove to handle the case where another thread would queue right before the removal
- locks.remove(key, lockWrapper);
- }
- }
-
-}
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/common/scope/fake/FakeRequestAttributes.java b/notification-service/notification/src/main/java/gr/cite/notification/common/scope/fake/FakeRequestAttributes.java
deleted file mode 100644
index 726be9a97..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/common/scope/fake/FakeRequestAttributes.java
+++ /dev/null
@@ -1,125 +0,0 @@
-package gr.cite.notification.common.scope.fake;
-
-import org.springframework.util.Assert;
-import org.springframework.web.context.request.RequestAttributes;
-
-import java.util.HashMap;
-import java.util.LinkedHashMap;
-import java.util.Map;
-
-public class FakeRequestAttributes implements RequestAttributes {
- private final Map requestAttributeMap = new HashMap<>();
- private final Map requestDestructionCallbacks = new LinkedHashMap<>(8);
- private volatile boolean requestActive = true;
-
- @Override
- public Object getAttribute(String name, int scope) {
- if (scope == RequestAttributes.SCOPE_REQUEST) {
- if (!isRequestActive()) {
- throw new IllegalStateException("Cannot ask for request attribute - request is not active anymore!");
- }
- return this.requestAttributeMap.get(name);
- } else {
- throw new IllegalStateException("Only " + RequestAttributes.SCOPE_REQUEST + " allowed for " + FakeRequestAttributes.class.getSimpleName());
- }
- }
-
- @Override
- public void setAttribute(String name, Object value, int scope) {
- if (scope == RequestAttributes.SCOPE_REQUEST) {
- if (!isRequestActive()) {
- throw new IllegalStateException("Cannot set request attribute - request is not active anymore!");
- }
- this.requestAttributeMap.put(name, value);
- } else {
- throw new IllegalStateException("Only " + RequestAttributes.SCOPE_REQUEST + " allowed for " + FakeRequestAttributes.class.getSimpleName());
- }
- }
-
- @Override
- public void removeAttribute(String name, int scope) {
- if (scope == RequestAttributes.SCOPE_REQUEST) {
- if (isRequestActive()) {
- removeRequestDestructionCallback(name);
- this.requestAttributeMap.remove(name);
- }
- } else {
- throw new IllegalStateException("Only " + RequestAttributes.SCOPE_REQUEST + " allowed for " + FakeRequestAttributes.class.getSimpleName());
- }
- }
-
- @Override
- public String[] getAttributeNames(int scope) {
- if (scope == RequestAttributes.SCOPE_REQUEST) {
- if (!isRequestActive()) {
- throw new IllegalStateException("Cannot ask for request attributes - request is not active anymore!");
- }
- return this.requestAttributeMap.keySet().toArray(new String[0]);
- } else {
- throw new IllegalStateException("Only " + RequestAttributes.SCOPE_REQUEST + " allowed for " + FakeRequestAttributes.class.getSimpleName());
- }
- //return new String[0];
- }
-
- @Override
- public void registerDestructionCallback(String name, Runnable callback, int scope) {
- if (scope == SCOPE_REQUEST) {
- registerRequestDestructionCallback(name, callback);
- } else {
- throw new IllegalStateException("Only " + RequestAttributes.SCOPE_REQUEST + " allowed for " + FakeRequestAttributes.class.getSimpleName());
- }
- }
-
- protected final void registerRequestDestructionCallback(String name, Runnable callback) {
- Assert.notNull(name, "Name must not be null");
- Assert.notNull(callback, "Callback must not be null");
- synchronized (this.requestDestructionCallbacks) {
- this.requestDestructionCallbacks.put(name, callback);
- }
- }
-
- @Override
- public Object resolveReference(String key) {
- // Not supported
- return null;
- }
-
- @Override
- public String getSessionId() {
- return null;
- }
-
- @Override
- public Object getSessionMutex() {
- return null;
- }
-
- public void requestCompleted() {
- executeRequestDestructionCallbacks();
- for (String name : getAttributeNames(RequestAttributes.SCOPE_REQUEST)) {
- this.removeAttribute(name, RequestAttributes.SCOPE_REQUEST);
- }
- this.requestActive = false;
- }
-
- private final boolean isRequestActive() {
- return this.requestActive;
- }
-
-
- private final void removeRequestDestructionCallback(String name) {
- Assert.notNull(name, "Name must not be null");
- synchronized (this.requestDestructionCallbacks) {
- this.requestDestructionCallbacks.remove(name);
- }
- }
-
- private void executeRequestDestructionCallbacks() {
- synchronized (this.requestDestructionCallbacks) {
- for (Runnable runnable : this.requestDestructionCallbacks.values()) {
- runnable.run();
- }
- this.requestDestructionCallbacks.clear();
- }
- }
-}
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/common/scope/fake/FakeRequestScope.java b/notification-service/notification/src/main/java/gr/cite/notification/common/scope/fake/FakeRequestScope.java
deleted file mode 100644
index e8b6716e2..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/common/scope/fake/FakeRequestScope.java
+++ /dev/null
@@ -1,40 +0,0 @@
-package gr.cite.notification.common.scope.fake;
-
-import org.springframework.web.context.request.RequestAttributes;
-import org.springframework.web.context.request.RequestContextHolder;
-
-import java.io.Closeable;
-
-public class FakeRequestScope implements Closeable {
- private RequestAttributes initialRequestAttributes = null;
- private FakeRequestAttributes currentRequestAttributes = null;
- boolean isInUse = false;
-
- public FakeRequestScope() {
- this.reset();
- }
-
- public void reset() {
- this.close();
- this.isInUse = true;
-
- this.initialRequestAttributes = RequestContextHolder.getRequestAttributes();
- this.currentRequestAttributes = new FakeRequestAttributes();
- RequestContextHolder.setRequestAttributes(this.currentRequestAttributes);
- }
-
- @Override
- public void close() {
- if (!this.isInUse) return;
- this.isInUse = false;
-
- if (initialRequestAttributes != null) RequestContextHolder.setRequestAttributes(initialRequestAttributes);
- else RequestContextHolder.resetRequestAttributes();
-
- if (currentRequestAttributes != null) currentRequestAttributes.requestCompleted();
-
- this.initialRequestAttributes = null;
- this.currentRequestAttributes = null;
- }
-
-}
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/common/scope/tenant/MultitenancyConfiguration.java b/notification-service/notification/src/main/java/gr/cite/notification/common/scope/tenant/MultitenancyConfiguration.java
deleted file mode 100644
index 52ed9fa9f..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/common/scope/tenant/MultitenancyConfiguration.java
+++ /dev/null
@@ -1,9 +0,0 @@
-package gr.cite.notification.common.scope.tenant;
-
-import org.springframework.boot.context.properties.EnableConfigurationProperties;
-import org.springframework.context.annotation.Configuration;
-
-@Configuration
-@EnableConfigurationProperties(MultitenancyProperties.class)
-public class MultitenancyConfiguration {
-}
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/common/scope/tenant/MultitenancyProperties.java b/notification-service/notification/src/main/java/gr/cite/notification/common/scope/tenant/MultitenancyProperties.java
deleted file mode 100644
index 7fedb1b92..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/common/scope/tenant/MultitenancyProperties.java
+++ /dev/null
@@ -1,29 +0,0 @@
-package gr.cite.notification.common.scope.tenant;
-
-import org.springframework.boot.context.properties.ConfigurationProperties;
-
-@ConfigurationProperties(prefix = "tenant.multitenancy")
-public class MultitenancyProperties {
- private boolean isMultitenant;
- private String defaultTenantCode;
-
- public boolean isMultitenant() {
- return isMultitenant;
- }
-
- public void setIsMultitenant(boolean multitenant) {
- isMultitenant = multitenant;
- }
-
- public void setMultitenant(boolean multitenant) {
- isMultitenant = multitenant;
- }
-
- public String getDefaultTenantCode() {
- return defaultTenantCode;
- }
-
- public void setDefaultTenantCode(String defaultTenantCode) {
- this.defaultTenantCode = defaultTenantCode;
- }
-}
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/common/scope/tenant/TenantScope.java b/notification-service/notification/src/main/java/gr/cite/notification/common/scope/tenant/TenantScope.java
deleted file mode 100644
index c09af9a5e..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/common/scope/tenant/TenantScope.java
+++ /dev/null
@@ -1,85 +0,0 @@
-package gr.cite.notification.common.scope.tenant;
-
-import gr.cite.notification.data.TenantEntityManager;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Component;
-import org.springframework.web.context.annotation.RequestScope;
-
-import javax.management.InvalidApplicationException;
-import java.util.UUID;
-import java.util.concurrent.atomic.AtomicReference;
-
-@Component
-@RequestScope
-public class TenantScope {
- public static final String TenantReplaceParameter = "::TenantCode::";
- private final MultitenancyProperties multitenancy;
- private final AtomicReference tenant = new AtomicReference<>();
- private final AtomicReference tenantCode = new AtomicReference<>();
- private final AtomicReference initialTenant = new AtomicReference<>();
- private final AtomicReference initialTenantCode = new AtomicReference<>();
-
- @Autowired
- public TenantScope(MultitenancyProperties multitenancy) {
- this.multitenancy = multitenancy;
- }
-
- public Boolean isMultitenant() {
- return this.multitenancy.isMultitenant();
- }
-
- public String getDefaultTenantCode() {
- return this.multitenancy.getDefaultTenantCode();
- }
-
- public Boolean isSet() {
- if (!this.isMultitenant())
- return Boolean.TRUE;
- return this.tenant.get() != null || this.isDefaultTenant();
- }
-
- public Boolean isDefaultTenant() {
- if (!this.isMultitenant())
- return Boolean.TRUE;
- return this.multitenancy.getDefaultTenantCode().equalsIgnoreCase(this.tenantCode.get());
- }
-
- public UUID getTenant() throws InvalidApplicationException {
- if (!this.isMultitenant())
- return null;
- if (this.tenant.get() == null && !this.isDefaultTenant())
- throw new InvalidApplicationException("tenant not set");
- return this.isDefaultTenant() ? null : this.tenant.get();
- }
-
- public String getTenantCode() throws InvalidApplicationException {
- if (!this.isMultitenant())
- return null;
- if (this.tenantCode.get() == null)
- throw new InvalidApplicationException("tenant not set");
- return this.tenantCode.get();
- }
-
- public void setTempTenant(TenantEntityManager entityManager, UUID tenant, String tenantCode) throws InvalidApplicationException {
- this.tenant.set(tenant);
- this.tenantCode.set(tenantCode);
-
- entityManager.reloadTenantFilters();
- }
-
- public void removeTempTenant(TenantEntityManager entityManager) throws InvalidApplicationException {
- this.tenant.set(this.initialTenant.get());
- this.tenantCode.set(this.initialTenantCode.get());
-
- entityManager.reloadTenantFilters();
- }
-
- public void setTenant(UUID tenant, String tenantCode) {
- if (this.isMultitenant()) {
- this.tenant.set(tenant);
- this.initialTenant.set(tenant);
- this.tenantCode.set(tenantCode);
- this.initialTenantCode.set(tenantCode);
- }
- }
-}
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/common/scope/tenant/TenantScoped.java b/notification-service/notification/src/main/java/gr/cite/notification/common/scope/tenant/TenantScoped.java
deleted file mode 100644
index 77ecacaea..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/common/scope/tenant/TenantScoped.java
+++ /dev/null
@@ -1,8 +0,0 @@
-package gr.cite.notification.common.scope.tenant;
-
-import java.util.UUID;
-
-public interface TenantScoped {
- void setTenantId(UUID tenantId);
- UUID getTenantId();
-}
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/common/scope/user/UserScope.java b/notification-service/notification/src/main/java/gr/cite/notification/common/scope/user/UserScope.java
deleted file mode 100644
index 0315f7dac..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/common/scope/user/UserScope.java
+++ /dev/null
@@ -1,34 +0,0 @@
-package gr.cite.notification.common.scope.user;
-
-import gr.cite.tools.logging.LoggerService;
-import org.slf4j.LoggerFactory;
-import org.springframework.stereotype.Component;
-import org.springframework.web.context.annotation.RequestScope;
-
-import javax.management.InvalidApplicationException;
-import java.util.UUID;
-
-@Component
-@RequestScope
-public class UserScope {
- private static final LoggerService logger = new LoggerService(LoggerFactory.getLogger(UserScope.class));
- private UUID userId = null;
-
- public Boolean isSet(){
- return this.userId != null;
- }
-
- public UUID getUserId() throws InvalidApplicationException {
- if (this.userId == null) throw new InvalidApplicationException("user not set");
- return this.userId;
- }
-
- public UUID getUserIdSafe() {
- return this.userId;
- }
-
- public void setUserId(UUID userId) {
- this.userId = userId;
- }
-}
-
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/common/types/notification/Attachment.java b/notification-service/notification/src/main/java/gr/cite/notification/common/types/notification/Attachment.java
deleted file mode 100644
index da6249e93..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/common/types/notification/Attachment.java
+++ /dev/null
@@ -1,36 +0,0 @@
-package gr.cite.notification.common.types.notification;
-
-public class Attachment {
-
- private String fileRef, fileName, mimeType;
-
- public Attachment(String fileRef, String fileName, String mimeType) {
- this.fileRef = fileRef;
- this.fileName = fileName;
- this.mimeType = mimeType;
- }
-
- public String getFileRef() {
- return fileRef;
- }
-
- public void setFileRef(String fileRef) {
- this.fileRef = fileRef;
- }
-
- public String getFileName() {
- return fileName;
- }
-
- public void setFileName(String fileName) {
- this.fileName = fileName;
- }
-
- public String getMimeType() {
- return mimeType;
- }
-
- public void setMimeType(String mimeType) {
- this.mimeType = mimeType;
- }
-}
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/common/types/notification/ContactPair.java b/notification-service/notification/src/main/java/gr/cite/notification/common/types/notification/ContactPair.java
deleted file mode 100644
index dcb9adac2..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/common/types/notification/ContactPair.java
+++ /dev/null
@@ -1,32 +0,0 @@
-package gr.cite.notification.common.types.notification;
-
-import gr.cite.notification.common.enums.ContactInfoType;
-
-public class ContactPair {
- private ContactInfoType type;
- private String contact;
-
- public ContactPair(ContactInfoType type, String contact) {
- this.type = type;
- this.contact = contact;
- }
-
- public ContactPair() {
- }
-
- public ContactInfoType getType() {
- return type;
- }
-
- public void setType(ContactInfoType type) {
- this.type = type;
- }
-
- public String getContact() {
- return contact;
- }
-
- public void setContact(String contact) {
- this.contact = contact;
- }
-}
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/common/types/notification/FieldInfo.java b/notification-service/notification/src/main/java/gr/cite/notification/common/types/notification/FieldInfo.java
deleted file mode 100644
index 2170ae554..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/common/types/notification/FieldInfo.java
+++ /dev/null
@@ -1,45 +0,0 @@
-package gr.cite.notification.common.types.notification;
-
-import gr.cite.notification.common.enums.NotificationDataType;
-
-public class FieldInfo {
- private String key;
- public static final String _key = "key";
- private NotificationDataType type;
- public static final String _type = "type";
- private String value;
- public static final String _value = "value";
-
- public FieldInfo(String key, NotificationDataType type, String value) {
- this.key = key;
- this.type = type;
- this.value = value;
- }
-
- public FieldInfo() {
- }
-
- public String getKey() {
- return key;
- }
-
- public void setKey(String key) {
- this.key = key;
- }
-
- public NotificationDataType getType() {
- return type;
- }
-
- public void setType(NotificationDataType type) {
- this.type = type;
- }
-
- public String getValue() {
- return value;
- }
-
- public void setValue(String value) {
- this.value = value;
- }
-}
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/common/types/notification/InAppTrackingData.java b/notification-service/notification/src/main/java/gr/cite/notification/common/types/notification/InAppTrackingData.java
deleted file mode 100644
index aeb1eb989..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/common/types/notification/InAppTrackingData.java
+++ /dev/null
@@ -1,38 +0,0 @@
-package gr.cite.notification.common.types.notification;
-
-import java.util.List;
-import java.util.UUID;
-
-public class InAppTrackingData {
-
- private UUID inAppNotificationId;
- private List traces;
-
- public InAppTrackingData() {
- }
-
- public InAppTrackingData(UUID inAppNotificationId) {
- this.inAppNotificationId = inAppNotificationId;
- }
-
- public InAppTrackingData(UUID inAppNotificationId, List traces) {
- this.inAppNotificationId = inAppNotificationId;
- this.traces = traces;
- }
-
- public UUID getInAppNotificationId() {
- return inAppNotificationId;
- }
-
- public void setInAppNotificationId(UUID inAppNotificationId) {
- this.inAppNotificationId = inAppNotificationId;
- }
-
- public List getTraces() {
- return traces;
- }
-
- public void setTraces(List traces) {
- this.traces = traces;
- }
-}
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/common/types/notification/NotificationContactData.java b/notification-service/notification/src/main/java/gr/cite/notification/common/types/notification/NotificationContactData.java
deleted file mode 100644
index b781a8c82..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/common/types/notification/NotificationContactData.java
+++ /dev/null
@@ -1,42 +0,0 @@
-package gr.cite.notification.common.types.notification;
-
-import java.util.List;
-
-public class NotificationContactData {
- private List contacts;
- private List bcc;
- private List cc;
-
- public NotificationContactData() {
- }
-
- public NotificationContactData(List contacts, List bcc, List cc) {
- this.contacts = contacts;
- this.bcc = bcc;
- this.cc = cc;
- }
-
- public List getContacts() {
- return contacts;
- }
-
- public void setContacts(List contacts) {
- this.contacts = contacts;
- }
-
- public List getBcc() {
- return bcc;
- }
-
- public void setBcc(List bcc) {
- this.bcc = bcc;
- }
-
- public List getCc() {
- return cc;
- }
-
- public void setCc(List cc) {
- this.cc = cc;
- }
-}
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/common/types/notification/NotificationFieldData.java b/notification-service/notification/src/main/java/gr/cite/notification/common/types/notification/NotificationFieldData.java
deleted file mode 100644
index 7e8dde5a6..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/common/types/notification/NotificationFieldData.java
+++ /dev/null
@@ -1,32 +0,0 @@
-package gr.cite.notification.common.types.notification;
-
-import java.util.List;
-
-public class NotificationFieldData {
- private List fields;
- private List attachments;
-
- public NotificationFieldData(List fields, List attachments) {
- this.fields = fields;
- this.attachments = attachments;
- }
-
- public NotificationFieldData() {
- }
-
- public List getFields() {
- return fields;
- }
-
- public void setFields(List fields) {
- this.fields = fields;
- }
-
- public List getAttachments() {
- return attachments;
- }
-
- public void setAttachments(List attachments) {
- this.attachments = attachments;
- }
-}
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/common/types/notification/RouteTrackingData.java b/notification-service/notification/src/main/java/gr/cite/notification/common/types/notification/RouteTrackingData.java
deleted file mode 100644
index 06c52701d..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/common/types/notification/RouteTrackingData.java
+++ /dev/null
@@ -1,30 +0,0 @@
-package gr.cite.notification.common.types.notification;
-
-import java.util.List;
-
-public class RouteTrackingData {
-
- private String trackingId;
- private List traces;
-
- public RouteTrackingData(String trackingId, List traces) {
- this.trackingId = trackingId;
- this.traces = traces;
- }
-
- public String getTrackingId() {
- return trackingId;
- }
-
- public void setTrackingId(String trackingId) {
- this.trackingId = trackingId;
- }
-
- public List getTraces() {
- return traces;
- }
-
- public void setTraces(List traces) {
- this.traces = traces;
- }
-}
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/common/types/notification/TrackingTrace.java b/notification-service/notification/src/main/java/gr/cite/notification/common/types/notification/TrackingTrace.java
deleted file mode 100644
index b3bffba06..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/common/types/notification/TrackingTrace.java
+++ /dev/null
@@ -1,33 +0,0 @@
-package gr.cite.notification.common.types.notification;
-
-import java.time.Instant;
-
-public class TrackingTrace {
-
- private Instant at;
- private String data;
-
- public TrackingTrace() {
- }
-
- public TrackingTrace(Instant at, String data) {
- this.at = at;
- this.data = data;
- }
-
- public Instant getAt() {
- return at;
- }
-
- public void setAt(Instant at) {
- this.at = at;
- }
-
- public String getData() {
- return data;
- }
-
- public void setData(String data) {
- this.data = data;
- }
-}
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/common/types/notificationtemplate/FieldInfoEntity.java b/notification-service/notification/src/main/java/gr/cite/notification/common/types/notificationtemplate/FieldInfoEntity.java
deleted file mode 100644
index 90afc8a87..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/common/types/notificationtemplate/FieldInfoEntity.java
+++ /dev/null
@@ -1,42 +0,0 @@
-package gr.cite.notification.common.types.notificationtemplate;
-
-import gr.cite.notification.common.enums.NotificationDataType;
-
-public class FieldInfoEntity {
- private String key;
- private NotificationDataType type;
- private String value;
-
- public FieldInfoEntity(String key, NotificationDataType type, String value) {
- this.key = key;
- this.type = type;
- this.value = value;
- }
-
- public FieldInfoEntity() {
- }
-
- public String getKey() {
- return key;
- }
-
- public void setKey(String key) {
- this.key = key;
- }
-
- public NotificationDataType getType() {
- return type;
- }
-
- public void setType(NotificationDataType type) {
- this.type = type;
- }
-
- public String getValue() {
- return value;
- }
-
- public void setValue(String value) {
- this.value = value;
- }
-}
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/common/types/notificationtemplate/FieldOptionsEntity.java b/notification-service/notification/src/main/java/gr/cite/notification/common/types/notificationtemplate/FieldOptionsEntity.java
deleted file mode 100644
index 15b24149f..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/common/types/notificationtemplate/FieldOptionsEntity.java
+++ /dev/null
@@ -1,38 +0,0 @@
-package gr.cite.notification.common.types.notificationtemplate;
-
-
-import java.util.List;
-import java.util.Map;
-
-public class FieldOptionsEntity {
-
- private List mandatory;
-
- private List optional;
-
- private Map formatting;
-
- public List getMandatory() {
- return mandatory;
- }
-
- public void setMandatory(List mandatory) {
- this.mandatory = mandatory;
- }
-
- public List getOptional() {
- return optional;
- }
-
- public void setOptional(List optional) {
- this.optional = optional;
- }
-
- public Map getFormatting() {
- return formatting;
- }
-
- public void setFormatting(Map formatting) {
- this.formatting = formatting;
- }
-}
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/common/types/notificationtemplate/NotificationTemplateValueEntity.java b/notification-service/notification/src/main/java/gr/cite/notification/common/types/notificationtemplate/NotificationTemplateValueEntity.java
deleted file mode 100644
index 698bfbcd8..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/common/types/notificationtemplate/NotificationTemplateValueEntity.java
+++ /dev/null
@@ -1,126 +0,0 @@
-package gr.cite.notification.common.types.notificationtemplate;
-
-import gr.cite.notification.common.enums.EmailOverrideMode;
-
-import java.util.List;
-
-public class NotificationTemplateValueEntity {
-
- private String subjectText;
- private String subjectKey;
- private FieldOptionsEntity subjectFieldOptions;
- private String bodyText;
- private String bodyKey;
- private String priorityKey;
- private Boolean allowAttachments;
- private List cc;
- private EmailOverrideMode ccMode;
- private List bcc;
- private EmailOverrideMode bccMode;
- private List extraDataKeys;
- private FieldOptionsEntity bodyFieldOptions;
-
- public String getSubjectText() {
- return subjectText;
- }
-
- public void setSubjectText(String subjectText) {
- this.subjectText = subjectText;
- }
-
- public String getSubjectKey() {
- return subjectKey;
- }
-
- public void setSubjectKey(String subjectKey) {
- this.subjectKey = subjectKey;
- }
-
- public FieldOptionsEntity getSubjectFieldOptions() {
- return subjectFieldOptions;
- }
-
- public void setSubjectFieldOptions(FieldOptionsEntity subjectFieldOptions) {
- this.subjectFieldOptions = subjectFieldOptions;
- }
-
- public String getBodyText() {
- return bodyText;
- }
-
- public void setBodyText(String bodyText) {
- this.bodyText = bodyText;
- }
-
- public String getBodyKey() {
- return bodyKey;
- }
-
- public void setBodyKey(String bodyKey) {
- this.bodyKey = bodyKey;
- }
-
- public String getPriorityKey() {
- return priorityKey;
- }
-
- public void setPriorityKey(String priorityKey) {
- this.priorityKey = priorityKey;
- }
-
- public Boolean getAllowAttachments() {
- return allowAttachments;
- }
-
- public void setAllowAttachments(Boolean allowAttachments) {
- this.allowAttachments = allowAttachments;
- }
-
- public List getCc() {
- return cc;
- }
-
- public void setCc(List cc) {
- this.cc = cc;
- }
-
- public EmailOverrideMode getCcMode() {
- return ccMode;
- }
-
- public void setCcMode(EmailOverrideMode ccMode) {
- this.ccMode = ccMode;
- }
-
- public List getBcc() {
- return bcc;
- }
-
- public void setBcc(List bcc) {
- this.bcc = bcc;
- }
-
- public EmailOverrideMode getBccMode() {
- return bccMode;
- }
-
- public void setBccMode(EmailOverrideMode bccMode) {
- this.bccMode = bccMode;
- }
-
- public List getExtraDataKeys() {
- return extraDataKeys;
- }
-
- public void setExtraDataKeys(List extraDataKeys) {
- this.extraDataKeys = extraDataKeys;
- }
-
- public FieldOptionsEntity getBodyFieldOptions() {
- return bodyFieldOptions;
- }
-
- public void setBodyFieldOptions(FieldOptionsEntity bodyFieldOptions) {
- this.bodyFieldOptions = bodyFieldOptions;
- }
-}
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/common/types/tenantconfiguration/DefaultUserLocaleTenantConfigurationEntity.java b/notification-service/notification/src/main/java/gr/cite/notification/common/types/tenantconfiguration/DefaultUserLocaleTenantConfigurationEntity.java
deleted file mode 100644
index 6e6f29251..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/common/types/tenantconfiguration/DefaultUserLocaleTenantConfigurationEntity.java
+++ /dev/null
@@ -1,32 +0,0 @@
-package gr.cite.notification.common.types.tenantconfiguration;
-
-public class DefaultUserLocaleTenantConfigurationEntity {
- private String timezone;
- private String language;
- private String culture;
-
- public String getTimezone() {
- return timezone;
- }
-
- public void setTimezone(String timezone) {
- this.timezone = timezone;
- }
-
- public String getLanguage() {
- return language;
- }
-
- public void setLanguage(String language) {
- this.language = language;
- }
-
- public String getCulture() {
- return culture;
- }
-
- public void setCulture(String culture) {
- this.culture = culture;
- }
-}
-
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/common/types/tenantconfiguration/NotifierListTenantConfigurationEntity.java b/notification-service/notification/src/main/java/gr/cite/notification/common/types/tenantconfiguration/NotifierListTenantConfigurationEntity.java
deleted file mode 100644
index f98090688..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/common/types/tenantconfiguration/NotifierListTenantConfigurationEntity.java
+++ /dev/null
@@ -1,27 +0,0 @@
-package gr.cite.notification.common.types.tenantconfiguration;
-
-import gr.cite.notification.common.enums.NotificationContactType;
-
-import java.util.List;
-import java.util.Map;
-import java.util.UUID;
-
-public class NotifierListTenantConfigurationEntity {
-
- private Map> notifiers;
-
- public NotifierListTenantConfigurationEntity() {
- }
-
- public NotifierListTenantConfigurationEntity(Map> notifiers) {
- this.notifiers = notifiers;
- }
-
- public Map> getNotifiers() {
- return notifiers;
- }
-
- public void setNotifiers(Map> notifiers) {
- this.notifiers = notifiers;
- }
-}
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/common/types/user/AdditionalInfoEntity.java b/notification-service/notification/src/main/java/gr/cite/notification/common/types/user/AdditionalInfoEntity.java
deleted file mode 100644
index efdc268bd..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/common/types/user/AdditionalInfoEntity.java
+++ /dev/null
@@ -1,34 +0,0 @@
-package gr.cite.notification.common.types.user;
-
-import java.util.UUID;
-
-public class AdditionalInfoEntity {
- private String timezone;
- private String culture;
- private String language;
-
- public String getTimezone() {
- return timezone;
- }
-
- public void setTimezone(String timezone) {
- this.timezone = timezone;
- }
-
- public String getCulture() {
- return culture;
- }
-
- public void setCulture(String culture) {
- this.culture = culture;
- }
-
- public String getLanguage() {
- return language;
- }
-
- public void setLanguage(String language) {
- this.language = language;
- }
-
-}
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/common/types/xml/XmlBuilder.java b/notification-service/notification/src/main/java/gr/cite/notification/common/types/xml/XmlBuilder.java
deleted file mode 100644
index 356bbd0a1..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/common/types/xml/XmlBuilder.java
+++ /dev/null
@@ -1,87 +0,0 @@
-package gr.cite.notification.common.types.xml;
-
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-import org.w3c.dom.Node;
-import org.w3c.dom.NodeList;
-import org.xml.sax.InputSource;
-import org.xml.sax.SAXException;
-
-import javax.xml.parsers.DocumentBuilder;
-import javax.xml.parsers.DocumentBuilderFactory;
-import javax.xml.parsers.ParserConfigurationException;
-import javax.xml.transform.OutputKeys;
-import javax.xml.transform.Transformer;
-import javax.xml.transform.TransformerException;
-import javax.xml.transform.TransformerFactory;
-import javax.xml.transform.dom.DOMSource;
-import javax.xml.transform.stream.StreamResult;
-import java.io.IOException;
-import java.io.StringReader;
-import java.io.StringWriter;
-
-
-public class XmlBuilder {
- private static final Logger logger = LoggerFactory.getLogger(XmlBuilder.class);
-
- public static Document getDocument() {
- DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();
- DocumentBuilder docBuilder;
- try {
- docBuilder = docFactory.newDocumentBuilder();
- Document doc = docBuilder.newDocument();
- return doc;
- } catch (ParserConfigurationException e) {
- // TODO Auto-generated catch block
- logger.error(e.getMessage(), e);
- return null;
- }
- }
-
- public static String generateXml(Document doc) {
- TransformerFactory tFact = TransformerFactory.newInstance();
- Transformer trans;
- try {
- trans = tFact.newTransformer();
- StringWriter writer = new StringWriter();
- StreamResult result = new StreamResult(writer);
- DOMSource source = new DOMSource(doc);
- trans.setOutputProperty(OutputKeys.INDENT, "yes");
- trans.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "2");
- trans.transform(source, result);
- return writer.toString();
- } catch (TransformerException e) {
- // TODO Auto-generated catch block
- logger.error(e.getMessage(), e);
- return null;
- }
- }
-
- public static Document fromXml(String xml) {
- DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();
- DocumentBuilder docBuilder;
- try {
- docBuilder = docFactory.newDocumentBuilder();
- InputSource inputStream = new InputSource(new StringReader(xml));
- Document doc = docBuilder.parse(inputStream);
- return doc;
- } catch (ParserConfigurationException | SAXException | IOException e) {
- // TODO Auto-generated catch block
- logger.error(e.getMessage(), e);
- return null;
- }
- }
-
-
- public static Element getNodeFromListByTagName(NodeList list, String tagName) {
- for (int temp = 0; temp < list.getLength(); temp++) {
- Node element = list.item(temp);
- if (element.getNodeType() == Node.ELEMENT_NODE) {
- if (element.getNodeName().equals(tagName)) return (Element) element;
- }
- }
- return null;
- }
-}
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/common/types/xml/XmlSerializable.java b/notification-service/notification/src/main/java/gr/cite/notification/common/types/xml/XmlSerializable.java
deleted file mode 100644
index 8a9d2bc7c..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/common/types/xml/XmlSerializable.java
+++ /dev/null
@@ -1,11 +0,0 @@
-package gr.cite.notification.common.types.xml;
-
-
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-
-public interface XmlSerializable {
- Element toXml(Document doc);
-
- T fromXml(Element item);
-}
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/common/validation/BaseValidator.java b/notification-service/notification/src/main/java/gr/cite/notification/common/validation/BaseValidator.java
deleted file mode 100644
index 97f72042a..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/common/validation/BaseValidator.java
+++ /dev/null
@@ -1,63 +0,0 @@
-package gr.cite.notification.common.validation;
-
-import gr.cite.notification.convention.ConventionService;
-import gr.cite.notification.errorcode.ErrorThesaurusProperties;
-import gr.cite.tools.exception.MyValidationException;
-import gr.cite.tools.validation.AbstractValidator;
-import gr.cite.tools.validation.ValidationResult;
-
-import java.util.Collection;
-import java.util.List;
-import java.util.Map;
-import java.util.UUID;
-
-public abstract class BaseValidator extends AbstractValidator {
- protected final ConventionService conventionService;
- protected final ErrorThesaurusProperties errors;
-
- protected BaseValidator(ConventionService conventionService, ErrorThesaurusProperties errors) {
- this.conventionService = conventionService;
- this.errors = errors;
- }
-
- @Override
- public void validateForce(Object target) {
- this.validate(target);
- ValidationResult result = result();
- if (!result.isValid()) {
- List>> errorsMap = this.flattenValidationResult();
- throw new MyValidationException(this.errors.getModelValidation().getCode(), errorsMap);
- }
- }
-
- protected Boolean isValidGuid(UUID guid) {
- return this.conventionService.isValidGuid(guid);
- }
-
- protected Boolean isValidHash(String hash) {
- return this.conventionService.isValidHash(hash);
- }
-
- protected Boolean isEmpty(String value) {
- return this.conventionService.isNullOrEmpty(value);
- }
- protected Boolean isListNullOrEmpty(List> value) {
- return this.conventionService.isListNullOrEmpty(value);
- }
- protected Boolean isNull(Object value) {
- return value == null;
- }
-
- protected Boolean isNull(Collection> value) {
- return value == null;
- }
-
- protected Boolean lessEqualLength(String value, int size) {
- return value.length() <= size;
- }
-
- protected Boolean lessEqual(Integer value, int target) {
- return value <= target;
- }
-}
-
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/config/notification/NotificationConfig.java b/notification-service/notification/src/main/java/gr/cite/notification/config/notification/NotificationConfig.java
deleted file mode 100644
index c6af9e3bb..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/config/notification/NotificationConfig.java
+++ /dev/null
@@ -1,80 +0,0 @@
-package gr.cite.notification.config.notification;
-
-import gr.cite.notification.common.enums.NotificationContactType;
-import gr.cite.notification.schedule.NotificationScheduleTask;
-import gr.cite.notification.service.message.common.MessageBuilderBase;
-import gr.cite.notification.service.notificationscheduling.NotificationSchedulingService;
-import gr.cite.notification.service.notificationscheduling.NotificationSchedulingServiceImpl;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
-import org.springframework.boot.context.properties.EnableConfigurationProperties;
-import org.springframework.context.ApplicationContext;
-import org.springframework.context.annotation.Bean;
-import org.springframework.context.annotation.Configuration;
-
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Map;
-import java.util.UUID;
-import java.util.stream.Collectors;
-
-@Configuration
-@EnableConfigurationProperties(NotificationProperties.class)
-public class NotificationConfig {
-
- public static class BeanQualifier {
- public static final String GLOBAL_POLICIES_MAP = "globalPoliciesMap";
- public static final String FLOW_MAP = "flowMap";
- public static final String STATIC_FIELD_LIST = "staticFieldList";
- public static final String CIPHER_FIELDS = "cipherFields";
-
- }
- private final ApplicationContext applicationContext;
- private final NotificationProperties properties;
-
- @Autowired
- public NotificationConfig(ApplicationContext applicationContext, NotificationProperties properties) {
- this.applicationContext = applicationContext;
- this.properties = properties;
- }
-
- @Bean(BeanQualifier.GLOBAL_POLICIES_MAP)
- public Map> getGlobalPoliciesMap() {
- return properties.getResolver().getGlobalPolicies().stream()
- .collect(Collectors.toMap(NotificationProperties.Resolver.GlobalPolicy::getType,
- NotificationProperties.Resolver.GlobalPolicy::getContacts));
- }
-
- @Bean(BeanQualifier.FLOW_MAP)
- public Map> getFlowMap() {
- return properties.getMessage().entrySet().stream()
- .collect(Collectors.toMap(Map.Entry::getKey,
- stringTemplateEntry -> stringTemplateEntry.getValue().getFlows()
- .stream().collect(Collectors.toMap(NotificationProperties.Flow::getKey, flow -> flow))));
- }
-
- @Bean(BeanQualifier.STATIC_FIELD_LIST)
- public List getStaticFieldList() {
- return properties.getStaticFields() != null && properties.getStaticFields()
- .getFields() != null ? new ArrayList<>(properties.getStaticFields()
- .getFields()) : new ArrayList<>();
- }
-
- @Bean(BeanQualifier.CIPHER_FIELDS)
- public Map getFieldCiphers() {
- return properties.getMessage().values().stream().flatMap(template -> template.getFlows().stream())
- .filter(flow -> flow.getCipherFields() != null && !flow.getCipherFields().isEmpty())
- .collect(Collectors.toMap(NotificationProperties.Flow::getKey, flow -> new MessageBuilderBase.FieldCiphering(flow.getCipherFields())));
- }
-
- @Bean
- public NotificationSchedulingService notificationSchedulingService() {
- return new NotificationSchedulingServiceImpl(this.applicationContext, this.properties);
- }
-
- @Bean
- @ConditionalOnProperty(name = "notification.task.processor.enable", havingValue = "true")
- public NotificationScheduleTask notificationScheduleTask() {
- return new NotificationScheduleTask(this.applicationContext, this.properties);
- }
-}
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/config/notification/NotificationProperties.java b/notification-service/notification/src/main/java/gr/cite/notification/config/notification/NotificationProperties.java
deleted file mode 100644
index 1e963fcd7..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/config/notification/NotificationProperties.java
+++ /dev/null
@@ -1,385 +0,0 @@
-package gr.cite.notification.config.notification;
-
-import gr.cite.notification.common.enums.EmailOverrideMode;
-import gr.cite.notification.common.enums.NotificationContactType;
-import gr.cite.notification.common.types.notification.FieldInfo;
-import org.springframework.boot.context.properties.ConfigurationProperties;
-
-import java.util.List;
-import java.util.Map;
-import java.util.UUID;
-
-@ConfigurationProperties(prefix = "notification")
-public class NotificationProperties {
-
- private final Task task;
-
- private final Resolver resolver;
-
- private final Map message;
-
- private final Template overrideCache;
-
- private final StaticFieldItems staticFields;
-
- public NotificationProperties(Task task, Resolver resolver, Map message, Template overrideCache, StaticFieldItems staticFields) {
- this.task = task;
- this.resolver = resolver;
- this.message = message;
- this.overrideCache = overrideCache;
- this.staticFields = staticFields;
- }
-
- public Task getTask() {
- return task;
- }
-
- public Resolver getResolver() {
- return resolver;
- }
-
- public Map getMessage() {
- return message;
- }
-
- public Template getOverrideCache() {
- return overrideCache;
- }
-
- public StaticFieldItems getStaticFields() {
- return staticFields;
- }
-
- public static class Task {
-
- private final Processor processor;
-
- public Task(Processor processor) {
- this.processor = processor;
- }
-
- public Processor getProcessor() {
- return processor;
- }
-
- public static class Processor {
-
- private final Boolean enable;
-
- private final Long intervalSeconds;
-
- private final Options options;
-
- private final List overrides;
-
- public Processor(Boolean enable, Long intervalSeconds, Options options, List overrides) {
- this.enable = enable;
- this.intervalSeconds = intervalSeconds;
- this.options = options;
- this.overrides = overrides;
- }
-
- public Boolean getEnable() {
- return enable;
- }
-
- public Long getIntervalSeconds() {
- return intervalSeconds;
- }
-
- public Options getOptions() {
- return options;
- }
-
- public List getOverrides() {
- return overrides;
- }
-
- public static class Options {
-
- private final Long retryThreshold;
-
- private final Long maxRetryDelaySeconds;
-
- private final Long tooOldToSendSeconds;
-
- private final Long tooOldToTrackSeconds;
-
- public Options(Long retryThreshold, Long maxRetryDelaySeconds, Long tooOldToSendSeconds, Long tooOldToTrackSeconds) {
- this.retryThreshold = retryThreshold;
- this.maxRetryDelaySeconds = maxRetryDelaySeconds;
- this.tooOldToSendSeconds = tooOldToSendSeconds;
- this.tooOldToTrackSeconds = tooOldToTrackSeconds;
- }
-
- public Long getRetryThreshold() {
- return retryThreshold;
- }
-
- public Long getMaxRetryDelaySeconds() {
- return maxRetryDelaySeconds;
- }
-
- public Long getTooOldToSendSeconds() {
- return tooOldToSendSeconds;
- }
-
- public Long getTooOldToTrackSeconds() {
- return tooOldToTrackSeconds;
- }
- }
- }
- }
-
- public static class Resolver {
-
- private final List globalPolicies;
-
- public Resolver(List globalPolicies) {
- this.globalPolicies = globalPolicies;
- }
-
- public List getGlobalPolicies() {
- return globalPolicies;
- }
-
- public static class GlobalPolicy {
-
- private final UUID type;
-
- private final List contacts;
-
- public GlobalPolicy(UUID type, List contacts) {
- this.type = type;
- this.contacts = contacts;
- }
-
- public UUID getType() {
- return type;
- }
-
- public List getContacts() {
- return contacts;
- }
- }
- }
-
- public static class Template {
-
- private final TemplateCache templateCache;
-
- private final List flows;
-
- public Template(TemplateCache templateCache, List flows) {
- this.templateCache = templateCache;
- this.flows = flows;
- }
-
- public TemplateCache getTemplateCache() {
- return templateCache;
- }
-
- public List getFlows() {
- return flows;
- }
-
- public static class TemplateCache {
-
- private final String prefix;
-
- private final String keyPattern;
-
- public TemplateCache(String prefix, String keyPattern) {
- this.prefix = prefix;
- this.keyPattern = keyPattern;
- }
-
- public String getPrefix() {
- return prefix;
- }
-
- public String getKeyPattern() {
- return keyPattern;
- }
- }
- }
-
- public static class StaticFieldItems {
-
- private final List Fields;
-
- public StaticFieldItems(List fields) {
- Fields = fields;
- }
-
- public List getFields() {
- return Fields;
- }
- }
-
- public static class Field {
-
- private final String key;
-
- private final String type;
-
- private final String value;
-
- public Field(String key, String type, String value) {
- this.key = key;
- this.type = type;
- this.value = value;
- }
-
- public String getKey() {
- return key;
- }
-
- public String getType() {
- return type;
- }
-
- public String getValue() {
- return value;
- }
- }
-
- public static class Flow {
-
- private final UUID key;
-
- private final String subjectPath;
-
- private final String subjectKey;
-
- private final FieldOption subjectFieldOptions;
-
- private final String bodyPath;
-
- private final String bodyKey;
-
- private final FieldOption bodyFieldOptions;
-
- private final List cc;
-
- private final EmailOverrideMode ccMode;
-
- private final List bcc;
-
- private final EmailOverrideMode bccMode;
-
- private final Boolean allowAttachments;
-
- private final List cipherFields;
-
- private final String priorityKey;
-
- private final List extraDataKeys;
-
- public Flow(UUID key, String subjectPath, String subjectKey, FieldOption subjectFieldOptions, String bodyPath, String bodyKey, FieldOption bodyFieldOptions, List cc, EmailOverrideMode ccMode, List bcc, EmailOverrideMode bccMode, Boolean allowAttachments, List cipherFields, String priorityKey, List extraDataKeys) {
- this.key = key;
- this.subjectPath = subjectPath;
- this.subjectKey = subjectKey;
- this.subjectFieldOptions = subjectFieldOptions;
- this.bodyPath = bodyPath;
- this.bodyKey = bodyKey;
- this.bodyFieldOptions = bodyFieldOptions;
- this.cc = cc;
- this.ccMode = ccMode;
- this.bcc = bcc;
- this.bccMode = bccMode;
- this.allowAttachments = allowAttachments;
- this.cipherFields = cipherFields;
- this.priorityKey = priorityKey;
- this.extraDataKeys = extraDataKeys;
- }
-
- public UUID getKey() {
- return key;
- }
-
- public String getSubjectPath() {
- return subjectPath;
- }
-
- public String getSubjectKey() {
- return subjectKey;
- }
-
- public FieldOption getSubjectFieldOptions() {
- return subjectFieldOptions;
- }
-
- public String getBodyPath() {
- return bodyPath;
- }
-
- public String getBodyKey() {
- return bodyKey;
- }
-
- public FieldOption getBodyFieldOptions() {
- return bodyFieldOptions;
- }
-
- public List getCc() {
- return cc;
- }
-
- public EmailOverrideMode getCcMode() {
- return ccMode;
- }
-
- public List getBcc() {
- return bcc;
- }
-
- public EmailOverrideMode getBccMode() {
- return bccMode;
- }
-
- public Boolean getAllowAttachments() {
- return allowAttachments;
- }
-
- public List getCipherFields() {
- return cipherFields;
- }
-
- public String getPriorityKey() {
- return priorityKey;
- }
-
- public List getExtraDataKeys() {
- return extraDataKeys;
- }
-
- public static class FieldOption {
-
- private final List mandatory;
-
- private final List optional;
-
- private final Map formatting;
-
- public FieldOption(List mandatory, List optional, Map formatting) {
- this.mandatory = mandatory;
- this.optional = optional;
- this.formatting = formatting;
- }
-
- public List getMandatory() {
- return mandatory;
- }
-
- public List getOptional() {
- return optional;
- }
-
- public Map getFormatting() {
- return formatting;
- }
-
- }
- }
-}
diff --git a/notification-service/notification/src/main/java/gr/cite/notification/convention/ConventionService.java b/notification-service/notification/src/main/java/gr/cite/notification/convention/ConventionService.java
deleted file mode 100644
index cfc2c3a02..000000000
--- a/notification-service/notification/src/main/java/gr/cite/notification/convention/ConventionService.java
+++ /dev/null
@@ -1,41 +0,0 @@
-package gr.cite.notification.convention;
-
-import gr.cite.tools.exception.MyApplicationException;
-
-import java.util.List;
-import java.util.Map;
-import java.util.UUID;
-import java.util.function.Function;
-
-public interface ConventionService {
- Boolean isValidId(Integer id);
-
- Boolean isValidGuid(UUID guid);
-
- Boolean isValidUUID(String str);
- UUID parseUUIDSafe(String str);
-
- Boolean isValidHash(String hash);
-
- String hashValue(Object value) throws MyApplicationException;
-
- String limit(String text, int maxLength);
-
- String truncate(String text, int maxLength);
-
- UUID getEmptyUUID();
-
- boolean isNullOrEmpty(String value);
-
- boolean isListNullOrEmpty(List value);
-
- String stringEmpty();
-
- String asPrefix(String name);
-
- String asIndexerPrefix(String part);
-
- String asIndexer(String... names);
-
- Map