Made implicit tenant meta data creation configurable (#1575)

In hawkBit up to 0.4.1 it was true - getTenantMetadate created implicitly a tenant metadata.  It was disable in latest commits - but now it is made optional - disabled by default

Signed-off-by: Marinov Avgustin <Avgustin.Marinov@bosch.com>
This commit is contained in:
Avgustin Marinov
2024-01-30 15:46:39 +02:00
committed by GitHub
parent 8a95a53123
commit 537a942021
3 changed files with 67 additions and 39 deletions

View File

@@ -56,7 +56,7 @@ public class RepositoryProperties {
private boolean eagerPollPersistence;
/**
* If an {@link Action} has a weight of null this value is used as weight.
* If an {@link org.eclipse.hawkbit.repository.model.Action} has a weight of null this value is used as weight.
*/
private int actionWeightIfAbsent = 1000;
@@ -66,6 +66,8 @@ public class RepositoryProperties {
*/
private long dsInvalidationLockTimeout = 5;
private boolean implicitTenantCreateAllowed;
public boolean isEagerPollPersistence() {
return eagerPollPersistence;
}
@@ -122,4 +124,11 @@ public class RepositoryProperties {
this.dsInvalidationLockTimeout = dsInvalidationLockTimeout;
}
public boolean isImplicitTenantCreateAllowed() {
return implicitTenantCreateAllowed;
}
public void setImplicitTenantCreateAllowed(final boolean implicitTenantCreateAllowed) {
this.implicitTenantCreateAllowed = implicitTenantCreateAllowed;
}
}