-
Notifications
You must be signed in to change notification settings - Fork 209
[backend] feat(multitenancy): adding builtin connectors for new tenants (#3505) #5633
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
corinnekrych
merged 37 commits into
release/current
from
issue/3505_add_builtin_connectors_2
May 15, 2026
+1,576
−662
Merged
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
1c0dba8
[backend] feat(multitenancy): adding builtin connectors for new tenan…
Dimfacion f1a30df
[backend] feat(multitenancy): adding builtin connectors for new tenan…
Dimfacion 2b5bb8c
[backend] feat(multitenancy): adding builtin connectors for new tenan…
Dimfacion 1482cad
[backend] feat(multitenancy): adding builtin connectors for new tenan…
Dimfacion 0457b8d
[backend] feat(multitenancy): adding builtin connectors for new tenan…
Dimfacion da5aeec
[backend] feat(multitenancy): adding builtin connectors for new tenan…
Dimfacion d5b3e5b
[backend] feat(multitenancy): adding builtin connectors for new tenan…
Dimfacion e5d2c53
[backend] feat(multitenancy): adding builtin connectors for new tenan…
Dimfacion 4a972dc
[backend] feat(multitenancy): adding builtin connectors for new tenan…
Dimfacion bda6f67
[backend] feat(multitenancy): adding builtin connectors for new tenan…
Dimfacion d038e19
[backend] feat(multitenancy): adding builtin connectors for new tenan…
Dimfacion eddff7b
[backend] feat(multitenancy): adding builtin connectors for new tenan…
Dimfacion a1edc77
[backend] feat(multitenancy): adding builtin connectors for new tenan…
Dimfacion 6cb973a
[backend] feat(multitenancy): adding builtin connectors for new tenan…
Dimfacion e345b2c
[backend] feat(multitenancy): adding builtin connectors for new tenan…
Dimfacion 83ea8ef
[backend] feat(multitenancy): adding builtin connectors for new tenan…
Dimfacion d6a1806
[backend] feat(multitenancy): adding builtin connectors for new tenan…
Dimfacion 683a1bf
[backend] feat(multitenancy): adding builtin connectors for new tenan…
Dimfacion bd621fb
[backend] feat(multitenancy): adding builtin connectors for new tenan…
Dimfacion 80ebfcb
[backend] feat(multitenancy): adding builtin connectors for new tenan…
Dimfacion 799ee77
[backend] feat(multitenancy): adding builtin connectors for new tenan…
Dimfacion e07c67f
[backend] feat(multitenancy): adding builtin connectors for new tenan…
Dimfacion b8895af
[backend] feat(multitenancy): adding builtin connectors for new tenan…
Dimfacion 8e1888e
[backend] feat(multitenancy): adding builtin connectors for new tenan…
Dimfacion 3cb5d25
Merge branch 'release/current' into issue/3505_add_builtin_connectors_2
corinnekrych 68d23b1
[backend] fix(multi-tenancy): fix register built-in in startup path
corinnekrych edf769b
Merge branch 'release/current' into issue/3505_add_builtin_connectors_2
corinnekrych 1b5be69
[backend] fix(multi-tenancy): fix duplicate item in list
corinnekrych ca39959
[backend] fix(multi-tenancy): fix duplicate item in list
corinnekrych 76febd9
Merge branch 'release/current' into issue/3505_add_builtin_connectors_2
corinnekrych 8253321
[backend] fix(multi-tenancy): failing test
corinnekrych 50bd7be
Merge branch 'release/current' into issue/3505_add_builtin_connectors_2
corinnekrych b27bb16
[backend] fix(multi-tenancy): failing test
corinnekrych 2a9809a
Merge branch 'release/current' into issue/3505_add_builtin_connectors_2
corinnekrych bb0fe2f
Merge branch 'issue/3505_add_builtin_connectors_2' of github-filigran…
corinnekrych d2a7cce
[backend] fix(multi-tenancy): failing test
corinnekrych 7338c21
Merge branch 'release/current' into issue/3505_add_builtin_connectors_2
corinnekrych File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
openaev-api/src/main/java/io/openaev/integration/BuiltinIntegrationFactory.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| package io.openaev.integration; | ||
|
|
||
| import io.openaev.authorisation.HttpClientFactory; | ||
| import io.openaev.service.catalog_connectors.CatalogConnectorService; | ||
| import io.openaev.service.connector_instances.ConnectorInstanceService; | ||
|
|
||
| /** | ||
| * Base class for built-in integration factories whose connectors must be registered for every | ||
| * tenant. Subclasses implement {@link #registerConnectorForTenant()} which contains only the | ||
| * DB-registration logic (the same calls that {@code innerStart()} does on the {@link Integration} | ||
| * side), without creating in-memory executor objects. | ||
| * | ||
| * <p>{@link ManagerFactory} discovers all {@link BuiltinTenantRegistrable} beans and calls {@link | ||
| * #registerForTenant()} once per new tenant after switching the tenant context. | ||
| */ | ||
| public abstract class BuiltinIntegrationFactory extends IntegrationFactory | ||
| implements BuiltinTenantRegistrable { | ||
|
|
||
| protected BuiltinIntegrationFactory( | ||
| ConnectorInstanceService connectorInstanceService, | ||
| CatalogConnectorService catalogConnectorService, | ||
| HttpClientFactory httpClientFactory) { | ||
| super(connectorInstanceService, catalogConnectorService, httpClientFactory); | ||
| } | ||
|
|
||
| /** | ||
| * Registers the built-in connector (injector / executor) in the <b>current</b> tenant context. | ||
| * Must be idempotent — safe to call even if the connector already exists (upsert semantics). | ||
| */ | ||
| public abstract void registerConnectorForTenant() throws Exception; | ||
|
|
||
| @Override | ||
| public void registerForTenant() throws Exception { | ||
| registerConnectorForTenant(); | ||
| } | ||
| } |
15 changes: 15 additions & 0 deletions
15
openaev-api/src/main/java/io/openaev/integration/BuiltinTenantRegistrable.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| package io.openaev.integration; | ||
|
|
||
| /** | ||
| * Marker interface for any built-in component (injector, executor, collector) that must be | ||
| * registered once per tenant. Implementations are auto-discovered by {@link ManagerFactory} via | ||
| * Spring injection, so adding a new built-in component requires only implementing this interface on | ||
| * a {@code @Service} bean — no manual wiring in {@code ManagerFactory}. | ||
| * | ||
| * <p>Must be idempotent — safe to call even if the component already exists (upsert semantics). | ||
| */ | ||
| public interface BuiltinTenantRegistrable { | ||
|
|
||
| /** Registers this built-in component in the <b>current</b> tenant context. */ | ||
| void registerForTenant() throws Exception; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!